<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Icons for styles in the Styles menu"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107915#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Icons for styles in the Styles menu"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107915">bug 107915</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=107915#c0">comment #0</a>)
<span class="quote">> @Maxim: With styles in the Style menu using UNO commands like
> .uno:StyleApply?Style:string=Standard&amp;FamilyName:string=ParagraphStyles,
> is it possible to assign icons to them and if so, how would it be named</span >
It's possible after escaping all problematic characters, see the
lclConvertToCanonicalName function from
<a href="http://opengrok.libreoffice.org/xref/core/framework/source/uiconfiguration/CommandImageResolver.cxx#lclConvertToCanonicalName">http://opengrok.libreoffice.org/xref/core/framework/source/uiconfiguration/CommandImageResolver.cxx#lclConvertToCanonicalName</a>

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.

<span class="quote">> 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.</span >
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.</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>