[Libreoffice-ux-advise] [Bug 127142] UI: Add 'Numbering Off' command to Format > Lists submenu

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 27 10:47:48 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127142

--- Comment #14 from Maxim Monastirsky <momonasmon at gmail.com> ---
(In reply to Heiko Tietze from comment #11)
> Sure, the static XML based menu is extended dynamically. Is that too
> difficult to realize?
It's doable. Two examples that come to my mind are the Window menu, which is
defined in menubar.xml, but has the active windows list appended to its bottom,
and the OLE object context menu, which has OLE verbs (e.g. Edit, Open) appended
to its bottom. But with this kind of solution you don't really need a special
.uno:UserListStyle command, as you operate directly on the menu, so you can
just add/remove ordinary style commands.

> I imagine something like .uno:UserListStyle hidden when not active.
That's another possible solution, which can be done with a fully static menu
too. Think of the "Record Macro" command, which defined in menubar.xml, but is
hidden depending on the respective setting under Tools > Options... >
LibreOffice > Advanced. But for such solution to work, we still need to
retrieve the contents of the menu, and check whether the current style is
actually one of the static items (doable via the XUIConfigurationManager
interface). In addition, we'll need to set listeners (via XUIConfiguration), to
make sure we don't miss user customization of the menu, and also make the
status type of .uno:UserListStyle to be a string, so it changes its title
depending on the style name.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list