[Libreoffice-bugs] [Bug 88512] TOOLBAR/SIDEBAR: Character style drop down control uno command

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun May 14 18:23:05 UTC 2017


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

--- Comment #13 from Maxim Monastirsky <momonasmon at gmail.com> ---
(In reply to Yousuf Philips (jay) from comment #7)
> @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.
Yes, easily.

> by referencing it like .uno:StyleApply?FamilyName:string=CharacterStyles
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 comment #11)
> 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).
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]
https://cgit.freedesktop.org/libreoffice/core/tree/framework/source/uielement/styletoolbarcontroller.cxx?id=b91fb08fd63207e663dca83abe1305d8025b4b48#n22

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170514/6bd3e5bf/attachment.html>


More information about the Libreoffice-bugs mailing list