<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - UI: Add 'Numbering Off' command to Format > Lists submenu"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127142#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - UI: Add 'Numbering Off' command to Format > Lists submenu"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127142">bug 127142</a>
from <span class="vcard"><a class="email" href="mailto:momonasmon@gmail.com" title="Maxim Monastirsky <momonasmon@gmail.com>"> <span class="fn">Maxim Monastirsky</span></a>
</span></b>
<pre>(In reply to Heiko Tietze from <a href="show_bug.cgi?id=127142#c11">comment #11</a>)
<span class="quote">> Sure, the static XML based menu is extended dynamically. Is that too
> difficult to realize?</span >
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.
<span class="quote">> I imagine something like .uno:UserListStyle hidden when not active.</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>