diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-20 21:08:42 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-24 14:25:17 +0200 |
commit | 430303aeee790cb8951dd007e7dffb55fa7f0f53 (patch) | |
tree | cac5f26d887647d78ffd62580ca9baba3f13b382 /sc/source/ui/src | |
parent | 7dc6e2cb1778aed68e9bef64a7a196c94a72b7ec (diff) |
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/source/ui/src')
-rw-r--r-- | sc/source/ui/src/hdrcont.src | 195 |
1 files changed, 0 insertions, 195 deletions
diff --git a/sc/source/ui/src/hdrcont.src b/sc/source/ui/src/hdrcont.src deleted file mode 100644 index 33209bae658e..000000000000 --- a/sc/source/ui/src/hdrcont.src +++ /dev/null @@ -1,195 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#include "sc.hrc" - -#define PART1 \ - MenuItem\ - {\ - Identifier = FID_CELL_FORMAT ; \ - HelpId = CMD_FID_CELL_FORMAT ; \ - Text [ en-US ] = "~Format Cells..." ; \ - }; - -#define PART2 \ - MenuItem\ - {\ - Identifier = SID_CUT ; \ - HelpId = CMD_SID_CUT ; \ - Text [ en-US ] = "Cu~t" ; \ - };\ - MenuItem\ - {\ - Identifier = SID_COPY ; \ - HelpId = CMD_SID_COPY ; \ - Text [ en-US ] = "~Copy" ; \ - };\ - MenuItem\ - {\ - Identifier = SID_PASTE ; \ - HelpId = CMD_SID_PASTE ; \ - Text [ en-US ] = "~Paste" ; \ - }; - -Menu RID_POPUP_ROWHEADER -{ - ItemList = - { - PART2 - MenuItem - { - Identifier = SID_PASTE_SPECIAL ; - HelpId = CMD_SID_PASTE_SPECIAL ; - Text [ en-US ] = "P~aste Special..." ; - }; - - MenuItem { Separator = TRUE ; }; - - MenuItem - { - Identifier = FID_INS_ROWS_BEFORE ; - HelpId = CMD_FID_INS_ROWS_BEFORE ; - Text [ en-US ] = "~Insert Rows Above" ; - }; - MenuItem - { - Identifier = FID_INS_ROWS_AFTER ; - HelpId = CMD_FID_INS_ROWS_AFTER ; - Text [ en-US ] = "Insert Rows ~Below" ; - }; - MenuItem - { - Identifier = SID_DEL_ROWS ; - HelpId = CMD_SID_DEL_ROWS ; - Text [ en-US ] = "~Delete Rows" ; - }; - MenuItem - { - Identifier = SID_DELETE ; - HelpId = CMD_SID_DELETE ; - Text [ en-US ] = "Cl~ear Contents..." ; - }; - - MenuItem { Separator = TRUE ; }; - - PART1 - - MenuItem - { - Identifier = FID_ROW_HEIGHT ; - HelpId = CMD_FID_ROW_HEIGHT ; - Text [ en-US ] = "Row Hei~ght..." ; - }; - MenuItem - { - Identifier = FID_ROW_OPT_HEIGHT ; - HelpId = CMD_FID_ROW_OPT_HEIGHT ; - Text [ en-US ] = "~Optimal Row Height..." ; - }; - - MenuItem { Separator = TRUE ; }; - - MenuItem - { - Identifier = FID_ROW_HIDE ; - HelpId = CMD_FID_ROW_HIDE ; - Text [ en-US ] = "~Hide Rows" ; - }; - MenuItem - { - Identifier = FID_ROW_SHOW ; - HelpId = CMD_FID_ROW_SHOW ; - Text [ en-US ] = "~Show Rows" ; - }; - }; -}; - -Menu RID_POPUP_COLHEADER -{ - ItemList = - { - PART2 - MenuItem - { - Identifier = SID_PASTE_SPECIAL ; - HelpId = CMD_SID_PASTE_SPECIAL ; - Text [ en-US ] = "P~aste Special..." ; - }; - - MenuItem { Separator = TRUE ; }; - - MenuItem - { - Identifier = FID_INS_COLUMNS_BEFORE ; - HelpId = CMD_FID_INS_COLUMNS_BEFORE ; - Text [ en-US ] = "Insert Columns ~Left" ; - }; - MenuItem - { - Identifier = FID_INS_COLUMNS_AFTER ; - HelpId = CMD_FID_INS_COLUMNS_AFTER ; - Text [ en-US ] = "Insert Columns ~Right" ; - }; - MenuItem - { - Identifier = SID_DEL_COLS ; - HelpId = CMD_SID_DEL_COLS ; - Text [ en-US ] = "~Delete Columns" ; - }; - MenuItem - { - Identifier = SID_DELETE ; - HelpId = CMD_SID_DELETE ; - Text [ en-US ] = "Cl~ear Contents..." ; - }; - - MenuItem { Separator = TRUE ; }; - - PART1 - - MenuItem - { - Identifier = FID_COL_WIDTH ; - HelpId = CMD_FID_COL_WIDTH ; - Text [ en-US ] = "Column ~Width..." ; - }; - MenuItem - { - Identifier = FID_COL_OPT_WIDTH ; - HelpId = CMD_FID_COL_OPT_WIDTH ; - Text [ en-US ] = "~Optimal Column Width..." ; - }; - - MenuItem { Separator = TRUE ; }; - - MenuItem - { - Identifier = FID_COL_HIDE ; - HelpId = CMD_FID_COL_HIDE ; - Text [ en-US ] = "~Hide Columns" ; - }; - MenuItem - { - Identifier = FID_COL_SHOW ; - HelpId = CMD_FID_COL_SHOW ; - Text [ en-US ] = "~Show Columns" ; - }; - }; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |