Convert RID_MENU_APP_NEW to xml
Achieved by using GenericPopupToolbarController for the associated toolbar button. Change-Id: I406ff40e0c80d6db903de5629088d35487ab6416
This commit is contained in:
@@ -13,6 +13,10 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/dbapp,\
|
||||
dbaccess/uiconfig/dbapp/menubar/menubar \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UIConfig_add_popupmenufiles,modules/dbapp,\
|
||||
dbaccess/uiconfig/dbapp/popupmenu/new \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UIConfig_add_statusbarfiles,modules/dbapp,\
|
||||
dbaccess/uiconfig/dbapp/statusbar/statusbar \
|
||||
))
|
||||
|
@@ -37,8 +37,6 @@
|
||||
|
||||
#define HID_CTL_QRYSQLEDIT "DBACCESS_HID_CTL_QRYSQLEDIT"
|
||||
|
||||
#define HID_BROWSER_QUERY_CREATE_TEXT "DBACCESS_HID_BROWSER_QUERY_CREATE_TEXT"
|
||||
|
||||
#define HID_CTL_QRYDGNTAB "DBACCESS_HID_CTL_QRYDGNTAB"
|
||||
#define HID_CTL_QRYDGNCRIT "DBACCESS_HID_CTL_QRYDGNCRIT"
|
||||
#define HID_QRYDGN_ROW_VISIBLE "DBACCESS_HID_QRYDGN_ROW_VISIBLE"
|
||||
@@ -54,8 +52,6 @@
|
||||
#define HID_QUERY_ALIASNAME "DBACCESS_HID_QUERY_ALIASNAME"
|
||||
#define HID_QUERY_DISTINCT "DBACCESS_HID_QUERY_DISTINCT"
|
||||
|
||||
#define HID_BROWSER_QUERY_CREATE_DESIGN "DBACCESS_HID_BROWSER_QUERY_CREATE_DESIGN"
|
||||
|
||||
#define HID_TAB_DESIGN_FIELDCONTROL "DBACCESS_HID_TAB_DESIGN_FIELDCONTROL"
|
||||
#define HID_TABLE_DESIGN_HELP_WINDOW "DBACCESS_HID_TABLE_DESIGN_HELP_WINDOW"
|
||||
#define HID_TAB_DESIGN_DESCWIN "DBACCESS_HID_TAB_DESIGN_DESCWIN"
|
||||
@@ -80,12 +76,10 @@
|
||||
#define HID_TAB_ENT_NUMTYP "DBACCESS_HID_TAB_ENT_NUMTYP"
|
||||
#define HID_TAB_ENT_LEN "DBACCESS_HID_TAB_ENT_LEN"
|
||||
#define HID_TAB_ENT_SCALE "DBACCESS_HID_TAB_ENT_SCALE"
|
||||
#define HID_BROWSER_TABLE_CREATE_DESIGN "DBACCESS_HID_BROWSER_TABLE_CREATE_DESIGN"
|
||||
#define HID_CTL_RELATIONTAB "DBACCESS_HID_CTL_RELATIONTAB"
|
||||
#define HID_RELATIONDIALOG_LEFTFIELDCELL "DBACCESS_HID_RELATIONDIALOG_LEFTFIELDCELL"
|
||||
#define HID_RELATIONDIALOG_RIGHTFIELDCELL "DBACCESS_HID_RELATIONDIALOG_RIGHTFIELDCELL"
|
||||
#define HID_BROWSER_COLUMNINFO "DBACCESS_HID_BROWSER_COLUMNINFO"
|
||||
#define HID_BROWSER_VIEW_CREATE_DESIGN "DBACCESS_HID_BROWSER_VIEW_CREATE_DESIGN"
|
||||
#define HID_CONFIRM_DROP_BUTTON_ALL "DBACCESS_HID_CONFIRM_DROP_BUTTON_ALL"
|
||||
#define HID_DSADMIN_LDAP_HOSTNAME "DBACCESS_HID_DSADMIN_LDAP_HOSTNAME"
|
||||
#define HID_DSBROWSER_DISCONNECTING "DBACCESS_HID_DSBROWSER_DISCONNECTING"
|
||||
@@ -97,7 +91,6 @@
|
||||
|
||||
#define HID_QUERY_EDIT_JOINCONNECTION "DBACCESS_HID_QUERY_EDIT_JOINCONNECTION"
|
||||
|
||||
#define HID_DOCUMENT_CREATE_REPWIZ "DBACCESS_HID_DOCUMENT_CREATE_REPWIZ"
|
||||
#define HID_TAB_AUTOINCREMENTVALUE "DBACCESS_HID_TAB_AUTOINCREMENTVALUE"
|
||||
|
||||
#define HID_DSADMIN_DBASE_PATH "DBACCESS_HID_DSADMIN_DBASE_PATH"
|
||||
|
@@ -81,71 +81,6 @@ String RID_STR_REPORTS_CONTAINER
|
||||
Text [ en-US ] = "Reports" ;
|
||||
};
|
||||
|
||||
Menu RID_MENU_APP_NEW
|
||||
{
|
||||
ItemList =
|
||||
{
|
||||
MenuItem
|
||||
{
|
||||
Identifier = SID_APP_NEW_FORM;
|
||||
Command = ".uno:DBNewForm";
|
||||
Text [ en-US ] = "Form..." ;
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = SID_APP_NEW_REPORT;
|
||||
Command = ".uno:DBNewReport";
|
||||
Text [ en-US ] = "Report..." ;
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_DOCUMENT_CREATE_REPWIZ ;
|
||||
HelpID = HID_DOCUMENT_CREATE_REPWIZ ;
|
||||
Text [ en-US ] = "Report Wizard...";
|
||||
Command = ".uno:DBNewReportAutoPilot";
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_NEW_QUERY_DESIGN;
|
||||
HelpId = HID_BROWSER_QUERY_CREATE_DESIGN ;
|
||||
Text [ en-US ] = "New ~Query (Design View)" ;
|
||||
Command = ".uno:DBNewQuery";
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_NEW_QUERY_SQL;
|
||||
HelpId = HID_BROWSER_QUERY_CREATE_TEXT ;
|
||||
Text [ en-US ] = "New Query (~SQL View)" ;
|
||||
Command = ".uno:DBNewQuerySql";
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Separator = TRUE;
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_NEW_TABLE_DESIGN;
|
||||
HelpId = HID_BROWSER_TABLE_CREATE_DESIGN ;
|
||||
Text [ en-US ] = "New ~Table Design" ;
|
||||
Command = ".uno:DBNewTable";
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_NEW_VIEW_DESIGN;
|
||||
HelpId = HID_BROWSER_VIEW_CREATE_DESIGN ;
|
||||
Text [ en-US ] = "New ~View Design" ;
|
||||
Command = ".uno:DBNewView";
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = SID_DB_NEW_VIEW_SQL;
|
||||
Command = ".uno:DBNewViewSQL";
|
||||
Text [ en-US ] = "View (Simple)..." ;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Menu RID_MENU_APP_EDIT
|
||||
{
|
||||
ItemList =
|
||||
|
20
dbaccess/uiconfig/dbapp/popupmenu/new.xml
Normal file
20
dbaccess/uiconfig/dbapp/popupmenu/new.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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:DBNewForm"/>
|
||||
<menu:menuitem menu:id=".uno:DBNewReport"/>
|
||||
<menu:menuitem menu:id=".uno:DBNewReportAutoPilot"/>
|
||||
<menu:menuitem menu:id=".uno:DBNewQuery"/>
|
||||
<menu:menuitem menu:id=".uno:DBNewQuerySql"/>
|
||||
<menu:menuseparator/>
|
||||
<menu:menuitem menu:id=".uno:DBNewTable"/>
|
||||
<menu:menuitem menu:id=".uno:DBNewView"/>
|
||||
<menu:menuitem menu:id=".uno:DBNewViewSQL"/>
|
||||
</menu:menupopup>
|
@@ -397,6 +397,20 @@
|
||||
<value>com.sun.star.comp.framework.ToolbarModeMenuController</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name="c33" oor:op="replace">
|
||||
<prop oor:name="Command">
|
||||
<value>.uno:DBNewMenu</value>
|
||||
</prop>
|
||||
<prop oor:name="Module">
|
||||
<value>com.sun.star.sdb.OfficeDatabaseDocument</value>
|
||||
</prop>
|
||||
<prop oor:name="Controller">
|
||||
<value>com.sun.star.comp.framework.ResourceMenuController</value>
|
||||
</prop>
|
||||
<prop oor:name="Value">
|
||||
<value>new</value>
|
||||
</prop>
|
||||
</node>
|
||||
</node>
|
||||
<node oor:name="ToolBar">
|
||||
<node oor:name="ZoomToolBox" oor:op="replace">
|
||||
@@ -673,7 +687,10 @@
|
||||
<value>com.sun.star.sdb.OfficeDatabaseDocument</value>
|
||||
</prop>
|
||||
<prop oor:name="Controller">
|
||||
<value>com.sun.star.sdb.ApplicationToolboxController</value>
|
||||
<value>com.sun.star.comp.framework.GenericPopupToolbarController</value>
|
||||
</prop>
|
||||
<prop oor:name="Value">
|
||||
<value>.uno:DBNewMenu;1</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name="org.libreoffice.comp.dbu.LimitBoxController" oor:op="replace">
|
||||
|
@@ -367,6 +367,9 @@
|
||||
<prop oor:name="Label" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Query (Design View)...</value>
|
||||
</prop>
|
||||
<prop oor:name="PopupLabel" oor:type="xs:string">
|
||||
<value xml:lang="en-US">New ~Query (Design View)</value>
|
||||
</prop>
|
||||
<prop oor:name="Properties" oor:type="xs:int">
|
||||
<value>1</value>
|
||||
</prop>
|
||||
@@ -375,6 +378,9 @@
|
||||
<prop oor:name="Label" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Query (SQL View)...</value>
|
||||
</prop>
|
||||
<prop oor:name="PopupLabel" oor:type="xs:string">
|
||||
<value xml:lang="en-US">New Query (~SQL View)</value>
|
||||
</prop>
|
||||
<prop oor:name="Properties" oor:type="xs:int">
|
||||
<value>1</value>
|
||||
</prop>
|
||||
@@ -383,6 +389,9 @@
|
||||
<prop oor:name="Label" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Table Design...</value>
|
||||
</prop>
|
||||
<prop oor:name="PopupLabel" oor:type="xs:string">
|
||||
<value xml:lang="en-US">New ~Table Design</value>
|
||||
</prop>
|
||||
<prop oor:name="Properties" oor:type="xs:int">
|
||||
<value>1</value>
|
||||
</prop>
|
||||
@@ -391,6 +400,9 @@
|
||||
<prop oor:name="Label" oor:type="xs:string">
|
||||
<value xml:lang="en-US">View Design...</value>
|
||||
</prop>
|
||||
<prop oor:name="PopupLabel" oor:type="xs:string">
|
||||
<value xml:lang="en-US">New ~View Design</value>
|
||||
</prop>
|
||||
<prop oor:name="Properties" oor:type="xs:int">
|
||||
<value>1</value>
|
||||
</prop>
|
||||
|
Reference in New Issue
Block a user