Extension Toolbar Combo Button

Discussions about using 3rd party extension with OpenOffice.org
Post Reply
SLV-es
Posts: 10
Joined: Sat Jul 27, 2013 1:36 am
Location: Spain

Extension Toolbar Combo Button

Post by SLV-es »

I created an extension that adds a custom toolbar (Calc)

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 the Formatting toolbar (Custom) are as follows:
format-toolbar-01.png
format-toolbar-01.png (2.19 KiB) Viewed 1898 times
The same buttons on a custom toolbar look like this:
custom-toolbar-01.png
custom-toolbar-01.png (2.42 KiB) Viewed 1898 times
Finally, the same buttons on the custom toolbar created with the extension are as follows:
extension-custom-toolbar-01.png
extension-custom-toolbar-01.png (1.13 KiB) Viewed 1898 times
Why the buttons are not displayed as combo-buttons?

I add the extension in the next message

thanks
Last edited by SLV-es on Thu Apr 02, 2015 9:51 pm, edited 1 time in total.
OpenOffice 4.1.1 on Windows 7 / GNU-Linux Mint Mate (both 32bits)
SLV-es
Posts: 10
Joined: Sat Jul 27, 2013 1:36 am
Location: Spain

Re: Extension Toolbar Combo Button

Post by SLV-es »

The extension
Attachments
miExtension.zip
To install previously renamed as extension.oxt
(32.89 KiB) Downloaded 181 times
OpenOffice 4.1.1 on Windows 7 / GNU-Linux Mint Mate (both 32bits)
Post Reply