diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-14 17:29:03 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-14 15:52:53 +0000 |
commit | 1c035f1b0eb6f5e5fbb6c54bf2eea9a6c983eb8f (patch) | |
tree | c2364142c01b3c639bea94ab4044f94ffd874245 /officecfg | |
parent | c31b6e1a154d3bf94b5346343104cbc00378e51d (diff) |
tdf#93837 Convert some Calc context menus to xml
TODO:
- Clean the now unused defines/resources.
- Several submenus are duplicated (in the menubar too). Makes
sense to refactor them to separate popup menu controllers.
Change-Id: I85505eda1c5fb707b1e6064007f27af7b31452bf
Reviewed-on: https://gerrit.libreoffice.org/20704
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'officecfg')
4 files changed, 144 insertions, 8 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu index fb1536974b3b..80f887c4f788 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu @@ -86,6 +86,31 @@ <value>1</value> </prop> </node> + <node oor:name=".uno:FillModeTracePredescessor" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Trace ~Precedent</value> + </prop> + </node> + <node oor:name=".uno:FillModeRemovePredescessor" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Remove Precedent</value> + </prop> + </node> + <node oor:name=".uno:FillModeTraceSuccessor" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Trace Dependent</value> + </prop> + </node> + <node oor:name=".uno:FillModeRemoveSuccessor" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Remove Dependent</value> + </prop> + </node> + <node oor:name=".uno:FillModeEnd" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Exit Fill Mode</value> + </prop> + </node> <node oor:name=".uno:ClearArrows" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Remove ~All Traces</value> @@ -180,6 +205,9 @@ <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Pivot Table Filter</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Filter...</value> + </prop> </node> <node oor:name=".uno:NextPage" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> @@ -336,6 +364,9 @@ <prop oor:name="ContextLabel" oor:type="xs:string"> <value xml:lang="en-US">Pi~vot Table...</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Edit Layout...</value> + </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> </prop> @@ -605,6 +636,9 @@ <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Delete C~ells...</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">De~lete...</value> + </prop> </node> <node oor:name=".uno:RepeatSearch" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> @@ -872,6 +906,9 @@ <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Comm~ent</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">Insert Co~mment</value> + </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> </prop> @@ -977,6 +1014,9 @@ <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Cle~ar Cells...</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">Cl~ear Contents...</value> + </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> </prop> @@ -1051,6 +1091,9 @@ <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Insert ~Cells...</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Insert...</value> + </prop> </node> <node oor:name=".uno:InsertRowsMenu" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> @@ -1212,6 +1255,9 @@ <prop oor:name="ContextLabel" oor:type="xs:string"> <value xml:lang="en-US">Ce~lls...</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Format Cells...</value> + </prop> </node> <node oor:name=".uno:RowHeight" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> @@ -1327,11 +1373,17 @@ <prop oor:name="ContextLabel" oor:type="xs:string"> <value xml:lang="en-US">~Page...</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">Pa~ge Layout...</value> + </prop> </node> <node oor:name=".uno:StandardTextAttributes" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Standard Text Attributes</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">Default</value> + </prop> </node> <node oor:name=".uno:TextAttributes" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> @@ -1819,17 +1871,17 @@ </node> <node oor:name=".uno:InsertFieldSheet" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">Insert Sheet Name Field</value> + <value xml:lang="en-US">Sheet Name</value> </prop> </node> <node oor:name=".uno:InsertFieldDocTitle" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">Insert Document Title Field</value> + <value xml:lang="en-US">Document Title</value> </prop> </node> <node oor:name=".uno:InsertFieldDateVariable" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">Insert Date Field (variable)</value> + <value xml:lang="en-US">Date</value> </prop> </node> <node oor:name=".uno:OpenFromCalc" oor:op="replace"> @@ -1850,6 +1902,11 @@ </node> </node> <node oor:name="Popups"> + <node oor:name=".uno:InsertFieldMenu" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Insert Field</value> + </prop> + </node> <node oor:name=".uno:AuditMenu" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">~Detective</value> @@ -2019,16 +2076,25 @@ <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Paste Only Formula</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Formula</value> + </prop> </node> <node oor:name=".uno:PasteOnlyText" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Paste Only Text</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Text</value> + </prop> </node> <node oor:name=".uno:PasteOnlyValue" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Paste Only Value</value> </prop> + <prop oor:name="PopupLabel" oor:type="xs:string"> + <value xml:lang="en-US">~Number</value> + </prop> </node> </node> </node> diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu b/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu index 7997881147d2..61ab0b675335 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu @@ -20,6 +20,71 @@ <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="CalcWindowState" oor:package="org.openoffice.Office.UI"> <node oor:name="UIElements"> <node oor:name="States"> + <node oor:name="private:resource/popupmenu/audit" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Auditing</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/cell" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Cell</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/celledit" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Edit Cell</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/chart" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Chart</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/draw" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Shape</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/drawtext" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Shape Text</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/form" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Form Control</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/graphic" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Image</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/media" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Media</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/oleobject" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">OLE Object</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/pagebreak" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Page Break</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/pivot" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Pivot Table</value> + </prop> + </node> + <node oor:name="private:resource/popupmenu/preview" oor:op="replace"> + <prop oor:name="UIName" oor:type="xs:string"> + <value xml:lang="en-US">Print Preview</value> + </prop> + </node> <node oor:name="private:resource/toolbar/graffilterbar" oor:op="replace"> <prop oor:name="Docked" oor:type="xs:boolean"> <value>false</value> diff --git a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu index 554dd21b40ab..e5bedf6ca52a 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu @@ -1375,11 +1375,6 @@ <value>1</value> </prop> </node> - <node oor:name=".uno:OriginalSize" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">~Original Size</value> - </prop> - </node> <node oor:name=".uno:ChangePicture" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">~Replace...</value> diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 269f7889bb91..7ae2dddbdba2 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -20,6 +20,11 @@ <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:install="http://openoffice.org/2004/installation" oor:name="GenericCommands" oor:package="org.openoffice.Office.UI"> <node oor:name="UserInterface"> <node oor:name="Commands"> + <node oor:name=".uno:ChangeControlType" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Replace with</value> + </prop> + </node> <node oor:name=".uno:InsertFormMenu" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Fo~rm Control</value> @@ -1994,6 +1999,11 @@ <value>1</value> </prop> </node> + <node oor:name=".uno:OriginalSize" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Original Size</value> + </prop> + </node> <node oor:name=".uno:GridMenu" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Gr~id and Helplines</value> |