summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-11-11 15:01:52 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-11-11 15:03:38 +0200
commita133053f94f7c5b05f4354bb4977c2250b470a8a (patch)
tree1e052e2c5dd5dc03835c3b2f1b26ac9da402f683 /officecfg
parent737555eb2ff5f4f90b9794784e1ac8f0451b9b97 (diff)
tdf#93837 Create Thesaurus popup menu controller
The old context menu implementation adds the thesaurus sub-menu by manipulating the menu at runtime, which isn't a good idea in general. Since it's a sub-menu anyway, better to have it as a separate controller, so it can be added to the xml, and users could decide if they want it, and where. Most of the code adapted from sfx2 (menu/mnumgr.cxx, menu/thessubmenu.cxx), hence the Apache-based license header. Change-Id: I4f533fcdd5d6480fae8ebcf53ec7c69675025adb
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu11
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu8
2 files changed, 19 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu b/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
index 5e885fd81b89..c4f67118098e 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
@@ -185,6 +185,17 @@
<value>com.sun.star.comp.framework.SaveAsMenuController</value>
</prop>
</node>
+ <node oor:name="c17" oor:op="replace">
+ <prop oor:name="Command">
+ <value>.uno:ThesaurusFromContext</value>
+ </prop>
+ <prop oor:name="Module">
+ <value/>
+ </prop>
+ <prop oor:name="Controller">
+ <value>com.sun.star.comp.framework.ThesaurusMenuController</value>
+ </prop>
+ </node>
</node>
<node oor:name="ToolBar">
<node oor:name="ZoomToolBox" oor:op="replace">
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index 161b46cee76c..cab5cbe01bd0 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -5632,6 +5632,14 @@
<value>1</value>
</prop>
</node>
+ <node oor:name=".uno:ThesaurusFromContext" oor:op="replace">
+ <prop oor:name="Label" oor:type="xs:string">
+ <value xml:lang="en-US">Synony~ms</value>
+ </prop>
+ <prop oor:name="Properties" oor:type="xs:int">
+ <value>1</value>
+ </prop>
+ </node>
</node>
<node oor:name="Popups">
<node oor:name=".uno:HelpMenu" oor:op="replace">