https://bugs.documentfoundation.org/show_bug.cgi?id=127142
--- Comment #14 from Maxim Monastirsky <momonasmon@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.
Context
- [Libreoffice-ux-advise] [Bug 127142] UI: Add 'Numbering Off' command to Format > Lists submenu · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.