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

--- Comment #4 from Julien Nabet <[email protected]> ---
Thank you Lionel for the hints.

Since keyId Language Id gaves no link (no keyid for all the entries of the
popup menu), I searched "Image Off" and found this:
http://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/docvw.src#170

Some lines above, Edit is here:
http://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/docvw.src#40

Searching "MN_READONLY_EDITDOC" gave 3 results (see
http://opengrok.libreoffice.org/search?q=MN_READONLY_EDITDOC&project=core&defs=&refs=&path=&hist=)
Best candidate seemed this one:
http://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/romenu.cxx#216

    210     eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState );
    211     if (
    212         eState < SFX_ITEM_DEFAULT ||
    213         (rSh.IsGlobalDoc() && rView.GetDocShell()->IsReadOnlyUI())
    214        )
    215     {
    216         EnableItem( MN_READONLY_EDITDOC, false );
    217     }

With Writer eState = SFX_ITEM_DEFAULT whereas with Base eState =
SFX_ITEM_DISABLED

I must recognize I hardly understand all this. Should we try to link "not
design mode" with eState? More clearly, should eState be equal to
SFX_ITEM_DEFAULT when not 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