Add toolbar & menu entry, and a shortcut

This commit is contained in:
Samuel Mehrbrodt 2016-04-06 16:44:09 +02:00
parent 784aad78ca
commit 5eda71f9f9
6 changed files with 113 additions and 2 deletions

BIN
images/actionOne_16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

BIN
images/actionOne_26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 B

View file

@ -1,3 +1,3 @@
#Written by the OOEclipseIntegration
#Tue Apr 05 17:56:37 CEST 2016
contents=description, description/desc_en.txt
#Wed Apr 06 16:28:26 CEST 2016
contents=description, description/desc_en.txt, images, images/actionOne_16.png, images/actionOne_26.png, registry, registry/org, registry/org/openoffice, registry/org/openoffice/Office, registry/org/openoffice/Office/Accelerators.xcu, registry/org/openoffice/Office/Addons.xcu, registry/org/openoffice/Office/UI, registry/org/openoffice/Office/UI/WriterWindowState.xcu

View file

@ -0,0 +1,16 @@
<?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="Accelerators"
oor:package="org.openoffice.Office">
<node oor:name="PrimaryKeys">
<node oor:name="Modules">
<node oor:name="com.sun.star.text.TextDocument">
<node oor:name="1_SHIFT_MOD1" oor:op="replace">
<prop oor:name="Command">
<value xml:lang="en-US">service:org.libreoffice.example.StarterProject?actionOne</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>

View file

@ -0,0 +1,69 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:package="org.openoffice.Office" oor:name="Addons"
xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<node oor:name="AddonUI">
<node oor:name="Images">
<node oor:name="org.libreoffice.example.StarterProject.imageActionOne" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>service:org.libreoffice.example.StarterProject?actionOne</value>
</prop>
<node oor:name="UserDefinedImages">
<prop oor:name="ImageSmallURL">
<value>vnd.sun.star.extension://org.libreoffice.example.StarterProject/images/actionOne_16.png</value>
</prop>
<prop oor:name="ImageBigURL">
<value>vnd.sun.star.extension://org.libreoffice.example.StarterProject/images/actionOne_26.png</value>
</prop>
</node>
</node>
</node>
<node oor:name="OfficeToolBar">
<node oor:name="at.gv.brz.office.OfficeAktensystem.toolbar" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value>Starter Project</value>
</prop>
<node oor:name="t01" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>service:org.libreoffice.example.StarterProject?actionOne</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="de">Action One</value>
</prop>
</node>
</node>
</node>
<node oor:name="OfficeMenuBar">
<node oor:name="at.gv.brz.office.OfficeAktensystem.menubar" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="de">Starter Project</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<node oor:name="Submenu">
<node oor:name="M1" oor:op="replace">
<prop oor:name="Title">
<value xml:lang="en-US">Action One</value>
</prop>
<prop oor:name="URL">
<value>service:org.libreoffice.example.StarterProject?actionOne</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
</node>
</node>
</node>
</node>
</node>
</oor:component-data>

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data oor:package="org.openoffice.Office.UI" oor:name="WriterWindowState"
xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<node oor:name="UIElements">
<node oor:name="States">
<!-- Used to dock the toolbar in the first toolbar row (by default it's floating) -->
<node oor:name="private:resource/toolbar/addon_at.gv.brz.office.OfficeAktensystem.toolbar" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value>Aktensystem</value>
</prop>
<prop oor:name="DockPos" oor:type="xs:string">
<value>10,0</value>
</prop>
<prop oor:name="Docked" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="DockingArea" oor:type="xs:int">
<value>0</value>
</prop>
</node>
</node>
</node>
</oor:component-data>