Removed menu

This commit is contained in:
Georgy Litvinov 2020-04-08 16:43:04 +02:00
parent 425bd82592
commit 79c0051ee5
2 changed files with 4 additions and 29 deletions

View file

@ -6,7 +6,7 @@
<node oor:name="Images"> <node oor:name="Images">
<node oor:name="org.libreoffice.example.StarterProject.imageActionOne" oor:op="replace"> <node oor:name="org.libreoffice.example.StarterProject.imageActionOne" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string"> <prop oor:name="URL" oor:type="xs:string">
<value>service:org.libreoffice.example.StarterProject?actionOne</value> <value>service:org.libreoffice.example.StarterProject?openGUI</value>
</prop> </prop>
<node oor:name="UserDefinedImages"> <node oor:name="UserDefinedImages">
<prop oor:name="ImageSmallURL"> <prop oor:name="ImageSmallURL">
@ -26,7 +26,7 @@
</prop> </prop>
<node oor:name="t01" oor:op="replace"> <node oor:name="t01" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string"> <prop oor:name="URL" oor:type="xs:string">
<value>service:org.libreoffice.example.StarterProject?actionOne</value> <value>service:org.libreoffice.example.StarterProject?openGUI</value>
</prop> </prop>
<prop oor:name="Target" oor:type="xs:string"> <prop oor:name="Target" oor:type="xs:string">
<value>_self</value> <value>_self</value>
@ -41,29 +41,7 @@
</node> </node>
</node> </node>
<node oor:name="OfficeMenuBar">
<node oor:name="org.libreoffice.example.StarterProject.menubar" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">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> </node>
</oor:component-data> </oor:component-data>

View file

@ -85,10 +85,7 @@ public final class StarterProjectImpl extends WeakBase
public void trigger(String action) public void trigger(String action)
{ {
switch (action) { switch (action) {
case "actionOne": case "openGUI":
//ActionOneDialog actionOneDialog = new ActionOneDialog(m_xContext);
//actionOneDialog.show();
Document doc = new Document(context); Document doc = new Document(context);
EditorGUI.runGUI(doc); EditorGUI.runGUI(doc);
break; break;