Convert RID_MENU_REFRESH_DATA to xml
Change-Id: I22107396eaab848224f26eb54f8638a354c13509
This commit is contained in:
parent
420e80dfd7
commit
ec0e60c53f
7 changed files with 57 additions and 20 deletions
|
@ -13,6 +13,10 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/dbbrowser,\
|
|||
dbaccess/uiconfig/dbbrowser/menubar/compat \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UIConfig_add_popupmenufiles,modules/dbbrowser,\
|
||||
dbaccess/uiconfig/dbbrowser/popupmenu/refreshdata \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UIConfig_add_toolbarfiles,modules/dbbrowser,\
|
||||
dbaccess/uiconfig/dbbrowser/toolbar/toolbar \
|
||||
))
|
||||
|
|
|
@ -13,6 +13,10 @@ $(eval $(call gb_UIConfig_add_menubarfiles,modules/dbtdata,\
|
|||
dbaccess/uiconfig/dbtdata/menubar/menubar \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UIConfig_add_popupmenufiles,modules/dbtdata,\
|
||||
dbaccess/uiconfig/dbtdata/popupmenu/refreshdata \
|
||||
))
|
||||
|
||||
$(eval $(call gb_UIConfig_add_toolbarfiles,modules/dbtdata,\
|
||||
dbaccess/uiconfig/dbtdata/toolbar/toolbar \
|
||||
))
|
||||
|
|
|
@ -143,23 +143,4 @@ String STR_COULDNOTCONNECT_DATASOURCE
|
|||
Text [ en-US ] = "The connection to the data source \"$name$\" could not be established.";
|
||||
};
|
||||
|
||||
Menu RID_MENU_REFRESH_DATA
|
||||
{
|
||||
ItemList =
|
||||
{
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_BROWSER_REFRESH ;
|
||||
Text [ en-US ] = "Refresh";
|
||||
Command = ".uno:Refresh";
|
||||
};
|
||||
MenuItem
|
||||
{
|
||||
Identifier = ID_BROWSER_REFRESH_REBUILD;
|
||||
Command = ".uno:DBRebuildData";
|
||||
Text [ en-US ] = "Rebuild";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
13
dbaccess/uiconfig/dbbrowser/popupmenu/refreshdata.xml
Normal file
13
dbaccess/uiconfig/dbbrowser/popupmenu/refreshdata.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?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:Refresh"/>
|
||||
<menu:menuitem menu:id=".uno:DBRebuildData"/>
|
||||
</menu:menupopup>
|
13
dbaccess/uiconfig/dbtdata/popupmenu/refreshdata.xml
Normal file
13
dbaccess/uiconfig/dbtdata/popupmenu/refreshdata.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?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:Refresh"/>
|
||||
<menu:menuitem menu:id=".uno:DBRebuildData"/>
|
||||
</menu:menupopup>
|
|
@ -411,6 +411,20 @@
|
|||
<value>new</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name="c34" oor:op="replace">
|
||||
<prop oor:name="Command">
|
||||
<value>.uno:DBRefreshMenu</value>
|
||||
</prop>
|
||||
<prop oor:name="Module">
|
||||
<value/>
|
||||
</prop>
|
||||
<prop oor:name="Controller">
|
||||
<value>com.sun.star.comp.framework.ResourceMenuController</value>
|
||||
</prop>
|
||||
<prop oor:name="Value">
|
||||
<value>refreshdata</value>
|
||||
</prop>
|
||||
</node>
|
||||
</node>
|
||||
<node oor:name="ToolBar">
|
||||
<node oor:name="ZoomToolBox" oor:op="replace">
|
||||
|
@ -723,7 +737,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:DBRefreshMenu;1</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name="c13" oor:op="replace">
|
||||
|
|
|
@ -515,6 +515,11 @@
|
|||
<value xml:lang="en-US">Preview</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name=".uno:DBRebuildData" oor:op="replace">
|
||||
<prop oor:name="Label" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Rebuild</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name=".uno:DBNewReport" oor:op="replace">
|
||||
<prop oor:name="Label" oor:type="xs:string">
|
||||
<value xml:lang="en-US">Report...</value>
|
||||
|
|
Loading…
Reference in a new issue