summaryrefslogtreecommitdiffstats
path: root/sc/uiconfig/scalc/popupmenu
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-12-20 21:08:42 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-12-24 14:25:17 +0200
commit430303aeee790cb8951dd007e7dffb55fa7f0f53 (patch)
treecac5f26d887647d78ffd62580ca9baba3f13b382 /sc/uiconfig/scalc/popupmenu
parentRemove unneeded bitfield (diff)
downloadcore-430303aeee790cb8951dd007e7dffb55fa7f0f53.tar.gz
core-430303aeee790cb8951dd007e7dffb55fa7f0f53.zip
tdf#93837 Convert sheet row/col header context menus to xml
This commit shows some weakness of the current approach with PopupLabel, as in many cases it's exactly the same as Label. Have some ideas on how to improve that, but will look at it after converting the remaining menus (at least in sfx2 based modules), so I could have a broader look at what we have. Change-Id: I78dfdb4a6f2ea3faf84f3a521067c6c15df96852
Diffstat (limited to 'sc/uiconfig/scalc/popupmenu')
-rw-r--r--sc/uiconfig/scalc/popupmenu/colheader.xml27
-rw-r--r--sc/uiconfig/scalc/popupmenu/rowheader.xml27
2 files changed, 54 insertions, 0 deletions
diff --git a/sc/uiconfig/scalc/popupmenu/colheader.xml b/sc/uiconfig/scalc/popupmenu/colheader.xml
new file mode 100644
index 000000000000..32650ff8b2fa
--- /dev/null
+++ b/sc/uiconfig/scalc/popupmenu/colheader.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuitem menu:id=".uno:PasteSpecial"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:InsertColumnsBefore"/>
+ <menu:menuitem menu:id=".uno:InsertColumnsAfter"/>
+ <menu:menuitem menu:id=".uno:DeleteColumns"/>
+ <menu:menuitem menu:id=".uno:Delete"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:FormatCellDialog"/>
+ <menu:menuitem menu:id=".uno:ColumnWidth"/>
+ <menu:menuitem menu:id=".uno:SetOptimalColumnWidth"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:HideColumn"/>
+ <menu:menuitem menu:id=".uno:ShowColumn"/>
+</menu:menupopup>
diff --git a/sc/uiconfig/scalc/popupmenu/rowheader.xml b/sc/uiconfig/scalc/popupmenu/rowheader.xml
new file mode 100644
index 000000000000..3027b3003721
--- /dev/null
+++ b/sc/uiconfig/scalc/popupmenu/rowheader.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+-->
+<menu:menupopup xmlns:menu="http://openoffice.org/2001/menu">
+ <menu:menuitem menu:id=".uno:Cut"/>
+ <menu:menuitem menu:id=".uno:Copy"/>
+ <menu:menuitem menu:id=".uno:Paste"/>
+ <menu:menuitem menu:id=".uno:PasteSpecial"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:InsertRowsBefore"/>
+ <menu:menuitem menu:id=".uno:InsertRowsAfter"/>
+ <menu:menuitem menu:id=".uno:DeleteRows"/>
+ <menu:menuitem menu:id=".uno:Delete"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:FormatCellDialog"/>
+ <menu:menuitem menu:id=".uno:RowHeight"/>
+ <menu:menuitem menu:id=".uno:SetOptimalRowHeight"/>
+ <menu:menuseparator/>
+ <menu:menuitem menu:id=".uno:HideRow"/>
+ <menu:menuitem menu:id=".uno:ShowRow"/>
+</menu:menupopup>