expand src templates

Change-Id: Id35caa8b8ed0c2f7e4d868f5c87a2a0f331cb352
This commit is contained in:
David Tardon
2016-03-07 13:31:04 +01:00
parent 24905f42b9
commit d795f83695
31 changed files with 69 additions and 103 deletions

View File

@@ -25,7 +25,6 @@ $(eval $(call gb_SrsTarget_set_include,dbaccess/dbu,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/dbaccess/inc \ -I$(SRCDIR)/dbaccess/inc \
-I$(SRCDIR)/dbaccess/source/ui/inc \ -I$(SRCDIR)/dbaccess/source/ui/inc \
-I$(call gb_SrsTemplateTarget_get_include_dir,) \
)) ))
$(eval $(call gb_SrsTarget_add_files,dbaccess/dbu,\ $(eval $(call gb_SrsTarget_add_files,dbaccess/dbu,\

View File

@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include "dbu_app.hrc" #include "dbu_app.hrc"
#include <svx/globlmn.hrc>
#include <sfx2/cntids.hrc> #include <sfx2/cntids.hrc>
#include "browserids.hxx" #include "browserids.hxx"
#include "dbaccess_helpid.hrc" #include "dbaccess_helpid.hrc"
@@ -153,11 +152,15 @@ Menu RID_MENU_APP_EDIT
{ {
MenuItem MenuItem
{ {
ITEM_EDIT_COPY Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_PASTE Identifier = SID_PASTE ;
Command = ".uno:Paste" ;
Text [ en-US ] = "~Paste" ;
}; };
MenuItem MenuItem
{ {

View File

@@ -19,7 +19,6 @@
#include "dbaccess_helpid.hrc" #include "dbaccess_helpid.hrc"
#include "dbu_brw.hrc" #include "dbu_brw.hrc"
#include "browserids.hxx" #include "browserids.hxx"
#include <svx/globlmn.hrc>
String STR_QUERY_BRW_DELETE_ROWS String STR_QUERY_BRW_DELETE_ROWS
{ {
@@ -87,7 +86,11 @@ Menu MENU_BROWSER_DEFAULTCONTEXT
{ \ { \
Separator = TRUE; \ Separator = TRUE; \
}; \ }; \
MenuItem { ITEM_EDIT_COPY }; MenuItem {
Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
};
MenuItem \ MenuItem \
{ \ { \
Separator = TRUE; \ Separator = TRUE; \

View File

@@ -19,7 +19,6 @@
#include "dbu_brw.hrc" #include "dbu_brw.hrc"
#include "dbaccess_helpid.hrc" #include "dbaccess_helpid.hrc"
#include "browserids.hxx" #include "browserids.hxx"
#include <svx/globlmn.hrc>
Menu RID_SBA_GRID_COLCTXMENU Menu RID_SBA_GRID_COLCTXMENU
{ {
@@ -65,7 +64,9 @@ Menu RID_SBA_GRID_ROWCTXMENU
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_COPY Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
}; };
}; };
}; };

View File

@@ -18,7 +18,6 @@
*/ */
#include "dbu_qry.hrc" #include "dbu_qry.hrc"
#include "Query.hrc" #include "Query.hrc"
#include <svx/globlmn.hrc>
#include <sfx2/cntids.hrc> #include <sfx2/cntids.hrc>
#include "browserids.hxx" #include "browserids.hxx"
#include "dbaccess_helpid.hrc" #include "dbaccess_helpid.hrc"
@@ -29,7 +28,9 @@ Menu RID_MENU_JOINVIEW_CONNECTION
{ {
MenuItem MenuItem
{ {
ITEM_EDIT_DELETE Identifier = SID_DELETE ;
Command = ".uno:Delete" ;
Text [ en-US ] = "~Delete" ;
}; };
MenuItem MenuItem
{ {
@@ -46,7 +47,9 @@ Menu RID_MENU_JOINVIEW_TABLE
{ {
MenuItem MenuItem
{ {
ITEM_EDIT_DELETE Identifier = SID_DELETE ;
Command = ".uno:Delete" ;
Text [ en-US ] = "~Delete" ;
}; };
}; };
}; };
@@ -67,7 +70,9 @@ Menu RID_QUERYCOLPOPUPMENU
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_DELETE Identifier = SID_DELETE ;
Command = ".uno:Delete" ;
Text [ en-US ] = "~Delete" ;
}; };
}; };
}; };

View File

@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include "dbu_rel.hrc" #include "dbu_rel.hrc"
#include <svx/globlmn.hrc>
#include <sfx2/cntids.hrc> #include <sfx2/cntids.hrc>
#include "browserids.hxx" #include "browserids.hxx"
#include "dbaccess_helpid.hrc" #include "dbaccess_helpid.hrc"

View File

@@ -21,7 +21,6 @@
#include "dbaccess_helpid.hrc" #include "dbaccess_helpid.hrc"
#include "dbaccess_slotid.hrc" #include "dbaccess_slotid.hrc"
#include "browserids.hxx" #include "browserids.hxx"
#include <svx/globlmn.hrc>
String STR_TABLEDESIGN_DBFIELDTYPES String STR_TABLEDESIGN_DBFIELDTYPES
{ {
@@ -140,19 +139,27 @@ Menu RID_TABLEDESIGNROWPOPUPMENU
{ {
MenuItem MenuItem
{ {
ITEM_EDIT_CUT Identifier = SID_CUT ;
Command = ".uno:Cut" ;
Text [ en-US ] = "Cu~t" ;
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_COPY Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_PASTE Identifier = SID_PASTE ;
Command = ".uno:Paste" ;
Text [ en-US ] = "~Paste" ;
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_DELETE Identifier = SID_DELETE ;
Command = ".uno:Delete" ;
Text [ en-US ] = "~Delete" ;
}; };
MenuItem MenuItem
{ {

View File

@@ -86,8 +86,7 @@ bool passesNegativeList(const OUString& rUrl) {
bool passesPositiveList(const OUString& rUrl) { bool passesPositiveList(const OUString& rUrl) {
static const AsciiString list[] = { static const AsciiString list[] = {
{ RTL_CONSTASCII_STRINGPARAM("/description.xml") }, { RTL_CONSTASCII_STRINGPARAM("/description.xml") }
{ RTL_CONSTASCII_STRINGPARAM("/svx/inc/globlmn_tmpl.hrc") }
}; };
return matchList(rUrl, list, SAL_N_ELEMENTS(list)); return matchList(rUrl, list, SAL_N_ELEMENTS(list));
} }

View File

@@ -24,7 +24,6 @@ $(eval $(call gb_SrsTarget_use_srstargets,reportdesign/res,\
$(eval $(call gb_SrsTarget_set_include,reportdesign/res,\ $(eval $(call gb_SrsTarget_set_include,reportdesign/res,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/reportdesign/source/core/inc \ -I$(SRCDIR)/reportdesign/source/core/inc \
-I$(call gb_SrsTemplateTarget_get_include_dir,) \
)) ))
$(eval $(call gb_SrsTarget_add_files,reportdesign/res,\ $(eval $(call gb_SrsTarget_add_files,reportdesign/res,\

View File

@@ -33,7 +33,6 @@ $(eval $(call gb_SrsTarget_set_include,reportdesign/rptui,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/reportdesign/source/ui/inc \ -I$(SRCDIR)/reportdesign/source/ui/inc \
-I$(SRCDIR)/reportdesign/inc \ -I$(SRCDIR)/reportdesign/inc \
-I$(call gb_SrsTemplateTarget_get_include_dir,) \
)) ))

View File

@@ -19,7 +19,6 @@
#include "CondFormat.hrc" #include "CondFormat.hrc"
#include "RptResId.hrc" #include "RptResId.hrc"
#include "helpids.hrc" #include "helpids.hrc"
#include <svx/globlmn.hrc>
#include "rptui_slotid.hrc" #include "rptui_slotid.hrc"
String STR_NUMBERED_CONDITION String STR_NUMBERED_CONDITION

View File

@@ -18,7 +18,6 @@
*/ */
#include "RptResId.hrc" #include "RptResId.hrc"
#include "helpids.hrc" #include "helpids.hrc"
#include <svx/globlmn.hrc>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
String STR_RPT_EXPRESSION String STR_RPT_EXPRESSION
@@ -117,7 +116,9 @@ Menu RID_GROUPSROWPOPUPMENU
{ {
MenuItem MenuItem
{ {
ITEM_EDIT_DELETE Identifier = SID_DELETE ;
Command = ".uno:Delete" ;
Text [ en-US ] = "~Delete" ;
}; };
}; };
}; };

View File

@@ -19,7 +19,6 @@
#include "RptResId.hrc" #include "RptResId.hrc"
#include "helpids.hrc" #include "helpids.hrc"
#include "rptui_slotid.hrc" #include "rptui_slotid.hrc"
#include <svx/globlmn.hrc>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <svl/solar.hrc> #include <svl/solar.hrc>
@@ -119,7 +118,9 @@ Menu RID_MENU_NAVIGATOR
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_DELETE Identifier = SID_DELETE ;
Command = ".uno:Delete" ;
Text [ en-US ] = "~Delete" ;
}; };
}; };
}; };

View File

@@ -18,7 +18,6 @@
*/ */
#include "RptResId.hrc" #include "RptResId.hrc"
#include "helpids.hrc" #include "helpids.hrc"
#include <svx/globlmn.hrc>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
String STR_RPT_PN_PAGE String STR_RPT_PN_PAGE

View File

@@ -18,7 +18,6 @@
*/ */
#include "RptResId.hrc" #include "RptResId.hrc"
#include "rptui_slotid.hrc" #include "rptui_slotid.hrc"
#include <svx/globlmn.hrc>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
String RID_STR_PROPPAGE_DEFAULT String RID_STR_PROPPAGE_DEFAULT

View File

@@ -18,7 +18,6 @@
*/ */
#include "RptResId.hrc" #include "RptResId.hrc"
#include "rptui_slotid.hrc" #include "rptui_slotid.hrc"
#include <svx/globlmn.hrc>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include "helpids.hrc" #include "helpids.hrc"
@@ -525,15 +524,21 @@ Menu RID_MENU_REPORT
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_CUT Identifier = SID_CUT ;
Command = ".uno:Cut" ;
Text [ en-US ] = "Cu~t" ;
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_COPY Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
}; };
MenuItem MenuItem
{ {
ITEM_EDIT_PASTE Identifier = SID_PASTE ;
Command = ".uno:Paste" ;
Text [ en-US ] = "~Paste" ;
}; };
}; };
}; };

View File

@@ -18,7 +18,6 @@
*/ */
#include "sc.hrc" #include "sc.hrc"
#include <svx/globlmn.hrc>
String SCSTR_QHELP_POSWND String SCSTR_QHELP_POSWND
{ {

View File

@@ -18,7 +18,6 @@
*/ */
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
#include <svx/globlmn.hrc>
#include "starmath.hrc" #include "starmath.hrc"
String RID_FONTREGULAR String RID_FONTREGULAR

View File

@@ -18,7 +18,6 @@
*/ */
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
#include <svx/globlmn.hrc>
#include "starmath.hrc" #include "starmath.hrc"
#define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000; Blue = 0xff00; } #define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000; Blue = 0xff00; }

View File

@@ -29,7 +29,6 @@ $(eval $(call gb_SrsTarget_SrsTarget,svx/res))
$(eval $(call gb_SrsTarget_set_include,svx/res,\ $(eval $(call gb_SrsTarget_set_include,svx/res,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(call gb_SrsTemplateTarget_get_include_dir,svx) \
-I$(SRCDIR)/svx/source/inc \ -I$(SRCDIR)/svx/source/inc \
-I$(SRCDIR)/svx/source/dialog \ -I$(SRCDIR)/svx/source/dialog \
-I$(SRCDIR)/svx/inc/ \ -I$(SRCDIR)/svx/inc/ \
@@ -87,8 +86,4 @@ $(eval $(call gb_SrsTarget_add_nonlocalizable_files,svx/res,\
svx/source/unodraw/unodraw.src \ svx/source/unodraw/unodraw.src \
)) ))
$(eval $(call gb_SrsTarget_add_templates,svx/res,\
svx/inc/globlmn_tmpl.hrc \
))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@@ -55,6 +55,5 @@ endif
#todo: noopt for EnhanceCustomShapesFunctionParser.cxx on Solaris Sparc and MacOSX #todo: noopt for EnhanceCustomShapesFunctionParser.cxx on Solaris Sparc and MacOSX
#todo: -DBOOST_SPIRIT_USE_OLD_NAMESPACE only in CustomShapes ? #todo: -DBOOST_SPIRIT_USE_OLD_NAMESPACE only in CustomShapes ?
#todo: -DUNICODE and -D_UNICODE on WNT for source/dialog #todo: -DUNICODE and -D_UNICODE on WNT for source/dialog
#todo: globlmn.hrc
#todo: component file #todo: component file
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@@ -1,48 +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 .
*/
#ifndef _GLOBLMN_HRC
#define _GLOBLMN_HRC
/*------------------------------------------------------------------------
Menu-IDs
------------------------------------------------------------------------*/
#define ITEM_EDIT_CUT \
Identifier = SID_CUT ; \
Command = ".uno:Cut" ; \
Text [ en-US ] = "Cu~t" ;\
#define ITEM_EDIT_COPY \
Identifier = SID_COPY ; \
Command = ".uno:Copy" ; \
Text [ en-US ] = "~Copy" ;\
#define ITEM_EDIT_DELETE \
Identifier = SID_DELETE ; \
Command = ".uno:Delete" ; \
Text [ en-US ] = "~Delete" ;\
#define ITEM_EDIT_PASTE \
Identifier = SID_PASTE ; \
Command = ".uno:Paste" ; \
Text [ en-US ] = "~Paste" ; \
#endif // #ifndef _GLOBLMN_HRC
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -19,7 +19,6 @@
#include "svx/fmresids.hrc" #include "svx/fmresids.hrc"
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include "globlmn.hrc"
#include "fmhelp.hrc" #include "fmhelp.hrc"
#include <svx/svxcommands.h> #include <svx/svxcommands.h>
@@ -192,7 +191,9 @@ Menu RID_SVXMNU_CELL
{ {
MenuItem MenuItem
{ {
ITEM_EDIT_COPY Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
}; };
}; };
}; };

View File

@@ -18,7 +18,6 @@
*/ */
#include "datanavi.hrc" #include "datanavi.hrc"
#include "globlmn.hrc"
#include "svx/dialogs.hrc" #include "svx/dialogs.hrc"
#include "svx/fmresids.hrc" #include "svx/fmresids.hrc"
#include "fmhelp.hrc" #include "fmhelp.hrc"

View File

@@ -19,7 +19,6 @@
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include "svx/fmresids.hrc" #include "svx/fmresids.hrc"
#include "globlmn.hrc"
#include <svx/svxcommands.h> #include <svx/svxcommands.h>
#include "fmhelp.hrc" #include "fmhelp.hrc"
@@ -57,9 +56,21 @@ Menu RID_FMEXPLORER_POPUPMENU
HelpId = CMD_SID_FM_CHANGECONTROLTYPE ; HelpId = CMD_SID_FM_CHANGECONTROLTYPE ;
Text [ en-US ] = "Replace with"; Text [ en-US ] = "Replace with";
}; };
MenuItem { ITEM_EDIT_CUT }; MenuItem {
MenuItem { ITEM_EDIT_COPY }; Identifier = SID_CUT ;
MenuItem { ITEM_EDIT_PASTE }; Command = ".uno:Cut" ;
Text [ en-US ] = "Cu~t" ;
};
MenuItem {
Identifier = SID_COPY ;
Command = ".uno:Copy" ;
Text [ en-US ] = "~Copy" ;
};
MenuItem {
Identifier = SID_PASTE ;
Command = ".uno:Paste" ;
Text [ en-US ] = "~Paste" ;
};
MenuItem MenuItem
{ {
Identifier = SID_FM_DELETE ; Identifier = SID_FM_DELETE ;

View File

@@ -61,7 +61,6 @@ $(eval $(call gb_SrsTarget_set_include,sw/res,\
-I$(SRCDIR)/sw/source/ui/utlui \ -I$(SRCDIR)/sw/source/ui/utlui \
-I$(SRCDIR)/sw/source/ui/web \ -I$(SRCDIR)/sw/source/ui/web \
-I$(SRCDIR)/sw/source/ui/wrtsh \ -I$(SRCDIR)/sw/source/ui/wrtsh \
-I$(call gb_SrsTemplateTarget_get_include_dir,) \
-I$(call gb_SrsTemplateTarget_get_include_dir,sw) \ -I$(call gb_SrsTemplateTarget_get_include_dir,sw) \
)) ))

View File

@@ -20,7 +20,6 @@
#include <svl/style.hrc> #include <svl/style.hrc>
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
#include <svx/dialogs.hrc> #include <svx/dialogs.hrc>
#include <svx/globlmn.hrc>
#include "cmdid.h" #include "cmdid.h"
#include "access.hrc" #include "access.hrc"
#include "globals.hrc" #include "globals.hrc"

View File

@@ -18,7 +18,6 @@
*/ */
#include <svx/dialogs.hrc> #include <svx/dialogs.hrc>
#include <svx/globlmn.hrc>
#include "cmdid.h" #include "cmdid.h"
#include "app.hrc" #include "app.hrc"
#include "globals.hrc" #include "globals.hrc"

View File

@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <svx/globlmn.hrc>
#include "helpid.h" #include "helpid.h"
#include "shells.hrc" #include "shells.hrc"
#include "globals.hrc" #include "globals.hrc"

View File

@@ -18,7 +18,6 @@
*/ */
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <svx/globlmn.hrc>
#include "globals.hrc" #include "globals.hrc"
#include "workctrl.hrc" #include "workctrl.hrc"
#include "helpid.h" #include "helpid.h"

View File

@@ -18,7 +18,6 @@
*/ */
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <svx/globlmn.hrc>
#include "view.hrc" #include "view.hrc"
#include "shells.hrc" #include "shells.hrc"
#include "globals.hrc" #include "globals.hrc"