diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-05-07 03:32:25 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-05-08 00:32:14 +0200 |
commit | 8da106529e85981ce37fbbd18160023c26cc7129 (patch) | |
tree | 30ead8880bda055addfccb8cb8e0a669405f6962 /officecfg | |
parent | 7d9e441eb98b4e964c08e41e53714a8607e22f8e (diff) |
tdf#106479 Make edit context menu dispatcher based
This allows us to add there any .uno command and
also get the icon and keyboard shortcut for it.
Use this to add clipboard commands.
Change-Id: Ic42c28add7771f322491e8e7d6df052e3c2c8d75
Reviewed-on: https://gerrit.libreoffice.org/37353
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'officecfg')
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu | 63 | ||||
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/MathWindowState.xcu | 7 |
2 files changed, 68 insertions, 2 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu index 1fe747ff5d64..8adebca5535a 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/MathCommands.xcu @@ -141,7 +141,68 @@ <value>9</value> </prop> </node> + <node oor:name=".uno:InsertCommandText?Text:string=newline " oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">New Line</value> + </prop> + </node> + <node oor:name=".uno:InsertCommandText?Text:string=`" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Small Gap</value> + </prop> + </node> + <node oor:name=".uno:InsertCommandText?Text:string=~" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Gap</value> + </prop> + </node> + </node> + <node oor:name="Popups"> + <node oor:name=".uno:UnaryBinaryMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Unary/Binary Operators</value> + </prop> + </node> + <node oor:name=".uno:RelationsMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Relations</value> + </prop> + </node> + <node oor:name=".uno:SetOperationsMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Set Operations</value> + </prop> + </node> + <node oor:name=".uno:FunctionsMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Functions</value> + </prop> + </node> + <node oor:name=".uno:OperatorsMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">O~perators</value> + </prop> + </node> + <node oor:name=".uno:AttributesMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Attributes</value> + </prop> + </node> + <node oor:name=".uno:BracketsMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Brackets</value> + </prop> + </node> + <node oor:name=".uno:FormatsMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">For~mats</value> + </prop> + </node> + <node oor:name=".uno:OthersMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Others</value> + </prop> + </node> </node> - <node oor:name="Popups"/> </node> </oor:component-data> diff --git a/officecfg/registry/data/org/openoffice/Office/UI/MathWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/MathWindowState.xcu index bd679f723693..386dc8d39ac1 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/MathWindowState.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/MathWindowState.xcu @@ -20,9 +20,14 @@ <oor:component-data 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" oor:name="MathWindowState" oor:package="org.openoffice.Office.UI"> <node oor:name="UIElements"> <node oor:name="States"> + <node oor:name="private:resource/popupmenu/edit" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Edit Panel</value> + </prop> + </node> <node oor:name="private:resource/popupmenu/view" oor:op="replace"> <prop oor:name="UIName" oor:type="xs:string"> - <value xml:lang="en-US">Work Area</value> + <value xml:lang="en-US">View Panel</value> </prop> </node> <node oor:name="private:resource/toolbar/standardbar" oor:op="replace"> |