summaryrefslogtreecommitdiff
path: root/framework/util
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 /framework/util
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 'framework/util')
-rw-r--r--framework/util/fwk.component4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/util/fwk.component b/framework/util/fwk.component
index ad1678222417..e1744fc808a6 100644
--- a/framework/util/fwk.component
+++ b/framework/util/fwk.component
@@ -204,4 +204,8 @@
constructor="com_sun_star_comp_framework_SubToolBarController_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
+ <implementation name="com.sun.star.comp.framework.ThesaurusMenuController"
+ constructor="com_sun_star_comp_framework_ThesaurusMenuController_get_implementation">
+ <service name="com.sun.star.frame.PopupMenuController"/>
+ </implementation>
</component>