<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - TOOLBAR/SIDEBAR: Character style drop down control uno command"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=88512#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - TOOLBAR/SIDEBAR: Character style drop down control uno command"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=88512">bug 88512</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 Yousuf Philips (jay) from <a href="show_bug.cgi?id=88512#c7">comment #7</a>)
<span class="quote">> @Maxim, @Miklos: Is it possible to extend the apply paragraph style drop
> down toolbar list (.uno:StyleApply) so that it could work with other styles
> like character, frame, page, list, etc.</span >
Yes, easily.
<span class="quote">> by referencing it like .uno:StyleApply?FamilyName:string=CharacterStyles</span >
It's a bad idea to use such commands, because it will be hard to make them
appear in the customization dialog. We really need separate commands. The good
news is that there are already separate commands. Right now they do nothing
(they used internally only to transport the style status), but I think we can
reuse them for the toolbar controls. Take a look at [1] for the mapping of
style families to their existing commands.
(In reply to Yousuf Philips (jay) from <a href="show_bug.cgi?id=88512#c11">comment #11</a>)
<span class="quote">> So in your opinion is it better to create individual uno commands for each
> non-paragraph style option (there are alot of them across all the modules)
> or make .uno:StyleApply able to list non-paragraph styles (fix once and work
> everywhere).</span >
Note that several commands can be bound to one control, which can change its
behavior based on the command it gets. So using individual uno commands *does
not* mean more work.
[1]
<a href="https://cgit.freedesktop.org/libreoffice/core/tree/framework/source/uielement/styletoolbarcontroller.cxx?id=b91fb08fd63207e663dca83abe1305d8025b4b48#n22">https://cgit.freedesktop.org/libreoffice/core/tree/framework/source/uielement/styletoolbarcontroller.cxx?id=b91fb08fd63207e663dca83abe1305d8025b4b48#n22</a></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>