Hello,
This may be of some help. Have not created an extension for a few years now but went back as originally and looked at some other extensions. Don’t remember how it all works but may be of some help to you.
In Addons.xcu
you are naming both large and small icons and providing what seems to be a full name with the extension. The choice is actually made bu the user in LO Options
and no need to note in this file. The icons are provided (don’t remember exactly how) with distinguishing with additional information added to the icon name.
For example, here are the icons for BasicAddOnBuilder extension:
And the Addon.xcu:
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="Addons"
oor:package="org.openoffice.Office">
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="BasicAddonBuilder.OfficeToolBar" oor:op="replace">
<node oor:name="m1" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument,com.sun.star.script.BasicIDE</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>vnd.sun.star.script:BasicAddonBuilder.Main.RunWizard?language=Basic&location=application</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/bab</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value>BasicAddonBuilder</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
</node>
</node>
</node>
<node oor:name="OfficeHelp">
<node oor:name="BasicAddonBuilder.OfficeHelp.m1" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value></value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>vnd.sun.star.script:BasicAddonBuilder.Main.RunAbout?language=Basic&location=application</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/bab</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value>About BasicAddonBuilder...</value>
<value xml:lang="it">Informazioni su BasicAddonBuilder...</value>
<value xml:lang="fr">A propos de BasicAddonBuilder...</value>
<value xml:lang="da">Om BasicAddonBuilder</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
</node>
</node>
</node>
</oor:component-data>
Or for MRI extension:
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
<node oor:name="AddonUI">
<node oor:name="AddonMenu">
<node oor:name="mytools.mri201" oor:op="fuse">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">~MRI</value>
<value xml:lang="ja">~MRI</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>service:mytools.Mri?current</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value></value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/current</value>
</prop>
</node>
<node oor:name="mytools.mri202" oor:op="fuse">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">~MRI <- selection</value>
<value xml:lang="ja">~MRI <- selection</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>service:mytools.Mri?selection</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value></value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/selection</value>
</prop>
</node>
</node>
</node>
</oor:component-data>
When I did my extension it followed this same pattern. Notice this line in each (mine had same):
<prop oor:name="ImageIdentifier" oor:type="xs:string">
and the line(s) following. Yours is not the same.
Sorry cannot help further at this time.