[Libreoffice-bugs] [Bug 107915] Icons for styles in the Styles menu

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon May 22 22:33:19 UTC 2017


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

--- Comment #1 from Maxim Monastirsky <momonasmon at gmail.com> ---
(In reply to Yousuf Philips (jay) from comment #0)
> @Maxim: With styles in the Style menu using UNO commands like
> .uno:StyleApply?Style:string=Standard&FamilyName:string=ParagraphStyles,
> is it possible to assign icons to them and if so, how would it be named
It's possible after escaping all problematic characters, see the
lclConvertToCanonicalName function from
http://opengrok.libreoffice.org/xref/core/framework/source/uiconfiguration/CommandImageResolver.cxx#lclConvertToCanonicalName

There is however one problem if you're going to use links.txt with a command
that has a space (e.g. for "Heading 1"), as the links.txt parser assumes that a
space separates a link from the original image. But this can be easily solved
by adding a space escaping into lclConvertToCanonicalName.

> Was thinking that the work around would be to make alias commands for each
> of the styles and then it is easy to assign icons to those.
Yes, that should work too. But keep in mind that it won't work with styles that
user might add via the Add Commands dialog. But if this isn't a problem, then
it's a good solution too.

-- 
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/20170522/5b64068e/attachment.html>


More information about the Libreoffice-bugs mailing list