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

--- Comment #3 from Lionel Elie Mamane <[email protected]> ---
In a Writer file, when opening a read-only file, one can right-click on the
document and the pop-up menu has "edit". A Base form does not have this in the
pop-up menu.

My guess is that the "edit" entry in the contextual (pop-up) menu has been
removed in Base forms to avoid the user working around the fact that a Base
form is opened (as a Writer document) 'read-only' normally (not in design
mode), and that one needs to use "edit" (not "open") to change it (in other
words, open it in design mode).

My suggested fix would be to suppress this "edit" entry only in non-design
mode, and leave it alone (leave it in the menu) in design mode.

Julien, if you feel like it, you could:

1) Track down where the "edit" in the menu is suppressed from Base forms
compared to Writer documents.

2) Make this suppression conditional on "not design mode". See
http://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XVclWindowPeer.html#a5231c997c902a2c7dbf745d1e6d4731b
http://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XControl.html#a5231c997c902a2c7dbf745d1e6d4731b
for APIs to ask a window / a control whether it is 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