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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 23 09:23:39 UTC 2017


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

--- Comment #4 from Maxim Monastirsky <momonasmon at gmail.com> ---
(In reply to Yousuf Philips (jay) from comment #2)
> (In reply to Maxim Monastirsky from comment #1)
> > It's possible after escaping all problematic characters, see the
> > lclConvertToCanonicalName function from
> Seems very complicated and couldnt figure out the conversion. :D
Like this:
sc_styleapply%3fstyle%3astring=standard&familyname%3astring=paragraphstyles.png

Supporting spaces in lclConvertToCanonicalName is only a matter of adding there
this one line:

case ' ':  aBuffer.append("%20"); bRemoveSlash = false; break;

... and replacing spaces in the image file name with %20.

> Yes it would only be for built-in styles that we place in the Styles menu,
> so this seems to be the simplest option. ;D
Agree. I would suggest that too.

(In reply to Thomas Lendo from comment #3)
> I don't follow you both. While working with an own company's style toolbar,
> I'm already assigning icons to these styles via the Add commands window in
> the Customize dialog. It's working with styles I added manually as described
> by Regina and it's also working with styles I added in 5.4/5.5 via Add
> commands.
Yes, you can assign icons manually. It just that they won't pick icons
automatically, once we assign them for internal use (e.g. for the Styles menu).

-- 
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/20170523/dc584d62/attachment.html>


More information about the Libreoffice-bugs mailing list