diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-10-25 11:05:39 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-10-30 19:36:11 +0200 |
commit | d1dd9269f1c9f0efc7fb44087fb172d66f54a8fa (patch) | |
tree | 81944525e6fc45679715ed1d7899114fcb005b2d /dbaccess | |
parent | add LEFT test case (diff) | |
download | core-d1dd9269f1c9f0efc7fb44087fb172d66f54a8fa.tar.gz core-d1dd9269f1c9f0efc7fb44087fb172d66f54a8fa.zip |
Convert RID_MENU_APP_EDIT to xml
Change-Id: I6868624b1726b1044e741a1fc0cdabe703f84c31
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/UIConfig_dbapp.mk | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/app/app.src | 130 | ||||
-rw-r--r-- | dbaccess/uiconfig/dbapp/popupmenu/edit.xml | 34 |
3 files changed, 35 insertions, 130 deletions
diff --git a/dbaccess/UIConfig_dbapp.mk b/dbaccess/UIConfig_dbapp.mk index f810f4b8718c..1dbab2a480a9 100644 --- a/dbaccess/UIConfig_dbapp.mk +++ b/dbaccess/UIConfig_dbapp.mk @@ -14,6 +14,7 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/dbapp,\ )) $(eval $(call gb_UIConfig_add_popupmenufiles,modules/dbapp,\ + dbaccess/uiconfig/dbapp/popupmenu/edit \ dbaccess/uiconfig/dbapp/popupmenu/new \ )) diff --git a/dbaccess/source/ui/app/app.src b/dbaccess/source/ui/app/app.src index 3b4f12496727..04dce61ae977 100644 --- a/dbaccess/source/ui/app/app.src +++ b/dbaccess/source/ui/app/app.src @@ -21,8 +21,6 @@ #include "browserids.hxx" #include "dbaccess_helpid.hrc" -#define MN_PROPS 25 - String RID_STR_NEW_FORM { Text [ en-US ] = "Create Form in Design View..." ; @@ -80,134 +78,6 @@ String RID_STR_REPORTS_CONTAINER { Text [ en-US ] = "Reports" ; }; - -Menu RID_MENU_APP_EDIT -{ - ItemList = - { - MenuItem - { - Identifier = SID_COPY ; - Command = ".uno:Copy" ; - Text [ en-US ] = "~Copy" ; - }; - MenuItem - { - Identifier = SID_PASTE ; - Command = ".uno:Paste" ; - Text [ en-US ] = "~Paste" ; - }; - MenuItem - { - Identifier = SID_DB_APP_PASTE_SPECIAL; - Text[ en-US ] = "Paste Special..."; - Command = ".uno:PasteSpecial"; - }; - MenuItem - { - Separator = TRUE ; - }; - MenuItem - { - Identifier = SID_DB_APP_DELETE; - Text[ en-US ] = "Delete"; - Command = ".uno:DBDelete"; - }; - MenuItem - { - Identifier = SID_DB_APP_RENAME; - Text[ en-US ] = "Rename"; - Command = ".uno:DBRename"; - }; - MenuItem - { - Identifier = SID_DB_APP_EDIT; - Text[ en-US ] = "Edit"; - Command = ".uno:DBEdit"; - }; - MenuItem - { - Identifier = SID_DB_APP_EDIT_SQL_VIEW; - Text [ en-US ] = "Edit in SQL View..."; - Command = ".uno:DBEditSqlView"; - }; - MenuItem - { - Identifier = SID_DB_APP_OPEN; - Text[ en-US ] = "Open"; - Command = ".uno:DBOpen"; - }; - MenuItem - { - Identifier = SID_DB_APP_CONVERTTOVIEW; - Text[ en-US ] = "Create as View"; - Command = ".uno:DBConvertToView"; - }; - MenuItem - { - Identifier = SID_FORM_CREATE_REPWIZ_PRE_SEL; - Text [ en-US ] = "Form Wizard..."; - Command = ".uno:DBNewFormAutoPilotWithPreSelection"; - }; - MenuItem - { - Identifier = SID_APP_NEW_REPORT_PRE_SEL; - Command = ".uno:DBNewReportWithPreSelection"; - Text [ en-US ] = "Report..." ; - }; - MenuItem - { - Identifier = SID_REPORT_CREATE_REPWIZ_PRE_SEL ; - Text[ en-US ] = "Report Wizard..."; - - Command = ".uno:DBNewReportAutoPilotWithPreSelection"; - }; - MenuItem - { - Separator = TRUE ; - }; - MenuItem - { - Identifier = SID_SELECTALL; - Text[ en-US ] = "Select All"; - Command = ".uno:SelectAll"; - }; - MenuItem - { - Separator = TRUE ; - }; - MenuItem - { - Identifier = MN_PROPS; - Text[ en-US ] = "~Database"; - SubMenu = Menu - { - ItemList = - { - MenuItem - { - Identifier = SID_DB_APP_DSPROPS; - Text[ en-US ] = "Properties..."; - Command = ".uno:DBDSProperties"; - }; - MenuItem - { - Identifier = SID_DB_APP_DSCONNECTION_TYPE; - Text[ en-US ] = "Connection Type..."; - Command = ".uno:DBDSConnectionType"; - }; - MenuItem - { - Identifier = SID_DB_APP_DSADVANCED_SETTINGS; - Text[ en-US ] = "Advanced Settings..."; - Command = ".uno:DBDSAdvancedSettings"; - }; - }; - }; - }; - }; -}; - String STR_QUERY_DELETE_DATASOURCE { Text [ en-US ] = "Do you want to delete the data source '%1'?" ; diff --git a/dbaccess/uiconfig/dbapp/popupmenu/edit.xml b/dbaccess/uiconfig/dbapp/popupmenu/edit.xml new file mode 100644 index 000000000000..5f67d0bf95ba --- /dev/null +++ b/dbaccess/uiconfig/dbapp/popupmenu/edit.xml @@ -0,0 +1,34 @@ +<?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:Copy"/> + <menu:menuitem menu:id=".uno:Paste"/> + <menu:menuitem menu:id=".uno:PasteSpecial"/> + <menu:menuseparator/> + <menu:menuitem menu:id=".uno:DBDelete"/> + <menu:menuitem menu:id=".uno:DBRename"/> + <menu:menuitem menu:id=".uno:DBEdit"/> + <menu:menuitem menu:id=".uno:DBEditSqlView"/> + <menu:menuitem menu:id=".uno:DBOpen"/> + <menu:menuitem menu:id=".uno:DBConvertToView"/> + <menu:menuitem menu:id=".uno:DBNewFormAutoPilotWithPreSelection"/> + <menu:menuitem menu:id=".uno:DBNewReportWithPreSelection"/> + <menu:menuitem menu:id=".uno:DBNewReportAutoPilotWithPreSelection"/> + <menu:menuseparator/> + <menu:menuitem menu:id=".uno:SelectAll"/> + <menu:menuseparator/> + <menu:menu menu:id=".uno:DBDatabasePropertiesMenu"> + <menu:menupopup> + <menu:menuitem menu:id=".uno:DBDSProperties"/> + <menu:menuitem menu:id=".uno:DBDSConnectionType"/> + <menu:menuitem menu:id=".uno:DBDSAdvancedSettings"/> + </menu:menupopup> + </menu:menu> +</menu:menupopup> |