The buttons activate commands .uno
This is the declaration of the toolbar
Code: Select all
<?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="custom_toolbar_47c.OfficeToolBar" oor:op="replace">
<prop oor:name="Title"><value>custom_toolbar_47c</value></prop>
<node oor:name="ToolBarItems">
<node oor:name="m001" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
<prop oor:name="URL" oor:type="xs:string"><value>.uno:SetBorderStyle</value></prop>
<prop oor:name="Title" oor:type="xs:string"><value>Set border style</value></prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"><value>%origin%/iconos/custom_toolbar_47c.000</value></prop>
<prop oor:name="Target" oor:type="xs:string"><value>_self</value></prop>
</node>
<node oor:name="m002" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
<prop oor:name="URL" oor:type="xs:string"><value>.uno:FrameLineColor</value></prop>
<prop oor:name="Title" oor:type="xs:string"><value>Frame line color</value></prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"><value>%origin%/iconos/custom_toolbar_47c.001</value></prop>
<prop oor:name="Target" oor:type="xs:string"><value>_self</value></prop>
</node>
<node oor:name="m003" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
<prop oor:name="URL" oor:type="xs:string"><value>.uno:LineStyle</value></prop>
<prop oor:name="Title" oor:type="xs:string"><value>Line style</value></prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"><value>%origin%/iconos/custom_toolbar_47c.002</value></prop>
<prop oor:name="Target" oor:type="xs:string"><value>_self</value></prop>
</node>
</node>
</node>
</node>
<node oor:name="OfficeHelp">
<node oor:name="ooES.OfficeHelp.m001" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
<prop oor:name="URL" oor:type="xs:string"><value>vnd.sun.star.script:miExtension.acercade.AcercaDe?language=Basic&location=application</value></prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"><value>%origin%/iconos/ooes</value></prop>
<prop oor:name="Title" oor:type="xs:string"><value>Visitar open-office.es</value></prop>
<prop oor:name="Target" oor:type="xs:string"><value>_self</value></prop>
</node>
</node>
</node>
</oor:component-data>
The same buttons on a custom toolbar look like this:
Finally, the same buttons on the custom toolbar created with the extension are as follows:
Why the buttons are not displayed as combo-buttons?
I add the extension in the next message
thanks