diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-02-09 00:31:24 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-02-09 22:49:51 +0000 |
commit | 54d5b1828ec73d0475e0ddb6e31394a7e1904a1b (patch) | |
tree | 95ea5cb85d31f4cd9d79d0fedb600c5a556ba361 /officecfg | |
parent | 8dc38dd9b132805191e0d20d00fb7559121fda15 (diff) |
tdf#105672 framework managed menu button
This adds a menu button that can use a popup menu controller
to manage its menu. It supports 2 cases:
- Use any controller that is registered in Controller.xcu,
by specifing its .uno command.
- Manage an arbitrary popup menu with MenuBarManager
(assuming its items have proper .uno commands in their
MenuItemData::aCommandStr). It means that a menu that
was defined in a .ui file, can be used inside that .ui
file without any additional code.
This commit uses the new control to fix some currently
non-working buttons in Calc's Notebookbar (but there are
more that can be fixed the same way). It's not clear how
long we will continue to use buttons (instead of
toolboxes) for the Notebookbar, but hopefully this control
will be useful in other places too.
Change-Id: Ie00cde7cd7e39948948960ca2eff76e9db837109
Reviewed-on: https://gerrit.libreoffice.org/34103
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'officecfg')
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu index 3621837a8f27..5ac0c6cbc821 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu @@ -2189,7 +2189,7 @@ </node> <node oor:name=".uno:ColumnOperations" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">Column Operations</value> + <value xml:lang="en-US">Column</value> </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> @@ -2197,7 +2197,7 @@ </node> <node oor:name=".uno:RowOperations" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">Row Operations</value> + <value xml:lang="en-US">Row</value> </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> |