https://bugs.freedesktop.org/show_bug.cgi?id=44081

--- Comment #5 from Lionel Elie Mamane <[email protected]> ---
I found the code ultimately responsible for the disabled SID_EDITDOC:

http://opengrok.libreoffice.org/xref/core/sfx2/source/view/viewfrm.cxx#860

       if ( !pSh || !pSh->HasName() || !( pSh->Get_Impl()->nLoadedFlags & 
SFX_LOADED_MAINDOCUMENT )
           || pSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
             rSet.DisableItem( SID_EDITDOC );

specifically the "|| pSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED". I would
like to change that to:
 || (pSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED &&
!opened_in_design_mode)

but at this point I'm not sure how to do the "opened_in_design_mode"

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to