summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-11 20:56:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-21 08:20:50 +0100
commit00657aef09d854c74fb426a935a3e8b1fc390bb0 (patch)
treefd1a9bb264fe15dcc129498e62060ecd256b1ee7 /reportdesign
parentfa987cbb813cfd729fe490f2f1258b7c8d7fb174 (diff)
migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/AllLangMoTarget_rpt.mk13
-rw-r--r--reportdesign/AllLangResTarget_rpt.mk29
-rw-r--r--reportdesign/AllLangResTarget_rptui.mk44
-rw-r--r--reportdesign/Library_rpt.mk1
-rw-r--r--reportdesign/Module_reportdesign.mk5
-rw-r--r--reportdesign/inc/ModuleHelper.hxx91
-rw-r--r--reportdesign/inc/RptResId.hrc204
-rw-r--r--reportdesign/inc/UndoActions.hxx9
-rw-r--r--reportdesign/inc/core_resource.hxx (renamed from reportdesign/source/inc/corestrings.hrc)12
-rw-r--r--reportdesign/inc/pch/precompiled_rpt.hxx3
-rw-r--r--reportdesign/inc/pch/precompiled_rptui.hxx4
-rw-r--r--reportdesign/inc/stringarray.hrc83
-rw-r--r--reportdesign/inc/strings.hrc189
-rw-r--r--reportdesign/inc/strings.hxx269
-rw-r--r--reportdesign/source/core/api/FixedLine.cxx8
-rw-r--r--reportdesign/source/core/api/FixedText.cxx8
-rw-r--r--reportdesign/source/core/api/FormatCondition.cxx2
-rw-r--r--reportdesign/source/core/api/FormattedField.cxx8
-rw-r--r--reportdesign/source/core/api/Function.cxx2
-rw-r--r--reportdesign/source/core/api/Functions.cxx6
-rw-r--r--reportdesign/source/core/api/Group.cxx8
-rw-r--r--reportdesign/source/core/api/Groups.cxx6
-rw-r--r--reportdesign/source/core/api/ImageControl.cxx8
-rw-r--r--reportdesign/source/core/api/ReportComponent.cxx2
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx24
-rw-r--r--reportdesign/source/core/api/ReportEngineJFree.cxx6
-rw-r--r--reportdesign/source/core/api/Section.cxx4
-rw-r--r--reportdesign/source/core/api/Shape.cxx8
-rw-r--r--reportdesign/source/core/api/Tools.cxx4
-rw-r--r--reportdesign/source/core/inc/ReportUndoFactory.hxx2
-rw-r--r--reportdesign/source/core/inc/Tools.hxx2
-rw-r--r--reportdesign/source/core/inc/core_resource.hrc46
-rw-r--r--reportdesign/source/core/inc/core_resource.hxx66
-rw-r--r--reportdesign/source/core/resource/core_resource.cxx33
-rw-r--r--reportdesign/source/core/resource/strings.src97
-rw-r--r--reportdesign/source/core/sdr/ModuleHelper.cxx124
-rw-r--r--reportdesign/source/core/sdr/PropertyForward.cxx2
-rw-r--r--reportdesign/source/core/sdr/ReportDrawPage.cxx2
-rw-r--r--reportdesign/source/core/sdr/ReportUndoFactory.cxx8
-rw-r--r--reportdesign/source/core/sdr/RptModel.cxx4
-rw-r--r--reportdesign/source/core/sdr/RptObject.cxx5
-rw-r--r--reportdesign/source/core/sdr/UndoActions.cxx28
-rw-r--r--reportdesign/source/core/sdr/UndoEnv.cxx5
-rw-r--r--reportdesign/source/filter/xml/xmlCell.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlColumn.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlComponent.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlCondPrtExpr.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlExport.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlFixedContent.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlFormatCondition.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlFunction.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlHelper.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlRow.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlSection.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlTable.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx2
-rw-r--r--reportdesign/source/inc/stringconstants.hrc257
-rw-r--r--reportdesign/source/inc/uistrings.hrc57
-rw-r--r--reportdesign/source/inc/xmlstrings.hrc42
-rw-r--r--reportdesign/source/ui/dlg/AddField.cxx8
-rw-r--r--reportdesign/source/ui/dlg/CondFormat.cxx8
-rw-r--r--reportdesign/source/ui/dlg/CondFormat.src28
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx6
-rw-r--r--reportdesign/source/ui/dlg/DateTime.cxx5
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.cxx38
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.src108
-rw-r--r--reportdesign/source/ui/dlg/Navigator.cxx10
-rw-r--r--reportdesign/source/ui/dlg/Navigator.src35
-rw-r--r--reportdesign/source/ui/dlg/PageNumber.cxx5
-rw-r--r--reportdesign/source/ui/dlg/PageNumber.src34
-rw-r--r--reportdesign/source/ui/dlg/dlgpage.cxx3
-rw-r--r--reportdesign/source/ui/inc/ColorListener.hxx2
-rw-r--r--reportdesign/source/ui/inc/CondFormat.hxx3
-rw-r--r--reportdesign/source/ui/inc/GeometryHandler.hxx4
-rw-r--r--reportdesign/source/ui/inc/Navigator.hxx2
-rw-r--r--reportdesign/source/ui/inc/ReportController.hxx12
-rw-r--r--reportdesign/source/ui/inc/RptUndo.hxx6
-rw-r--r--reportdesign/source/ui/inc/SectionWindow.hxx4
-rw-r--r--reportdesign/source/ui/inc/metadata.hxx4
-rw-r--r--reportdesign/source/ui/inc/propbrw.hxx2
-rw-r--r--reportdesign/source/ui/inspection/DataProviderHandler.cxx11
-rw-r--r--reportdesign/source/ui/inspection/DefaultInspection.cxx8
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx106
-rw-r--r--reportdesign/source/ui/inspection/ReportComponentHandler.cxx2
-rw-r--r--reportdesign/source/ui/inspection/inspection.src348
-rw-r--r--reportdesign/source/ui/inspection/metadata.cxx10
-rw-r--r--reportdesign/source/ui/misc/ColorListener.cxx2
-rw-r--r--reportdesign/source/ui/misc/RptUndo.cxx16
-rw-r--r--reportdesign/source/ui/misc/UITools.cxx10
-rw-r--r--reportdesign/source/ui/report/DesignView.cxx2
-rw-r--r--reportdesign/source/ui/report/FixedTextColor.cxx2
-rw-r--r--reportdesign/source/ui/report/FormattedFieldBeautifier.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx66
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx4
-rw-r--r--reportdesign/source/ui/report/ReportWindow.cxx2
-rw-r--r--reportdesign/source/ui/report/SectionView.cxx2
-rw-r--r--reportdesign/source/ui/report/SectionWindow.cxx18
-rw-r--r--reportdesign/source/ui/report/StartMarker.cxx3
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx9
-rw-r--r--reportdesign/source/ui/report/dlgedfac.cxx2
-rw-r--r--reportdesign/source/ui/report/dlgedfunc.cxx2
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx37
-rw-r--r--reportdesign/source/ui/report/report.src284
-rw-r--r--reportdesign/uiconfig/dbreport/ui/backgrounddialog.ui6
-rw-r--r--reportdesign/uiconfig/dbreport/ui/chardialog.ui16
-rw-r--r--reportdesign/uiconfig/dbreport/ui/condformatdialog.ui4
-rw-r--r--reportdesign/uiconfig/dbreport/ui/conditionwin.ui44
-rw-r--r--reportdesign/uiconfig/dbreport/ui/datetimedialog.ui12
-rw-r--r--reportdesign/uiconfig/dbreport/ui/floatingfield.ui14
-rw-r--r--reportdesign/uiconfig/dbreport/ui/floatingnavigator.ui4
-rw-r--r--reportdesign/uiconfig/dbreport/ui/floatingsort.ui50
-rw-r--r--reportdesign/uiconfig/dbreport/ui/groupsortmenu.ui4
-rw-r--r--reportdesign/uiconfig/dbreport/ui/navigatormenu.ui14
-rw-r--r--reportdesign/uiconfig/dbreport/ui/pagedialog.ui8
-rw-r--r--reportdesign/uiconfig/dbreport/ui/pagenumberdialog.ui28
115 files changed, 975 insertions, 2370 deletions
diff --git a/reportdesign/AllLangMoTarget_rpt.mk b/reportdesign/AllLangMoTarget_rpt.mk
new file mode 100644
index 000000000000..b2a4a0b85ea3
--- /dev/null
+++ b/reportdesign/AllLangMoTarget_rpt.mk
@@ -0,0 +1,13 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# 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/.
+
+$(eval $(call gb_AllLangMoTarget_AllLangMoTarget,rpt))
+
+$(eval $(call gb_AllLangMoTarget_set_polocation,rpt,reportdesign))
+
+# vim: set noet sw=4 ts=4:
diff --git a/reportdesign/AllLangResTarget_rpt.mk b/reportdesign/AllLangResTarget_rpt.mk
deleted file mode 100644
index 65c93a2fe4ee..000000000000
--- a/reportdesign/AllLangResTarget_rpt.mk
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# 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/.
-#
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,rpt))
-
-$(eval $(call gb_AllLangResTarget_set_reslocation,rpt,reportdesign))
-
-$(eval $(call gb_AllLangResTarget_add_srs,rpt,\
- reportdesign/res \
-))
-
-$(eval $(call gb_SrsTarget_SrsTarget,reportdesign/res))
-
-$(eval $(call gb_SrsTarget_set_include,reportdesign/res,\
- $$(INCLUDE) \
- -I$(SRCDIR)/reportdesign/source/core/inc \
-))
-
-$(eval $(call gb_SrsTarget_add_files,reportdesign/res,\
- reportdesign/source/core/resource/strings.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/reportdesign/AllLangResTarget_rptui.mk b/reportdesign/AllLangResTarget_rptui.mk
deleted file mode 100644
index c0e799dfa39b..000000000000
--- a/reportdesign/AllLangResTarget_rptui.mk
+++ /dev/null
@@ -1,44 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# 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 .
-#
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,rptui))
-
-$(eval $(call gb_AllLangResTarget_set_reslocation,rptui,reportdesign))
-
-$(eval $(call gb_AllLangResTarget_add_srs,rptui,reportdesign/rptui))
-
-$(eval $(call gb_SrsTarget_SrsTarget,reportdesign/rptui))
-
-$(eval $(call gb_SrsTarget_set_include,reportdesign/rptui,\
- $$(INCLUDE) \
- -I$(SRCDIR)/reportdesign/source/ui/inc \
- -I$(SRCDIR)/reportdesign/inc \
-))
-
-
-$(eval $(call gb_SrsTarget_add_files,reportdesign/rptui,\
- reportdesign/source/ui/dlg/PageNumber.src \
- reportdesign/source/ui/dlg/CondFormat.src \
- reportdesign/source/ui/dlg/Navigator.src \
- reportdesign/source/ui/dlg/GroupsSorting.src \
- reportdesign/source/ui/inspection/inspection.src \
- reportdesign/source/ui/report/report.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/reportdesign/Library_rpt.mk b/reportdesign/Library_rpt.mk
index 02fd8748d26c..dec0903992d0 100644
--- a/reportdesign/Library_rpt.mk
+++ b/reportdesign/Library_rpt.mk
@@ -74,7 +74,6 @@ $(eval $(call gb_Library_add_exception_objects,rpt,\
reportdesign/source/core/misc/reportformula \
reportdesign/source/core/resource/core_resource \
reportdesign/source/core/sdr/formatnormalizer \
- reportdesign/source/core/sdr/ModuleHelper \
reportdesign/source/core/sdr/PropertyForward \
reportdesign/source/core/sdr/ReportDrawPage \
reportdesign/source/core/sdr/ReportUndoFactory \
diff --git a/reportdesign/Module_reportdesign.mk b/reportdesign/Module_reportdesign.mk
index 518addb5bd2c..d827dc1ba9c6 100644
--- a/reportdesign/Module_reportdesign.mk
+++ b/reportdesign/Module_reportdesign.mk
@@ -13,12 +13,11 @@ $(eval $(call gb_Module_add_targets,reportdesign,\
Library_rpt \
Library_rptui \
Library_rptxml \
+ UIConfig_dbreport \
))
$(eval $(call gb_Module_add_l10n_targets,reportdesign,\
- AllLangResTarget_rpt \
- AllLangResTarget_rptui \
- UIConfig_dbreport \
+ AllLangMoTarget_rpt \
))
# deactivated since sb123;
diff --git a/reportdesign/inc/ModuleHelper.hxx b/reportdesign/inc/ModuleHelper.hxx
deleted file mode 100644
index d88375a7f07a..000000000000
--- a/reportdesign/inc/ModuleHelper.hxx
+++ /dev/null
@@ -1,91 +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 INCLUDED_REPORTDESIGN_INC_MODULEHELPER_HXX
-#define INCLUDED_REPORTDESIGN_INC_MODULEHELPER_HXX
-
-#include "dllapi.h"
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <tools/resmgr.hxx>
-
-
-namespace rptui
-{
-
-
- //= OModule
-
- class OModuleImpl;
- class REPORTDESIGN_DLLPUBLIC OModule
- {
- friend class OModuleClient;
-
- private:
- OModule() = delete; //TODO: get rid of this class
-
- protected:
- static sal_Int32 s_nClients; /// number of registered clients
- static OModuleImpl* s_pImpl; /// impl class. lives as long as at least one client for the module is registered
-
- public:
- /// get the vcl res manager of the module
- static ResMgr* getResManager();
- protected:
- /// register a client for the module
- static void registerClient();
- /// revoke a client for the module
- static void revokeClient();
-
- private:
- /** ensure that the impl class exists
- @precond m_aMutex is guarded when this method gets called
- */
- static void ensureImpl();
- };
-
-
- //= OModuleClient
-
- /** base class for objects which uses any global module-specific resources
- */
- class REPORTDESIGN_DLLPUBLIC OModuleClient
- {
- public:
- OModuleClient() { OModule::registerClient(); }
- ~OModuleClient() { OModule::revokeClient(); }
- };
-
-
- //= ModuleRes
-
- /** specialized ResId, using the resource manager provided by the global module
- */
- class REPORTDESIGN_DLLPUBLIC ModuleRes : public ::ResId
- {
- public:
- ModuleRes(sal_uInt16 _nId) : ResId(_nId, *OModule::getResManager()) { }
- };
-
-} // namespace rptui
-
-
-#endif // INCLUDED_REPORTDESIGN_INC_MODULEHELPER_HXX
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/RptResId.hrc b/reportdesign/inc/RptResId.hrc
deleted file mode 100644
index e635ad9a9c0b..000000000000
--- a/reportdesign/inc/RptResId.hrc
+++ /dev/null
@@ -1,204 +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 INCLUDED_REPORTDESIGN_INC_RPTRESID_HRC
-#define INCLUDED_REPORTDESIGN_INC_RPTRESID_HRC
-
-#include <svl/solar.hrc>
-
-#define RID_DIALOG_START RID_RPT_START
-#define RID_PAGE_START RID_RPT_START
-#define RID_ERRORBOX_START RID_RPT_START
-#define RID_QUERYBOX_START RID_RPT_START
-#define RID_TOOLBOX_START RID_RPT_START
-#define RID_BITMAP_START RID_RPT_START
-#define RID_IMAGE_START RID_RPT_START
-#define RID_IMAGELIST_START RID_RPT_START
-#define RID_MENU_START RID_RPT_START
-#define RID_STRING_START RID_RPT_START
-#define RID_UNTYPED_START RID_RPT_START
-#define RID_WARN_START RID_RPT_START
-#define RID_CONTROL_START RID_RPT_START
-#define RID_MISC_START RID_RPT_START
-
-// strings
-#define RID_STR_PROPTITLE_FIXEDTEXT ( RID_STRING_START + 4 )
-#define RID_STR_PROPTITLE_FORMATTED ( RID_STRING_START + 5 )
-#define RID_STR_PROPTITLE_SHAPE ( RID_STRING_START + 6 )
-#define RID_STR_PROPTITLE_IMAGECONTROL ( RID_STRING_START + 7 )
-#define RID_STR_PROPTITLE_REPORT ( RID_STRING_START + 8 )
-#define RID_STR_PROPTITLE_SECTION ( RID_STRING_START + 9 )
-#define RID_STR_PROPTITLE_FUNCTION ( RID_STRING_START + 10 )
-
-// undo strings
-#define RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER ( RID_STRING_START + 11 )
-#define RID_STR_UNDO_ADD_REPORTHEADERFOOTER ( RID_STRING_START + 12 )
-#define RID_STR_UNDO_PROPERTY ( RID_STRING_START + 15 )
-#define RID_STR_UNDO_REMOVE_GROUP ( RID_STRING_START + 16 )
-#define RID_STR_UNDO_APPEND_GROUP ( RID_STRING_START + 17 )
-#define RID_STR_UNDO_MOVE_GROUP ( RID_STRING_START + 18 )
-#define RID_STR_UNDO_CONDITIONAL_FORMATTING ( RID_STRING_START + 19 )
-#define RID_STR_UNDO_REMOVE_SELECTION ( RID_STRING_START + 20 )
-#define RID_STR_UNDO_PASTE ( RID_STRING_START + 21 )
-#define RID_STR_UNDO_CHANGE_SIZE ( RID_STRING_START + 22 )
-#define RID_STR_UNDO_INSERT_CONTROL ( RID_STRING_START + 23 )
-#define RID_STR_UNDO_DELETE_CONTROL ( RID_STRING_START + 24 )
-#define RID_STR_UNDO_CHANGEPOSITION ( RID_STRING_START + 27 )
-#define RID_STR_UNDO_ADDFUNCTION ( RID_STRING_START + 28 )
-
-// other
-#define STR_RPT_LABEL ( RID_STRING_START + 33 )
-#define STR_RPT_EXPRESSION ( RID_STRING_START + 34 )
-#define STR_RPT_PN_PAGE ( RID_STRING_START + 36 )
-#define STR_RPT_PN_PAGE_OF ( RID_STRING_START + 37 )
-#define STR_RPT_PREFIXCHARS ( RID_STRING_START + 38 )
-#define STR_RPT_YEAR ( RID_STRING_START + 39 )
-#define STR_RPT_QUARTER ( RID_STRING_START + 40 )
-#define STR_RPT_MONTH ( RID_STRING_START + 41 )
-#define STR_RPT_WEEK ( RID_STRING_START + 42 )
-#define STR_RPT_DAY ( RID_STRING_START + 43 )
-#define STR_RPT_HOUR ( RID_STRING_START + 44 )
-#define STR_RPT_MINUTE ( RID_STRING_START + 45 )
-#define STR_RPT_INTERVAL ( RID_STRING_START + 46 )
-#define STR_RPT_HELP_FIELD ( RID_STRING_START + 47 )
-#define STR_RPT_HELP_HEADER ( RID_STRING_START + 48 )
-#define STR_RPT_HELP_FOOTER ( RID_STRING_START + 49 )
-#define STR_RPT_HELP_GROUPON ( RID_STRING_START + 50 )
-#define STR_RPT_HELP_INTERVAL ( RID_STRING_START + 51 )
-#define STR_RPT_HELP_KEEP ( RID_STRING_START + 52 )
-#define STR_RPT_HELP_SORT ( RID_STRING_START + 53 )
-#define RID_STR_GROUPHEADER ( RID_STRING_START + 54 )
-#define RID_STR_GROUPFOOTER ( RID_STRING_START + 55 )
-#define RID_STR_UNDO_REMOVE_FUNCTION ( RID_STRING_START + 56 )
-#define STR_NUMBERED_CONDITION ( RID_STRING_START + 57 )
-
-// Property Browser Headline Id's -----------------------------------------------------------
-#define RID_STR_BRWTITLE_PROPERTIES ( RID_STRING_START + 60 )
-#define RID_STR_BRWTITLE_NO_PROPERTIES ( RID_STRING_START + 61 )
-#define RID_STR_BRWTITLE_MULTISELECT ( RID_STRING_START + 62 )
-
-#define RID_STR_FIELDSELECTION ( RID_STRING_START + 69 )
-
-#define RID_STR_UNDO_ADD_GROUP_HEADER ( RID_STRING_START + 70 )
-#define RID_STR_UNDO_REMOVE_GROUP_HEADER ( RID_STRING_START + 71 )
-#define RID_STR_UNDO_ADD_GROUP_FOOTER ( RID_STRING_START + 72 )
-#define RID_STR_UNDO_REMOVE_GROUP_FOOTER ( RID_STRING_START + 73 )
-
-#define RID_STR_PROPPAGE_DEFAULT ( RID_STRING_START + 74 )
-#define RID_STR_PROPPAGE_DATA ( RID_STRING_START + 75 )
-
-#define RID_STR_FILTER ( RID_STRING_START + 76 )
-// free
-
-#define RID_STR_FORCENEWPAGE (RID_STRING_START + 78)
-#define RID_STR_NEWROWORCOL (RID_STRING_START + 79)
-#define RID_STR_KEEPTOGETHER (RID_STRING_START + 80)
-#define RID_STR_CANGROW (RID_STRING_START + 81)
-#define RID_STR_CANSHRINK (RID_STRING_START + 82)
-#define RID_STR_REPEATSECTION (RID_STRING_START + 83)
-
-#define RID_STR_PROPTITLE_GROUP (RID_STRING_START + 84)
-#define RID_STR_PROPTITLE_FIXEDLINE (RID_STRING_START + 85)
-// free
-#define RID_STR_BACKTRANSPARENT (RID_STRING_START + 87)
-#define RID_STR_CONTROLBACKGROUNDTRANSPARENT (RID_STRING_START + 88)
-#define RID_STR_OVERLAP_OTHER_CONTROL (RID_STRING_START + 89)
-#define RID_STR_ILLEGAL_POSITION (RID_STRING_START + 90)
-#define RID_STR_PAGEHEADERFOOTER_INSERT (RID_STRING_START + 91)
-#define RID_STR_PAGEHEADERFOOTER_DELETE (RID_STRING_START + 92)
-#define RID_STR_BACKCOLOR (RID_STRING_START + 93)
-#define RID_STR_PRINTREPEATEDVALUES (RID_STRING_START + 94)
-#define RID_STR_CONDITIONALPRINTEXPRESSION (RID_STRING_START + 95)
-#define RID_STR_STARTNEWCOLUMN (RID_STRING_START + 97)
-#define RID_STR_STARTNEWPAGE (RID_STRING_START + 98)
-#define RID_STR_RESETPAGENUMBER (RID_STRING_START + 99)
-#define RID_STR_PRINTWHENGROUPCHANGE (RID_STRING_START + 102)
-#define RID_STR_REPORTHEADERFOOTER_INSERT (RID_STRING_START + 103)
-#define RID_STR_REPORTHEADERFOOTER_DELETE (RID_STRING_START + 104)
-#define RID_STR_VISIBLE (RID_STRING_START + 105)
-
-#define RID_STR_DETAIL (RID_STRING_START + 106)
-#define RID_STR_PAGE_HEADER (RID_STRING_START + 107)
-#define RID_STR_GROUPKEEPTOGETHER (RID_STRING_START + 108)
-#define RID_STR_PAGE_FOOTER (RID_STRING_START + 109)
-#define RID_STR_PAGEHEADEROPTION (RID_STRING_START + 110)
-#define RID_STR_PAGEFOOTEROPTION (RID_STRING_START + 111)
-#define RID_STR_REPORT_HEADER (RID_STRING_START + 112)
-#define RID_STR_REPORT_FOOTER (RID_STRING_START + 113)
-#define RID_STR_SCOPE_GROUP (RID_STRING_START + 114)
-#define RID_STR_UNDO_ALIGNMENT (RID_STRING_START + 117)
-#define RID_STR_HEADER (RID_STRING_START + 118)
-#define RID_STR_FOOTER (RID_STRING_START + 119)
-#define RID_STR_DATAFIELD (RID_STRING_START + 120)
-#define RID_STR_FONT (RID_STRING_START + 121)
-#define RID_STR_COULD_NOT_CREATE_REPORT (RID_STRING_START + 122)
-#define RID_STR_PRESERVEIRI (RID_STRING_START + 123)
-#define RID_STR_IMPORT_GRAPHIC (RID_STRING_START + 124)
-#define RID_STR_POSITIONX (RID_STRING_START + 125)
-#define RID_STR_POSITIONY (RID_STRING_START + 126)
-#define RID_STR_WIDTH (RID_STRING_START + 127)
-#define RID_STR_HEIGHT (RID_STRING_START + 128)
-#define RID_STR_DELETE (RID_STRING_START + 129)
-#define RID_STR_DEEPTRAVERSING (RID_STRING_START + 130)
-#define RID_STR_PREEVALUATED (RID_STRING_START + 131)
-#define RID_STR_FUNCTIONS (RID_STRING_START + 132)
-#define RID_STR_GROUPS (RID_STRING_START + 133)
-#define RID_STR_FUNCTION (RID_STRING_START + 134)
-#define RID_STR_FORMULA (RID_STRING_START + 135)
-#define RID_STR_INITIALFORMULA (RID_STRING_START + 136)
-#define RID_STR_UNDO_CHANGEFONT (RID_STRING_START + 137)
-#define RID_STR_UNDO_CHANGEPAGE (RID_STRING_START + 138)
-#define RID_STR_CAUGHT_FOREIGN_EXCEPTION (RID_STRING_START + 139)
-#define RID_STR_FORMULALIST (RID_STRING_START + 140)
-#define RID_STR_SCOPE (RID_STRING_START + 141)
-#define RID_STR_TYPE (RID_STRING_START + 142)
-#define RID_STR_MIMETYPE (RID_STRING_START + 143)
-#define RID_STR_CHARTTYPE (RID_STRING_START + 144)
-#define RID_STR_MASTERFIELDS (RID_STRING_START + 145)
-#define RID_STR_DETAILFIELDS (RID_STRING_START + 146)
-#define RID_STR_EXPLANATION (RID_STRING_START + 147)
-#define RID_STR_DETAILLABEL (RID_STRING_START + 148)
-#define RID_STR_MASTERLABEL (RID_STRING_START + 149)
-#define RID_STR_PREVIEW_COUNT (RID_STRING_START + 150)
-#define RID_ERR_NO_COMMAND (RID_STRING_START + 151)
-#define RID_ERR_NO_OBJECTS (RID_STRING_START + 152)
-#define RID_STR_AREA (RID_STRING_START + 153)
-// free
-#define RID_STR_UNDO_SHRINK (RID_STRING_START + 155)
-#define RID_STR_F_COUNTER (RID_STRING_START + 156)
-#define RID_STR_F_ACCUMULATION (RID_STRING_START + 157)
-#define RID_STR_F_MINIMUM (RID_STRING_START + 158)
-#define RID_STR_F_MAXIMUM (RID_STRING_START + 159)
-#define RID_STR_VERTICALALIGN (RID_STRING_START + 160)
-#define RID_STR_PARAADJUST (RID_STRING_START + 161)
-
-// untyped ---------------------------------------------------------------------
-#define RID_STR_BOOL (RID_UNTYPED_START + 0 )
-#define RID_STR_FORCENEWPAGE_CONST (RID_UNTYPED_START + 1 )
-#define RID_STR_KEEPTOGETHER_CONST (RID_UNTYPED_START + 2)
-#define RID_STR_GROUPKEEPTOGETHER_CONST (RID_UNTYPED_START + 3)
-#define RID_STR_REPORTPRINTOPTION_CONST (RID_UNTYPED_START + 4)
-#define RID_STR_SECTIONPAGEBREAK_CONST (RID_UNTYPED_START + 5)
-#define RID_STR_TYPE_CONST (RID_UNTYPED_START + 6)
-#define RID_STR_VERTICAL_ALIGN_CONST (RID_UNTYPED_START + 7)
-#define RID_STR_PARAADJUST_CONST (RID_UNTYPED_START + 8)
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/UndoActions.hxx b/reportdesign/inc/UndoActions.hxx
index b78d56997bf5..7df624f28418 100644
--- a/reportdesign/inc/UndoActions.hxx
+++ b/reportdesign/inc/UndoActions.hxx
@@ -151,8 +151,7 @@ namespace rptui
::dbaui::IController* m_pController;
public:
- OCommentUndoAction( SdrModel& rMod
- ,sal_uInt16 nCommentID);
+ OCommentUndoAction(SdrModel& rMod, const char* pCommentID);
virtual ~OCommentUndoAction() override;
virtual OUString GetComment() const override { return m_strComment; }
@@ -180,7 +179,7 @@ namespace rptui
,Action _eAction
,const css::uno::Reference< css::container::XIndexContainer >& rContainer
,const css::uno::Reference< css::uno::XInterface>& xElem
- ,sal_uInt16 _nCommentId);
+ ,const char* pCommentId);
virtual ~OUndoContainerAction() override;
virtual void Undo() override;
@@ -206,7 +205,7 @@ namespace rptui
,OReportHelper> _pMemberFunction
,const css::uno::Reference< css::report::XReportDefinition >& _xReport
,const css::uno::Reference< css::uno::XInterface>& xElem
- ,sal_uInt16 _nCommentId);
+ ,const char* pCommentId);
protected:
virtual void implReInsert( ) override;
@@ -227,7 +226,7 @@ namespace rptui
,OGroupHelper> _pMemberFunction
,const css::uno::Reference< css::report::XGroup >& _xGroup
,const css::uno::Reference< css::uno::XInterface>& xElem
- ,sal_uInt16 _nCommentId);
+ ,const char* pCommentId);
protected:
virtual void implReInsert( ) override;
diff --git a/reportdesign/source/inc/corestrings.hrc b/reportdesign/inc/core_resource.hxx
index 2d5505b2afea..5d6643b83276 100644
--- a/reportdesign/source/inc/corestrings.hrc
+++ b/reportdesign/inc/core_resource.hxx
@@ -16,15 +16,15 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef REPORTDESIGN_SHARED_CORESTRINGS_HRC
-#define REPORTDESIGN_SHARED_CORESTRINGS_HRC
+#ifndef INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
+#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
+
+#include "dllapi.h"
#include <rtl/ustring.hxx>
-#define STRINGCONSTANTS_INCLUDED_INDIRECT
-#include "stringconstants.hrc"
-#undef STRINGCONSTANTS_INCLUDED_INDIRECT
+OUString REPORTDESIGN_DLLPUBLIC RptResId(const char* pId);
-#endif // REPORTDESIGN_SHARED_CORESTRINGS_HRC
+#endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/pch/precompiled_rpt.hxx b/reportdesign/inc/pch/precompiled_rpt.hxx
index c596f6e5a543..4e5e9da61abf 100644
--- a/reportdesign/inc/pch/precompiled_rpt.hxx
+++ b/reportdesign/inc/pch/precompiled_rpt.hxx
@@ -266,8 +266,6 @@
#include <i18nlangtag/languagetag.hxx>
#include <o3tl/cow_wrapper.hxx>
#include <o3tl/typed_flags_set.hxx>
-#include <rsc/rsc-vcl-shared-types.hxx>
-#include <rsc/rscsfx.hxx>
#include <sfx2/dllapi.h>
#include <svl/cenumitm.hxx>
#include <svl/cintitem.hxx>
@@ -317,7 +315,6 @@
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
#include <tools/ref.hxx>
-#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx>
diff --git a/reportdesign/inc/pch/precompiled_rptui.hxx b/reportdesign/inc/pch/precompiled_rptui.hxx
index bcbaff0a411b..75292c8b43d1 100644
--- a/reportdesign/inc/pch/precompiled_rptui.hxx
+++ b/reportdesign/inc/pch/precompiled_rptui.hxx
@@ -180,7 +180,6 @@
#include <vcl/virdev.hxx>
#include <vcl/wall.hxx>
#include <vcl/window.hxx>
-#include <ModuleHelper.hxx>
#include <RptDef.hxx>
#include <RptModel.hxx>
#include <RptObject.hxx>
@@ -379,8 +378,6 @@
#include <o3tl/cow_wrapper.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <reportformula.hxx>
-#include <rsc/rsc-vcl-shared-types.hxx>
-#include <rsc/rscsfx.hxx>
#include <sfx2/dllapi.h>
#include <sfx2/linksrc.hxx>
#include <sot/exchange.hxx>
@@ -527,7 +524,6 @@
#include <tools/multisel.hxx>
#include <tools/poly.hxx>
#include <tools/ref.hxx>
-#include <tools/resid.hxx>
#include <tools/resmgr.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx>
diff --git a/reportdesign/inc/stringarray.hrc b/reportdesign/inc/stringarray.hrc
new file mode 100644
index 000000000000..6c91b21102b4
--- /dev/null
+++ b/reportdesign/inc/stringarray.hrc
@@ -0,0 +1,83 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * 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/.
+ */
+
+#ifndef INCLUDED_REPORTDESIGN_INC_FNP_HRC
+#define INCLUDED_REPORTDESIGN_INC_FNP_HRC
+
+#define NC_(Context, String) (Context "\004" u8##String)
+
+const char* RID_STR_FORCENEWPAGE_CONST[] =
+{
+ NC_("RID_STR_FORCENEWPAGE_CONST", "None"),
+ NC_("RID_STR_FORCENEWPAGE_CONST", "Before Section"),
+ NC_("RID_STR_FORCENEWPAGE_CONST", "After Section"),
+ NC_("RID_STR_FORCENEWPAGE_CONST", "Before & After Section"),
+ nullptr
+};
+
+const char* RID_STR_GROUPKEEPTOGETHER_CONST[] =
+{
+ NC_("RID_STR_GROUPKEEPTOGETHER_CONST", "Per Page"),
+ NC_("RID_STR_GROUPKEEPTOGETHER_CONST", "Per Column"),
+ nullptr
+};
+
+const char* RID_STR_REPORTPRINTOPTION_CONST[] =
+{
+ NC_("RID_STR_REPORTPRINTOPTION_CONST", "All Pages"),
+ NC_("RID_STR_REPORTPRINTOPTION_CONST", "Not With Report Header"),
+ NC_("RID_STR_REPORTPRINTOPTION_CONST", "Not With Report Footer"),
+ NC_("RID_STR_REPORTPRINTOPTION_CONST", "Not With Report Header/Footer"),
+ nullptr
+};
+
+const char* RID_STR_TYPE_CONST[] =
+{
+ NC_("RID_STR_TYPE_CONST", "Field or Formula"),
+ NC_("RID_STR_TYPE_CONST", "Function"),
+ NC_("RID_STR_TYPE_CONST", "Counter"),
+ NC_("RID_STR_TYPE_CONST", "User defined Function"),
+ nullptr
+};
+
+const char* RID_STR_BOOL[] =
+{
+ NC_("RID_STR_BOOL", "No"),
+ NC_("RID_STR_BOOL", "Yes"),
+ nullptr
+};
+
+const char* RID_STR_KEEPTOGETHER_CONST[] =
+{
+ NC_("RID_STR_KEEPTOGETHER_CONST", "No"),
+ NC_("RID_STR_KEEPTOGETHER_CONST", "Whole Group"),
+ NC_("RID_STR_KEEPTOGETHER_CONST", "With First Detail"),
+ nullptr
+};
+
+const char* RID_STR_VERTICAL_ALIGN_CONST[] =
+{
+ NC_("RID_STR_VERTICAL_ALIGN_CONST", "Top"),
+ NC_("RID_STR_VERTICAL_ALIGN_CONST", "Middle"),
+ NC_("RID_STR_VERTICAL_ALIGN_CONST", "Bottom"),
+ nullptr
+};
+
+const char* RID_STR_PARAADJUST_CONST[] =
+{
+ NC_("RID_STR_PARAADJUST_CONST", "Left"),
+ NC_("RID_STR_PARAADJUST_CONST", "Right"),
+ NC_("RID_STR_PARAADJUST_CONST", "Block"),
+ NC_("RID_STR_PARAADJUST_CONST", "Center"),
+ nullptr
+};
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/reportdesign/inc/strings.hrc b/reportdesign/inc/strings.hrc
new file mode 100644
index 000000000000..1766d3f6b209
--- /dev/null
+++ b/reportdesign/inc/strings.hrc
@@ -0,0 +1,189 @@
+/* -*- 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 INCLUDED_REPORTDESIGN_INC_STRINGS_HRC
+#define INCLUDED_REPORTDESIGN_INC_STRINGS_HRC
+
+#define NC_(Context, String) (Context "\004" u8##String)
+
+#define RID_STR_PROPPAGE_DEFAULT NC_("RID_STR_PROPPAGE_DEFAULT", "General")
+#define RID_STR_PROPPAGE_DATA NC_("RID_STR_PROPPAGE_DATA", "Data")
+#define RID_STR_FORCENEWPAGE NC_("RID_STR_FORCENEWPAGE", "Force New Page")
+#define RID_STR_NEWROWORCOL NC_("RID_STR_NEWROWORCOL", "New Row Or Column")
+#define RID_STR_KEEPTOGETHER NC_("RID_STR_KEEPTOGETHER", "Keep Together")
+#define RID_STR_CANGROW NC_("RID_STR_CANGROW", "Can Grow")
+#define RID_STR_CANSHRINK NC_("RID_STR_CANSHRINK", "Can Shrink")
+#define RID_STR_REPEATSECTION NC_("RID_STR_REPEATSECTION", "Repeat Section")
+#define RID_STR_PRINTREPEATEDVALUES NC_("RID_STR_PRINTREPEATEDVALUES", "Print repeated values")
+#define RID_STR_CONDITIONALPRINTEXPRESSION NC_("RID_STR_CONDITIONALPRINTEXPRESSION", "Conditional Print Expression")
+#define RID_STR_STARTNEWCOLUMN NC_("RID_STR_STARTNEWCOLUMN", "Start new column")
+#define RID_STR_STARTNEWPAGE NC_("RID_STR_STARTNEWPAGE", "Start new page")
+#define RID_STR_RESETPAGENUMBER NC_("RID_STR_RESETPAGENUMBER", "Reset page number")
+#define RID_STR_CHARTTYPE NC_("RID_STR_CHARTTYPE", "Chart type")
+#define RID_STR_PRINTWHENGROUPCHANGE NC_("RID_STR_PRINTWHENGROUPCHANGE", "Print repeated value on group change")
+#define RID_STR_VISIBLE NC_("RID_STR_VISIBLE", "Visible")
+#define RID_STR_GROUPKEEPTOGETHER NC_("RID_STR_GROUPKEEPTOGETHER", "Group keep together")
+#define RID_STR_PAGEHEADEROPTION NC_("RID_STR_PAGEHEADEROPTION", "Page header")
+#define RID_STR_PAGEFOOTEROPTION NC_("RID_STR_PAGEFOOTEROPTION", "Page footer")
+#define RID_STR_DEEPTRAVERSING NC_("RID_STR_DEEPTRAVERSING", "Deep traversing")
+#define RID_STR_PREEVALUATED NC_("RID_STR_PREEVALUATED", "Pre evaluation")
+#define RID_STR_POSITIONX NC_("RID_STR_POSITIONX", "Position X")
+#define RID_STR_POSITIONY NC_("RID_STR_POSITIONY", "Position Y")
+#define RID_STR_WIDTH NC_("RID_STR_WIDTH", "Width")
+#define RID_STR_HEIGHT NC_("RID_STR_HEIGHT", "Height")
+#define RID_STR_INITIALFORMULA NC_("RID_STR_INITIALFORMULA", "Initial value")
+#define RID_STR_PRESERVEIRI NC_("RID_STR_PRESERVEIRI", "Preserve as Link")
+#define RID_STR_FORMULA NC_("RID_STR_FORMULA", "Formula")
+#define RID_STR_DATAFIELD NC_("RID_STR_DATAFIELD", "Data field")
+#define RID_STR_FONT NC_("RID_STR_FONT", "Font")
+#define RID_STR_BACKCOLOR NC_("RID_STR_BACKCOLOR", "Background color")
+#define RID_STR_BACKTRANSPARENT NC_("RID_STR_BACKTRANSPARENT", "Background Transparent")
+#define RID_STR_CONTROLBACKGROUNDTRANSPARENT NC_("RID_STR_CONTROLBACKGROUNDTRANSPARENT", "Background Transparent")
+#define RID_STR_OVERLAP_OTHER_CONTROL NC_("RID_STR_OVERLAP_OTHER_CONTROL", "This operation is not allowed. The control overlaps with another one.")
+#define RID_STR_ILLEGAL_POSITION NC_("RID_STR_ILLEGAL_POSITION", "This position can not be set. It is invalid.")
+#define RID_STR_SCOPE_GROUP NC_("RID_STR_SCOPE_GROUP", "Group: %1")
+#define RID_STR_FORMULALIST NC_("RID_STR_FORMULALIST", "Function")
+#define RID_STR_SCOPE NC_("RID_STR_SCOPE", "Scope")
+#define RID_STR_TYPE NC_("RID_STR_TYPE", "Data Field Type")
+#define RID_STR_MASTERFIELDS NC_("RID_STR_MASTERFIELDS", "Link master fields")
+#define RID_STR_DETAILFIELDS NC_("RID_STR_DETAILFIELDS", "Link slave fields")
+#define RID_STR_EXPLANATION ("Charts can be used to display detailed data about the current record of the report. To do this, you can specify which columns in the chart match which columns in the report.")
+#define RID_STR_DETAILLABEL NC_("RID_STR_DETAILLABEL", "Chart")
+#define RID_STR_MASTERLABEL NC_("RID_STR_MASTERLABEL", "Report")
+#define RID_STR_PREVIEW_COUNT NC_("RID_STR_PREVIEW_COUNT", "Preview Row(s)")
+#define RID_STR_AREA NC_("RID_STR_AREA", "Area")
+#define RID_STR_MIMETYPE NC_("RID_STR_MIMETYPE", "Report Output Format")
+#define RID_STR_VERTICALALIGN NC_("RID_STR_VERTICALALIGN", "Vert. Alignment")
+#define RID_STR_PARAADJUST NC_("RID_STR_PARAADJUST", "Horz. Alignment")
+#define RID_STR_F_COUNTER NC_("RID_STR_F_COUNTER", "Counter")
+#define RID_STR_F_ACCUMULATION NC_("RID_STR_F_ACCUMULATION", "Accumulation")
+#define RID_STR_F_MINIMUM NC_("RID_STR_F_MINIMUM", "Minimum")
+#define RID_STR_F_MAXIMUM NC_("RID_STR_F_MAXIMUM", "Maximum")
+
+#define RID_STR_BRWTITLE_PROPERTIES NC_("RID_STR_BRWTITLE_PROPERTIES", "Properties: ")
+#define RID_STR_BRWTITLE_NO_PROPERTIES NC_("RID_STR_BRWTITLE_NO_PROPERTIES", "No Control marked")
+#define RID_STR_BRWTITLE_MULTISELECT NC_("RID_STR_BRWTITLE_MULTISELECT", "Multiselection")
+#define RID_STR_PROPTITLE_IMAGECONTROL NC_("RID_STR_PROPTITLE_IMAGECONTROL", "Image Control")
+#define RID_STR_PROPTITLE_FIXEDTEXT NC_("RID_STR_PROPTITLE_FIXEDTEXT", "Label field")
+#define RID_STR_PROPTITLE_FIXEDLINE NC_("RID_STR_PROPTITLE_FIXEDLINE", "Line")
+#define RID_STR_PROPTITLE_FORMATTED NC_("RID_STR_PROPTITLE_FORMATTED", "Formatted Field")
+#define RID_STR_PROPTITLE_SHAPE NC_("RID_STR_PROPTITLE_SHAPE", "Shape")
+#define RID_STR_PROPTITLE_REPORT NC_("RID_STR_PROPTITLE_REPORT", "Report")
+#define RID_STR_PROPTITLE_SECTION NC_("RID_STR_PROPTITLE_SECTION", "Section")
+#define RID_STR_PROPTITLE_FUNCTION NC_("RID_STR_PROPTITLE_FUNCTION", "Function")
+#define RID_STR_PROPTITLE_GROUP NC_("RID_STR_PROPTITLE_GROUP", "Group")
+#define RID_STR_UNDO_CHANGEPOSITION NC_("RID_STR_UNDO_CHANGEPOSITION", "Change Object")
+#define RID_STR_UNDO_MOVE_GROUP NC_("RID_STR_UNDO_MOVE_GROUP", "Move Group(s)")
+#define RID_STR_UNDO_CONDITIONAL_FORMATTING NC_("RID_STR_UNDO_CONDITIONAL_FORMATTING", "Conditional Formatting")
+#define RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER NC_("RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER", "Remove report header / report footer")
+#define RID_STR_UNDO_ADD_REPORTHEADERFOOTER NC_("RID_STR_UNDO_ADD_REPORTHEADERFOOTER", "Add report header / report footer")
+// The # character is used for replacing
+#define RID_STR_UNDO_PROPERTY NC_("RID_STR_UNDO_PROPERTY", "Change property '#'")
+#define RID_STR_UNDO_ADD_GROUP_HEADER NC_("RID_STR_UNDO_ADD_GROUP_HEADER", "Add group header ")
+#define RID_STR_UNDO_REMOVE_GROUP_HEADER NC_("RID_STR_UNDO_REMOVE_GROUP_HEADER", "Remove group header ")
+#define RID_STR_UNDO_ADD_GROUP_FOOTER NC_("RID_STR_UNDO_ADD_GROUP_FOOTER", "Add group footer ")
+#define RID_STR_UNDO_REMOVE_GROUP_FOOTER NC_("RID_STR_UNDO_REMOVE_GROUP_FOOTER", "Remove group footer ")
+#define RID_STR_UNDO_ADDFUNCTION NC_("RID_STR_UNDO_ADDFUNCTION", "Add function")
+#define STR_RPT_LABEL NC_("STR_RPT_LABEL", "~Report name")
+#define RID_STR_UNDO_REMOVE_GROUP NC_("RID_STR_UNDO_REMOVE_GROUP", "Delete Group")
+#define RID_STR_UNDO_APPEND_GROUP NC_("RID_STR_UNDO_APPEND_GROUP", "Add Group")
+#define RID_STR_UNDO_REMOVE_SELECTION NC_("RID_STR_UNDO_REMOVE_SELECTION", "Delete Selection")
+#define RID_STR_UNDO_REMOVE_FUNCTION NC_("RID_STR_UNDO_REMOVE_FUNCTION", "Delete Function")
+#define RID_STR_UNDO_CHANGE_SIZE NC_("RID_STR_UNDO_CHANGE_SIZE", "Change Size")
+#define RID_STR_UNDO_PASTE NC_("RID_STR_UNDO_PASTE", "Paste")
+#define RID_STR_UNDO_INSERT_CONTROL NC_("RID_STR_UNDO_INSERT_CONTROL", "Insert Control")
+#define RID_STR_UNDO_DELETE_CONTROL NC_("RID_STR_UNDO_DELETE_CONTROL", "Delete Control")
+// Please try to avoid spaces in the name. It is used as a programmatic one.
+#define RID_STR_GROUPHEADER NC_("RID_STR_GROUPHEADER", "GroupHeader")
+// Please try to avoid spaces in the name. It is used as a programmatic one.
+#define RID_STR_GROUPFOOTER NC_("RID_STR_GROUPFOOTER", "GroupFooter")
+#define RID_STR_FIELDSELECTION NC_("RID_STR_FIELDSELECTION", "Add field:")
+#define RID_STR_FILTER NC_("RID_STR_FILTER", "Filter")
+#define RID_STR_UNDO_ALIGNMENT NC_("RID_STR_UNDO_ALIGNMENT", "Change Alignment")
+// # will be replaced with a name.
+#define RID_STR_HEADER NC_("RID_STR_HEADER", "# Header")
+// # will be replaced with a name.";
+#define RID_STR_FOOTER NC_("RID_STR_FOOTER", "# Footer")
+#define RID_STR_IMPORT_GRAPHIC NC_("RID_STR_IMPORT_GRAPHIC", "Insert graphics")
+#define RID_STR_DELETE NC_("RID_STR_DELETE", "Delete")
+#define RID_STR_FUNCTION NC_("RID_STR_FUNCTION", "Function")
+#define RID_STR_COULD_NOT_CREATE_REPORT NC_("RID_STR_COULD_NOT_CREATE_REPORT", "An error occurred while creating the report.")
+#define RID_STR_CAUGHT_FOREIGN_EXCEPTION NC_("RID_STR_CAUGHT_FOREIGN_EXCEPTION", "An exception of type $type$ was caught.")
+#define RID_STR_UNDO_CHANGEFONT NC_("RID_STR_UNDO_CHANGEFONT", "Change font")
+#define RID_STR_UNDO_CHANGEPAGE NC_("RID_STR_UNDO_CHANGEPAGE", "Change page attributes")
+#define RID_STR_PAGEHEADERFOOTER_INSERT NC_("RID_STR_PAGEHEADERFOOTER_INSERT", "Insert Page Header/Footer")
+#define RID_STR_PAGEHEADERFOOTER_DELETE NC_("RID_STR_PAGEHEADERFOOTER_DELETE", "Delete Page Header/Footer")
+#define RID_STR_REPORTHEADERFOOTER_INSERT NC_("RID_STR_REPORTHEADERFOOTER_INSERT", "Insert Report Header/Footer")
+#define RID_STR_REPORTHEADERFOOTER_DELETE NC_("RID_STR_REPORTHEADERFOOTER_DELETE", "Delete Report Header/Footer")
+#define RID_ERR_NO_COMMAND NC_("RID_ERR_NO_COMMAND", "The report can not be executed unless it is bound to content.")
+#define RID_ERR_NO_OBJECTS NC_("RID_ERR_NO_OBJECTS", "The report can not be executed unless at least one object has been inserted.")
+#define RID_STR_UNDO_SHRINK NC_("RID_STR_UNDO_SHRINK", "Shrink Section")
+#define RID_STR_DETAIL NC_("RID_STR_DETAIL", "Detail")
+#define RID_STR_PAGE_HEADER NC_("RID_STR_PAGE_HEADER", "Page Header")
+#define RID_STR_PAGE_FOOTER NC_("RID_STR_PAGE_FOOTER", "Page Footer")
+#define RID_STR_REPORT_HEADER NC_("RID_STR_REPORT_HEADER", "Report Header")
+#define RID_STR_REPORT_FOOTER NC_("RID_STR_REPORT_FOOTER", "Report Footer")
+
+#define STR_NUMBERED_CONDITION NC_("STR_NUMBERED_CONDITION", "Condition $number$")
+
+#define STR_RPT_EXPRESSION NC_("STR_RPT_EXPRESSION", "Field/Expression")
+#define STR_RPT_PREFIXCHARS NC_("STR_RPT_PREFIXCHARS", "Prefix Characters")
+#define STR_RPT_YEAR NC_("STR_RPT_YEAR", "Year")
+#define STR_RPT_QUARTER NC_("STR_RPT_QUARTER", "Quarter")
+#define STR_RPT_MONTH NC_("STR_RPT_MONTH", "Month")
+#define STR_RPT_WEEK NC_("STR_RPT_WEEK", "Week")
+#define STR_RPT_DAY NC_("STR_RPT_DAY", "Day")
+#define STR_RPT_HOUR NC_("STR_RPT_HOUR", "Hour")
+#define STR_RPT_MINUTE NC_("STR_RPT_MINUTE", "Minute")
+#define STR_RPT_INTERVAL NC_("STR_RPT_INTERVAL", "Interval")
+#define STR_RPT_HELP_FIELD NC_("STR_RPT_HELP_FIELD", "Select a field or type an expression to sort or group on.")
+#define STR_RPT_HELP_HEADER NC_("STR_RPT_HELP_HEADER", "Display a header for this group?")
+#define STR_RPT_HELP_FOOTER NC_("STR_RPT_HELP_FOOTER", "Display a footer for this group?")
+#define STR_RPT_HELP_GROUPON NC_("STR_RPT_HELP_GROUPON", "Select the value or range of values that starts a new group.")
+#define STR_RPT_HELP_INTERVAL NC_("STR_RPT_HELP_INTERVAL", "Interval or number of characters to group on.")
+#define STR_RPT_HELP_KEEP NC_("STR_RPT_HELP_KEEP", "Keep group together on one page?")
+#define STR_RPT_HELP_SORT NC_("STR_RPT_HELP_SORT", "Select ascending or descending sort order. Ascending means from A to Z or 0 to 9")
+
+// The space after the word is no error. #PAGENUMBER# is a replacement and & must not be translated as well as "
+#define STR_RPT_PN_PAGE NC_("STR_RPT_PN_PAGE", "\"Page \" & #PAGENUMBER#")
+// The space before and after the word is no error. #PAGECOUNT# is a replacement and & must not be translated as well as "
+#define STR_RPT_PN_PAGE_OF NC_("STR_RPT_PN_PAGE_OF", " & \" of \" & #PAGECOUNT#")
+
+#define RID_STR_FUNCTIONS NC_("RID_STR_FUNCTIONS", "Functions")
+#define RID_STR_GROUPS NC_("RID_STR_GROUPS", "Groups")
+
+#define RID_STR_DETAIL NC_("RID_STR_DETAIL", "Detail")
+#define RID_STR_PAGE_HEADER NC_("RID_STR_PAGE_HEADER", "Page Header")
+#define RID_STR_PAGE_FOOTER NC_("RID_STR_PAGE_FOOTER", "Page Footer")
+#define RID_STR_GROUP_HEADER NC_("RID_STR_GROUP_HEADER", "Group Header")
+#define RID_STR_GROUP_FOOTER NC_("RID_STR_GROUP_FOOTER", "Group Footer")
+#define RID_STR_REPORT_HEADER NC_("RID_STR_REPORT_HEADER", "Report Header")
+#define RID_STR_REPORT_FOOTER NC_("RID_STR_REPORT_FOOTER", "Report Footer")
+#define RID_STR_ERROR_WRONG_ARGUMENT NC_("RID_STR_ERROR_WRONG_ARGUMENT", "You tried to set an illegal argument. Please have a look at '#1' for valid arguments.")
+#define RID_STR_ARGUMENT_IS_NULL NC_("RID_STR_ARGUMENT_IS_NULL", "The element is invalid.")
+#define RID_STR_FIXEDTEXT NC_("RID_STR_FIXEDTEXT", "Label field")
+#define RID_STR_FORMATTEDFIELD NC_("RID_STR_FORMATTEDFIELD", "Formatted field")
+#define RID_STR_IMAGECONTROL NC_("RID_STR_IMAGECONTROL", "Image control")
+#define RID_STR_REPORT NC_("RID_STR_REPORT", "Report")
+#define RID_STR_SHAPE NC_("RID_STR_SHAPE", "Shape")
+#define RID_STR_FIXEDLINE NC_("RID_STR_FIXEDLINE", "Fixed line")
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/strings.hxx b/reportdesign/inc/strings.hxx
index d5fd6ad8385b..06d88c360909 100644
--- a/reportdesign/inc/strings.hxx
+++ b/reportdesign/inc/strings.hxx
@@ -7,8 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_REPORTDESIGN_INC_STRINGS_HRC
-#define INCLUDED_REPORTDESIGN_INC_STRINGS_HRC
+#ifndef INCLUDED_REPORTDESIGN_INC_STRINGS_HXX
+#define INCLUDED_REPORTDESIGN_INC_STRINGS_HXX
// Dialog Controls
@@ -17,6 +17,271 @@
#define RID_STR_CLASS_IMAGECONTROL "Graphic"
#define RID_STR_CLASS_FORMATTEDFIELD "FormattedField"
+//= service names
+
+#define SERVICE_FIXEDTEXT "com.sun.star.report.FixedText"
+#define SERVICE_FORMATTEDFIELD "com.sun.star.report.FormattedField"
+#define SERVICE_IMAGECONTROL "com.sun.star.report.ImageControl"
+#define SERVICE_FORMATCONDITION "com.sun.star.report.FormatCondition"
+#define SERVICE_FUNCTION "com.sun.star.report.Function"
+#define SERVICE_REPORTDEFINITION "com.sun.star.report.ReportDefinition"
+#define SERVICE_SHAPE "com.sun.star.report.Shape"
+#define SERVICE_FIXEDLINE "com.sun.star.report.FixedLine"
+#define SERVICE_SECTION "com.sun.star.report.Section"
+#define SERVICE_GROUP "com.sun.star.report.Group"
+
+//= property names
+
+#define PROPERTY_VISIBLE "Visible"
+#define PROPERTY_NAME "Name"
+#define PROPERTY_HEIGHT "Height"
+#define PROPERTY_BACKCOLOR "BackColor"
+#define PROPERTY_BACKTRANSPARENT "BackTransparent"
+#define PROPERTY_CONTROLBACKGROUND "ControlBackground"
+#define PROPERTY_CONTROLBACKGROUNDTRANSPARENT "ControlBackgroundTransparent"
+#define PROPERTY_FORCENEWPAGE "ForceNewPage"
+#define PROPERTY_NEWROWORCOL "NewRowOrCol"
+#define PROPERTY_KEEPTOGETHER "KeepTogether"
+#define PROPERTY_CANGROW "CanGrow"
+#define PROPERTY_CANSHRINK "CanShrink"
+#define PROPERTY_REPEATSECTION "RepeatSection"
+#define PROPERTY_GROUP "Group"
+#define PROPERTY_REPORTDEFINITION "ReportDefinition"
+
+#define PROPERTY_GROUPINTERVAL "GroupInterval"
+#define PROPERTY_EXPRESSION "Expression"
+#define PROPERTY_GROUPON "GroupOn"
+#define PROPERTY_SORTASCENDING "SortAscending"
+
+#define PROPERTY_MASTERFIELDS "MasterFields"
+#define PROPERTY_DETAILFIELDS "DetailFields"
+#define PROPERTY_CAPTION "Caption"
+#define PROPERTY_COMMAND "Command"
+#define PROPERTY_BACKGRAPHICLOCATION "BackGraphicLocation"
+#define PROPERTY_ORIENTATION "Orientation"
+#define PROPERTY_PAPERSIZE "Size"
+#define PROPERTY_GROUPKEEPTOGETHER "GroupKeepTogether"
+#define PROPERTY_PAGEHEADEROPTION "PageHeaderOption"
+#define PROPERTY_PAGEFOOTEROPTION "PageFooterOption"
+#define PROPERTY_COMMANDTYPE "CommandType"
+#define PROPERTY_REPORTHEADERON "ReportHeaderOn"
+#define PROPERTY_REPORTFOOTERON "ReportFooterOn"
+#define PROPERTY_PAGEHEADERON "PageHeaderOn"
+#define PROPERTY_PAGEFOOTERON "PageFooterOn"
+#define PROPERTY_HEADERON "HeaderOn"
+#define PROPERTY_FOOTERON "FooterOn"
+#define PROPERTY_WIDTH "Width"
+#define PROPERTY_POSITIONX "PositionX"
+#define PROPERTY_POSITIONY "PositionY"
+#define PROPERTY_DATAFIELD "DataField"
+#define PROPERTY_PARAADJUST "ParaAdjust"
+#define PROPERTY_FONTDESCRIPTOR "FontDescriptor"
+#define PROPERTY_FONTDESCRIPTORASIAN "FontDescriptorAsian"
+#define PROPERTY_FONTDESCRIPTORCOMPLEX "FontDescriptorComplex"
+#define PROPERTY_CONTROLTEXTEMPHASISMARK "ControlTextEmphasis"
+#define PROPERTY_CHARRELIEF "CharRelief"
+#define PROPERTY_CHARCOLOR "CharColor"
+#define PROPERTY_VERTICALALIGN "VerticalAlign"
+#define PROPERTY_IMAGEPOSITION "ImagePosition"
+#define PROPERTY_IMAGEURL "ImageURL"
+#define PROPERTY_CHARUNDERLINECOLOR "CharUnderlineColor"
+#define PROPERTY_LABEL "Label"
+#define PROPERTY_EFFECTIVEDEFAULT "EffectiveDefault"
+#define PROPERTY_EFFECTIVEMAX "EffectiveMax"
+#define PROPERTY_EFFECTIVEMIN "EffectiveMin"
+#define PROPERTY_FORMATKEY "FormatKey"
+#define PROPERTY_MAXTEXTLEN "MaxTextLen"
+#define PROPERTY_LISTSOURCE "ListSource"
+#define PROPERTY_FORMATSSUPPLIER "FormatsSupplier"
+#define PROPERTY_CONTROLBORDER "ControlBorder"
+#define PROPERTY_CONTROLBORDERCOLOR "ControlBorderColor"
+#define PROPERTY_BORDER "Border"
+#define PROPERTY_BORDERCOLOR "BorderColor"
+#define PROPERTY_DEFAULTCONTROL "DefaultControl"
+
+#define PROPERTY_LEFTMARGIN "LeftMargin"
+#define PROPERTY_RIGHTMARGIN "RightMargin"
+#define PROPERTY_TOPMARGIN "TopMargin"
+#define PROPERTY_BOTTOMMARGIN "BottomMargin"
+
+#define PROPERTY_PRINTREPEATEDVALUES "PrintRepeatedValues"
+#define PROPERTY_CONDITIONALPRINTEXPRESSION "ConditionalPrintExpression"
+#define PROPERTY_STARTNEWCOLUMN "StartNewColumn"
+#define PROPERTY_RESETPAGENUMBER "ResetPageNumber"
+#define PROPERTY_PRINTWHENGROUPCHANGE "PrintWhenGroupChange"
+#define PROPERTY_STATE "State"
+#define PROPERTY_TIME_STATE "TimeState"
+#define PROPERTY_DATE_STATE "DateState"
+#define PROPERTY_TRISTATE "TriState"
+#define PROPERTY_LISTSOURCETYPE "ListSourceType"
+#define PROPERTY_FONTCHARWIDTH "FontCharWidth"
+#define PROPERTY_FONTCHARSET "CharFontCharSet"
+#define PROPERTY_FONTFAMILY "CharFontFamily"
+#define PROPERTY_CHARFONTHEIGHT "CharHeight"
+#define PROPERTY_FONTHEIGHT "FontHeight"
+#define PROPERTY_FONTKERNING "FontKerning"
+#define PROPERTY_FONT "FontDescriptor"
+#define PROPERTY_FONTNAME "FontName"
+#define PROPERTY_FONTORIENTATION "CharRotation"
+#define PROPERTY_FONTPITCH "CharFontPitch"
+#define PROPERTY_FONTSLANT "FontSlant"
+#define PROPERTY_CHARSTRIKEOUT "CharStrikeout"
+#define PROPERTY_FONTSTRIKEOUT "FontStrikeout"
+#define PROPERTY_FONTSTYLENAME "CharFontStyleName"
+#define PROPERTY_FONTUNDERLINE "CharUnderline"
+#define PROPERTY_FONTWEIGHT "CharWeight"
+#define PROPERTY_FONTWIDTH "FontWidth"
+#define PROPERTY_FONTWORDLINEMODE "FontWordLineMode"
+#define PROPERTY_FONTTYPE "FontType"
+
+#define PROPERTY_ENABLED "Enabled"
+
+#define PROPERTY_CHAREMPHASIS "CharEmphasis"
+#define PROPERTY_CHARFONTNAME "CharFontName"
+#define PROPERTY_CHARFONTSTYLENAME "CharFontStyleName"
+#define PROPERTY_CHARFONTFAMILY "CharFontFamily"
+#define PROPERTY_CHARFONTCHARSET "CharFontCharSet"
+#define PROPERTY_CHARFONTPITCH "CharFontPitch"
+#define PROPERTY_CHARHEIGHT "CharHeight"
+#define PROPERTY_CHARUNDERLINE "CharUnderline"
+#define PROPERTY_CHARWEIGHT "CharWeight"
+#define PROPERTY_CHARPOSTURE "CharPosture"
+#define PROPERTY_CHARWORDMODE "CharWordMode"
+#define PROPERTY_CHARROTATION "CharRotation"
+#define PROPERTY_CHARSCALEWIDTH "CharScaleWidth"
+
+// Asian
+#define PROPERTY_CHAREMPHASISASIAN "CharEmphasisAsian"
+#define PROPERTY_CHARFONTNAMEASIAN "CharFontNameAsian"
+#define PROPERTY_CHARFONTSTYLENAMEASIAN "CharFontStyleNameAsian"
+#define PROPERTY_CHARFONTFAMILYASIAN "CharFontFamilyAsian"
+#define PROPERTY_CHARFONTCHARSETASIAN "CharFontCharSetAsian"
+#define PROPERTY_CHARFONTPITCHASIAN "CharFontPitchAsian"
+#define PROPERTY_CHARHEIGHTASIAN "CharHeightAsian"
+#define PROPERTY_CHARUNDERLINEASIAN "CharUnderlineAsian"
+#define PROPERTY_CHARWEIGHTASIAN "CharWeightAsian"
+#define PROPERTY_CHARPOSTUREASIAN "CharPostureAsian"
+#define PROPERTY_CHARWORDMODEASIAN "CharWordModeAsian"
+#define PROPERTY_CHARROTATIONASIAN "CharRotationAsian"
+#define PROPERTY_CHARSCALEWIDTHASIAN "CharScaleWidthAsian"
+#define PROPERTY_CHARLOCALEASIAN "CharLocaleAsian"
+
+// Complex
+#define PROPERTY_CHAREMPHASISCOMPLEX "CharEmphasisComplex"
+#define PROPERTY_CHARFONTNAMECOMPLEX "CharFontNameComplex"
+#define PROPERTY_CHARFONTSTYLENAMECOMPLEX "CharFontStyleNameComplex"
+#define PROPERTY_CHARFONTFAMILYCOMPLEX "CharFontFamilyComplex"
+#define PROPERTY_CHARFONTCHARSETCOMPLEX "CharFontCharSetComplex"
+#define PROPERTY_CHARFONTPITCHCOMPLEX "CharFontPitchComplex"
+#define PROPERTY_CHARHEIGHTCOMPLEX "CharHeightComplex"
+#define PROPERTY_CHARUNDERLINECOMPLEX "CharUnderlineComplex"
+#define PROPERTY_CHARWEIGHTCOMPLEX "CharWeightComplex"
+#define PROPERTY_CHARPOSTURECOMPLEX "CharPostureComplex"
+#define PROPERTY_CHARWORDMODECOMPLEX "CharWordModeComplex"
+#define PROPERTY_CHARROTATIONCOMPLEX "CharRotationComplex"
+#define PROPERTY_CHARSCALEWIDTHCOMPLEX "CharScaleWidthComplex"
+#define PROPERTY_CHARLOCALECOMPLEX "CharLocaleComplex"
+
+#define PROPERTY_STATUSINDICATOR "StatusIndicator"
+#define PROPERTY_SECTION "Section"
+#define PROPERTY_FILTER "Filter"
+#define PROPERTY_ESCAPEPROCESSING "EscapeProcessing"
+
+#define PROPERTY_MULTILINE "MultiLine"
+#define PROPERTY_ACTIVECONNECTION "ActiveConnection"
+#define PROPERTY_DATASOURCENAME "DataSourceName"
+#define PROPERTY_FORMULA "Formula"
+#define PROPERTY_INITIALFORMULA "InitialFormula"
+#define PROPERTY_PREEVALUATED "PreEvaluated"
+#define PROPERTY_DEEPTRAVERSING "DeepTraversing"
+#define PROPERTY_MIMETYPE "MimeType"
+#define PROPERTY_BACKGROUNDCOLOR "BackgroundColor"
+#define PROPERTY_TEXT "Text"
+#define PROPERTY_TEXTCOLOR "TextColor"
+#define PROPERTY_TEXTLINECOLOR "TextLineColor"
+#define PROPERTY_FONTRELIEF "FontRelief"
+#define PROPERTY_FONTEMPHASISMARK "FontEmphasisMark"
+#define PROPERTY_ZORDER "ZOrder"
+#define PROPERTY_OPAQUE "Opaque"
+#define PROPERTY_TRANSFORMATION "Transformation"
+#define PROPERTY_CUSTOMSHAPEENGINE "CustomShapeEngine"
+#define PROPERTY_CUSTOMSHAPEDATA "CustomShapeData"
+#define PROPERTY_CUSTOMSHAPEGEOMETRY "CustomShapeGeometry"
+
+#define PROPERTY_NUMBERINGTYPE "NumberingType"
+#define PROPERTY_PAGESTYLELAYOUT "PageStyleLayout"
+#define PROPERTY_ISLANDSCAPE "IsLandscape"
+#define PROPERTY_ALIGN "Align"
+#define PROPERTY_TYPE "Type"
+
+#define PROPERTY_PRESERVEIRI "PreserveIRI"
+#define PROPERTY_SCALEMODE "ScaleMode"
+
+#define PROPERTY_LINESTYLE "LineStyle"
+#define PROPERTY_LINEDASH "LineDash"
+#define PROPERTY_LINECOLOR "LineColor"
+#define PROPERTY_LINETRANSPARENCE "LineTransparence"
+#define PROPERTY_LINEWIDTH "LineWidth"
+
+#define PROPERTY_CHARFLASH "CharFlash"
+#define PROPERTY_CHARESCAPEMENTHEIGHT "CharEscapementHeight"
+#define PROPERTY_CHARLOCALE "CharLocale"
+#define PROPERTY_CHARESCAPEMENT "CharEscapement"
+#define PROPERTY_CHARCASEMAP "CharCaseMap"
+#define PROPERTY_CHARCOMBINEISON "CharCombineIsOn"
+#define PROPERTY_CHARCOMBINEPREFIX "CharCombinePrefix"
+#define PROPERTY_CHARCOMBINESUFFIX "CharCombineSuffix"
+#define PROPERTY_CHARHIDDEN "CharHidden"
+#define PROPERTY_CHARSHADOWED "CharShadowed"
+#define PROPERTY_CHARCONTOURED "CharContoured"
+#define PROPERTY_CHARAUTOKERNING "CharAutoKerning"
+#define PROPERTY_CHARKERNING "CharKerning"
+#define PROPERTY_HYPERLINKURL "HyperLinkURL"
+#define PROPERTY_HYPERLINKTARGET "HyperLinkTarget"
+#define PROPERTY_HYPERLINKNAME "HyperLinkName"
+#define PROPERTY_VISITEDCHARSTYLENAME "VisitedCharStyleName"
+#define PROPERTY_UNVISITEDCHARSTYLENAME "UnvisitedCharStyleName"
+#define PROPERTY_ORDER "Order"
+#define PROPERTY_APPLYFILTER "ApplyFilter"
+#define PROPERTY_MAXROWS "MaxRows"
+
+#define PROPERTY_REPORTNAME "ReportName"
+#define CFG_REPORTDESIGNER "SunReportBuilder"
+#define DBREPORTHEADER "ReportHeader"
+#define DBREPORTFOOTER "ReportFooter"
+#define DBPAGEHEADER "PageHeader"
+#define DBPAGEFOOTER "PageFooter"
+#define DBGROUPHEADER "GroupHeader"
+#define DBGROUPFOOTER "GroupFooter"
+#define DBDETAIL "Detail"
+#define REPORTCONTROLFORMAT "ReportControlFormat"
+#define CURRENT_WINDOW "CurrentWindow"
+#define PROPERTY_FONTCOLOR "FontColor"
+#define PROPERTY_EMPTY_IS_NULL "ConvertEmptyToNull"
+#define PROPERTY_FILTERPROPOSAL "UseFilterValueProposal"
+#define PROPERTY_POSITION "Position"
+#define PROPERTY_FORMATKEYDATE "FormatKeyDate"
+#define PROPERTY_FORMATKEYTIME "FormatKeyTime"
+#define DBOVERLAPPEDCONTROL "OverlappedControl"
+#define PROPERTY_FORMULALIST "FormulaList"
+#define PROPERTY_SCOPE "Scope"
+#define PROPERTY_CHARTTYPE "ChartType"
+#define PROPERTY_PREVIEW_COUNT "RowLimit"
+#define PROPERTY_TITLE "Title"
+#define PROPERTY_AREA "Area"
+#define PROPERTY_FILLCOLOR "FillColor"
+#define DBTEXTBOXBOUNDCONTENT "TextBoxBoundContent"
+
+#define SERVICE_SETTINGSIMPORTER "com.sun.star.comp.Report.XMLOasisSettingsImporter"
+#define SERVICE_STYLESIMPORTER "com.sun.star.comp.Report.XMLOasisStylesImporter"
+#define SERVICE_CONTENTIMPORTER "com.sun.star.comp.Report.XMLOasisContentImporter"
+#define SERVICE_IMPORTFILTER "com.sun.star.document.ImportFilter"
+#define SERVICE_METAIMPORTER "com.sun.star.comp.Report.XMLOasisMetaImporter"
+#define PROPERTY_BORDERLEFT "BorderLeft"
+#define PROPERTY_BORDERRIGHT "BorderRight"
+#define PROPERTY_BORDERTOP "BorderTop"
+#define PROPERTY_BORDERBOTTOM "BorderBottom"
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx
index 5438cba7aedb..be9c96ccdd64 100644
--- a/reportdesign/source/core/api/FixedLine.cxx
+++ b/reportdesign/source/core/api/FixedLine.cxx
@@ -18,8 +18,8 @@
*/
#include "FixedLine.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "corestrings.hrc"
-#include "core_resource.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "core_resource.hxx"
#include <comphelper/property.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -136,7 +136,7 @@ OFixedLine::OFixedLine(uno::Reference< uno::XComponentContext > const & _xContex
,m_LineTransparence(0)
,m_LineWidth(0)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_FIXEDLINE);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_FIXEDLINE);
m_aProps.aComponent.m_nWidth = MIN_WIDTH;
}
@@ -153,7 +153,7 @@ OFixedLine::OFixedLine(uno::Reference< uno::XComponentContext > const & _xContex
,m_LineTransparence(0)
,m_LineWidth(0)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_FIXEDLINE);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_FIXEDLINE);
m_aProps.aComponent.m_xFactory = _xFactory;
osl_atomic_increment( &m_refCount );
try
diff --git a/reportdesign/source/core/api/FixedText.cxx b/reportdesign/source/core/api/FixedText.cxx
index db3dd5ae2427..0ebad3934f31 100644
--- a/reportdesign/source/core/api/FixedText.cxx
+++ b/reportdesign/source/core/api/FixedText.cxx
@@ -18,9 +18,9 @@
*/
#include "FixedText.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <com/sun/star/beans/XPropertyState.hpp>
-#include "core_resource.hrc"
+#include "strings.hrc"
#include "core_resource.hxx"
#include "Tools.hxx"
#include <tools/color.hxx>
@@ -47,7 +47,7 @@ OFixedText::OFixedText(uno::Reference< uno::XComponentContext > const & _xContex
,FixedTextPropertySet(_xContext,IMPLEMENTS_PROPERTY_SET,lcl_getFixedTextOptionals())
,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_FIXEDTEXT);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_FIXEDTEXT);
m_aProps.aComponent.m_nBorder = 0; // no border
}
@@ -58,7 +58,7 @@ OFixedText::OFixedText(uno::Reference< uno::XComponentContext > const & _xContex
,FixedTextPropertySet(_xContext,IMPLEMENTS_PROPERTY_SET,lcl_getFixedTextOptionals())
,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_FIXEDTEXT);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_FIXEDTEXT);
m_aProps.aComponent.m_nBorder = 0; // no border
m_aProps.aComponent.m_xFactory = _xFactory;
osl_atomic_increment( &m_refCount );
diff --git a/reportdesign/source/core/api/FormatCondition.cxx b/reportdesign/source/core/api/FormatCondition.cxx
index 81687c85ca4a..d5ff822d2678 100644
--- a/reportdesign/source/core/api/FormatCondition.cxx
+++ b/reportdesign/source/core/api/FormatCondition.cxx
@@ -18,7 +18,7 @@
*/
#include "FormatCondition.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <tools/color.hxx>
#include <connectivity/dbtools.hxx>
#include <comphelper/property.hxx>
diff --git a/reportdesign/source/core/api/FormattedField.cxx b/reportdesign/source/core/api/FormattedField.cxx
index 4aa4fbd7edb5..b00c5e1d6669 100644
--- a/reportdesign/source/core/api/FormattedField.cxx
+++ b/reportdesign/source/core/api/FormattedField.cxx
@@ -19,8 +19,8 @@
#include "FormattedField.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
-#include "corestrings.hrc"
-#include "core_resource.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "core_resource.hxx"
#include <tools/color.hxx>
#include <connectivity/dbtools.hxx>
@@ -54,7 +54,7 @@ OFormattedField::OFormattedField(uno::Reference< uno::XComponentContext > const
,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
,m_nFormatKey(0)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_FORMATTEDFIELD);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_FORMATTEDFIELD);
}
OFormattedField::OFormattedField(uno::Reference< uno::XComponentContext > const & _xContext
@@ -65,7 +65,7 @@ OFormattedField::OFormattedField(uno::Reference< uno::XComponentContext > const
,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
,m_nFormatKey(0)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_FORMATTEDFIELD);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_FORMATTEDFIELD);
m_aProps.aComponent.m_xFactory = _xFactory;
osl_atomic_increment( &m_refCount );
{
diff --git a/reportdesign/source/core/api/Function.cxx b/reportdesign/source/core/api/Function.cxx
index 8696f41e3bf4..e365dc928e70 100644
--- a/reportdesign/source/core/api/Function.cxx
+++ b/reportdesign/source/core/api/Function.cxx
@@ -18,7 +18,7 @@
*/
#include "Function.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <connectivity/dbtools.hxx>
#include <comphelper/property.hxx>
#include <cppuhelper/supportsservice.hxx>
diff --git a/reportdesign/source/core/api/Functions.cxx b/reportdesign/source/core/api/Functions.cxx
index 9c9d84bd124c..d70ca0fcf427 100644
--- a/reportdesign/source/core/api/Functions.cxx
+++ b/reportdesign/source/core/api/Functions.cxx
@@ -19,7 +19,7 @@
#include "Functions.hxx"
#include "Function.hxx"
#include "core_resource.hxx"
-#include "core_resource.hrc"
+#include "strings.hrc"
#include <com/sun/star/lang/NoSupportException.hpp>
#include <comphelper/property.hxx>
#include <algorithm>
@@ -77,7 +77,7 @@ void SAL_CALL OFunctions::insertByIndex( ::sal_Int32 Index, const uno::Any& aEle
checkIndex(Index);
uno::Reference< report::XFunction > xFunction(aElement,uno::UNO_QUERY);
if ( !xFunction.is() )
- throw lang::IllegalArgumentException(RPT_RESSTRING(RID_STR_ARGUMENT_IS_NULL),*this,2);
+ throw lang::IllegalArgumentException(RptResId(RID_STR_ARGUMENT_IS_NULL),*this,2);
if ( bAdd )
m_aFunctions.push_back(xFunction);
@@ -120,7 +120,7 @@ void SAL_CALL OFunctions::replaceByIndex( ::sal_Int32 Index, const uno::Any& Ele
checkIndex(Index);
uno::Reference< report::XFunction > xFunction(Element,uno::UNO_QUERY);
if ( !xFunction.is() )
- throw lang::IllegalArgumentException(RPT_RESSTRING(RID_STR_ARGUMENT_IS_NULL),*this,2);
+ throw lang::IllegalArgumentException(RptResId(RID_STR_ARGUMENT_IS_NULL),*this,2);
TFunctions::iterator aPos = m_aFunctions.begin();
::std::advance(aPos,Index);
aOldElement <<= *aPos;
diff --git a/reportdesign/source/core/api/Group.cxx b/reportdesign/source/core/api/Group.cxx
index f32a33ed5437..6bcba7b6dbc6 100644
--- a/reportdesign/source/core/api/Group.cxx
+++ b/reportdesign/source/core/api/Group.cxx
@@ -22,8 +22,8 @@
#include <com/sun/star/lang/NoSupportException.hpp>
#include <com/sun/star/report/GroupOn.hpp>
#include <com/sun/star/report/KeepTogether.hpp>
-#include "corestrings.hrc"
-#include "core_resource.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "core_resource.hxx"
#include "Tools.hxx"
#include <comphelper/property.hxx>
@@ -118,7 +118,7 @@ void SAL_CALL OGroup::setHeaderOn( sal_Bool _headeron )
{
if ( bool(_headeron) != m_xHeader.is() )
{
- OUString sName(RPT_RESSTRING(RID_STR_GROUP_HEADER));
+ OUString sName(RptResId(RID_STR_GROUP_HEADER));
setSection(PROPERTY_HEADERON,_headeron,sName,m_xHeader);
}
}
@@ -133,7 +133,7 @@ void SAL_CALL OGroup::setFooterOn( sal_Bool _footeron )
{
if ( bool(_footeron) != m_xFooter.is() )
{
- OUString sName(RPT_RESSTRING(RID_STR_GROUP_FOOTER));
+ OUString sName(RptResId(RID_STR_GROUP_FOOTER));
setSection(PROPERTY_FOOTERON,_footeron,sName,m_xFooter);
}
}
diff --git a/reportdesign/source/core/api/Groups.cxx b/reportdesign/source/core/api/Groups.cxx
index d94a6e016234..3a4ae59b9872 100644
--- a/reportdesign/source/core/api/Groups.cxx
+++ b/reportdesign/source/core/api/Groups.cxx
@@ -21,7 +21,7 @@
#include <com/sun/star/lang/NoSupportException.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include "core_resource.hxx"
-#include "core_resource.hrc"
+#include "strings.hrc"
#include <algorithm>
namespace reportdesign
@@ -81,7 +81,7 @@ void SAL_CALL OGroups::insertByIndex( ::sal_Int32 Index, const uno::Any& aElemen
checkIndex(Index);
uno::Reference< report::XGroup > xGroup(aElement,uno::UNO_QUERY);
if ( !xGroup.is() )
- throw lang::IllegalArgumentException(RPT_RESSTRING(RID_STR_ARGUMENT_IS_NULL),*this,2);
+ throw lang::IllegalArgumentException(RptResId(RID_STR_ARGUMENT_IS_NULL),*this,2);
if ( bAdd )
m_aGroups.push_back(xGroup);
@@ -122,7 +122,7 @@ void SAL_CALL OGroups::replaceByIndex( ::sal_Int32 Index, const uno::Any& Elemen
checkIndex(Index);
uno::Reference< report::XGroup > xGroup(Element,uno::UNO_QUERY);
if ( !xGroup.is() )
- throw lang::IllegalArgumentException(RPT_RESSTRING(RID_STR_ARGUMENT_IS_NULL),*this,2);
+ throw lang::IllegalArgumentException(RptResId(RID_STR_ARGUMENT_IS_NULL),*this,2);
TGroups::iterator aPos = m_aGroups.begin();
::std::advance(aPos,Index);
aOldElement <<= *aPos;
diff --git a/reportdesign/source/core/api/ImageControl.cxx b/reportdesign/source/core/api/ImageControl.cxx
index a42673323e4b..f0d48b45976a 100644
--- a/reportdesign/source/core/api/ImageControl.cxx
+++ b/reportdesign/source/core/api/ImageControl.cxx
@@ -19,8 +19,8 @@
#include "ImageControl.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
-#include "corestrings.hrc"
-#include "core_resource.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "core_resource.hxx"
#include "Tools.hxx"
#include <tools/color.hxx>
@@ -119,7 +119,7 @@ OImageControl::OImageControl(uno::Reference< uno::XComponentContext > const & _x
,m_nScaleMode(awt::ImageScaleMode::NONE)
,m_bPreserveIRI(true)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_IMAGECONTROL);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_IMAGECONTROL);
}
OImageControl::OImageControl(uno::Reference< uno::XComponentContext > const & _xContext
@@ -131,7 +131,7 @@ OImageControl::OImageControl(uno::Reference< uno::XComponentContext > const & _x
,m_nScaleMode(awt::ImageScaleMode::NONE)
,m_bPreserveIRI(true)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_IMAGECONTROL);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_IMAGECONTROL);
m_aProps.aComponent.m_xFactory = _xFactory;
osl_atomic_increment( &m_refCount );
{
diff --git a/reportdesign/source/core/api/ReportComponent.cxx b/reportdesign/source/core/api/ReportComponent.cxx
index 3c6c4baac61d..5504abb4a4de 100644
--- a/reportdesign/source/core/api/ReportComponent.cxx
+++ b/reportdesign/source/core/api/ReportComponent.cxx
@@ -18,7 +18,7 @@
*/
#include "ReportComponent.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <vcl/svapp.hxx>
#include <vcl/outdev.hxx>
#include <vcl/settings.hxx>
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index 1124d6881d83..04f5a8b7679e 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -37,9 +37,9 @@
#include "Shape.hxx"
#include "Tools.hxx"
#include "UndoEnv.hxx"
-#include "core_resource.hrc"
+#include "strings.hrc"
#include "core_resource.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XMultiPropertyStates.hpp>
@@ -537,13 +537,13 @@ OReportDefinition::OReportDefinition(uno::Reference< uno::XComponentContext > co
,m_aProps(new OReportComponentProperties(_xContext))
,m_pImpl(new OReportDefinitionImpl(m_aMutex))
{
- m_aProps->m_sName = RPT_RESSTRING(RID_STR_REPORT);
+ m_aProps->m_sName = RptResId(RID_STR_REPORT);
osl_atomic_increment(&m_refCount);
{
init();
m_pImpl->m_xGroups = new OGroups(this,m_aProps->m_xContext);
m_pImpl->m_xDetail = OSection::createOSection(this,m_aProps->m_xContext);
- m_pImpl->m_xDetail->setName(RPT_RESSTRING(RID_STR_DETAIL));
+ m_pImpl->m_xDetail->setName(RptResId(RID_STR_DETAIL));
}
osl_atomic_decrement( &m_refCount );
}
@@ -556,7 +556,7 @@ OReportDefinition::OReportDefinition(uno::Reference< uno::XComponentContext > co
,m_aProps(new OReportComponentProperties(_xContext))
,m_pImpl(new OReportDefinitionImpl(m_aMutex))
{
- m_aProps->m_sName = RPT_RESSTRING(RID_STR_REPORT);
+ m_aProps->m_sName = RptResId(RID_STR_REPORT);
m_aProps->m_xFactory = _xFactory;
osl_atomic_increment(&m_refCount);
{
@@ -564,7 +564,7 @@ OReportDefinition::OReportDefinition(uno::Reference< uno::XComponentContext > co
init();
m_pImpl->m_xGroups = new OGroups(this,m_aProps->m_xContext);
m_pImpl->m_xDetail = OSection::createOSection(this,m_aProps->m_xContext);
- m_pImpl->m_xDetail->setName(RPT_RESSTRING(RID_STR_DETAIL));
+ m_pImpl->m_xDetail->setName(RptResId(RID_STR_DETAIL));
}
osl_atomic_decrement( &m_refCount );
}
@@ -855,7 +855,7 @@ void SAL_CALL OReportDefinition::setReportHeaderOn( sal_Bool _reportheaderon )
{
if ( bool(_reportheaderon) != m_pImpl->m_xReportHeader.is() )
{
- setSection(PROPERTY_REPORTHEADERON,_reportheaderon,RPT_RESSTRING(RID_STR_REPORT_HEADER),m_pImpl->m_xReportHeader);
+ setSection(PROPERTY_REPORTHEADERON,_reportheaderon,RptResId(RID_STR_REPORT_HEADER),m_pImpl->m_xReportHeader);
}
}
@@ -869,7 +869,7 @@ void SAL_CALL OReportDefinition::setReportFooterOn( sal_Bool _reportfooteron )
{
if ( bool(_reportfooteron) != m_pImpl->m_xReportFooter.is() )
{
- setSection(PROPERTY_REPORTFOOTERON,_reportfooteron,RPT_RESSTRING(RID_STR_REPORT_FOOTER),m_pImpl->m_xReportFooter);
+ setSection(PROPERTY_REPORTFOOTERON,_reportfooteron,RptResId(RID_STR_REPORT_FOOTER),m_pImpl->m_xReportFooter);
}
}
@@ -883,7 +883,7 @@ void SAL_CALL OReportDefinition::setPageHeaderOn( sal_Bool _pageheaderon )
{
if ( bool(_pageheaderon) != m_pImpl->m_xPageHeader.is() )
{
- setSection(PROPERTY_PAGEHEADERON,_pageheaderon,RPT_RESSTRING(RID_STR_PAGE_HEADER),m_pImpl->m_xPageHeader);
+ setSection(PROPERTY_PAGEHEADERON,_pageheaderon,RptResId(RID_STR_PAGE_HEADER),m_pImpl->m_xPageHeader);
}
}
@@ -897,7 +897,7 @@ void SAL_CALL OReportDefinition::setPageFooterOn( sal_Bool _pagefooteron )
{
if ( bool(_pagefooteron) != m_pImpl->m_xPageFooter.is() )
{
- setSection(PROPERTY_PAGEFOOTERON,_pagefooteron,RPT_RESSTRING(RID_STR_PAGE_FOOTER),m_pImpl->m_xPageFooter);
+ setSection(PROPERTY_PAGEFOOTERON,_pagefooteron,RptResId(RID_STR_PAGE_FOOTER),m_pImpl->m_xPageFooter);
}
}
@@ -1281,7 +1281,7 @@ void SAL_CALL OReportDefinition::loadFromStorage( const uno::Reference< embed::X
void SAL_CALL OReportDefinition::storeToStorage( const uno::Reference< embed::XStorage >& _xStorageToSaveTo, const uno::Sequence< beans::PropertyValue >& _aMediaDescriptor )
{
if ( !_xStorageToSaveTo.is() )
- throw lang::IllegalArgumentException(RPT_RESSTRING(RID_STR_ARGUMENT_IS_NULL),*this,1);
+ throw lang::IllegalArgumentException(RptResId(RID_STR_ARGUMENT_IS_NULL),*this,1);
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard(m_aMutex);
@@ -1437,7 +1437,7 @@ void SAL_CALL OReportDefinition::switchToStorage(
const uno::Reference< embed::XStorage >& xStorage)
{
if (!xStorage.is())
- throw lang::IllegalArgumentException(RPT_RESSTRING(RID_STR_ARGUMENT_IS_NULL),*this,1);
+ throw lang::IllegalArgumentException(RptResId(RID_STR_ARGUMENT_IS_NULL),*this,1);
{
::osl::MutexGuard aGuard(m_aMutex);
::connectivity::checkDisposed(ReportDefinitionBase::rBHelper.bDisposed);
diff --git a/reportdesign/source/core/api/ReportEngineJFree.cxx b/reportdesign/source/core/api/ReportEngineJFree.cxx
index 8661cf2b94bc..2a8b1cd0fb56 100644
--- a/reportdesign/source/core/api/ReportEngineJFree.cxx
+++ b/reportdesign/source/core/api/ReportEngineJFree.cxx
@@ -45,8 +45,8 @@
#include <unotools/sharedunocomponent.hxx>
#include "Tools.hxx"
-#include "corestrings.hrc"
-#include "core_resource.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "core_resource.hxx"
#include <connectivity/CommonTools.hxx>
@@ -195,7 +195,7 @@ OUString OReportEngineJFree::getNewOutputName()
::utl::TempFile aTestFile(sName, false, &sExt);
if ( !aTestFile.IsValid() )
{
- sName = RPT_RESSTRING(RID_STR_REPORT);
+ sName = RptResId(RID_STR_REPORT);
::utl::TempFile aFile(sName, false, &sExt);
sFileURL = aFile.GetURL();
}
diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx
index c8b29a7798b4..c712046276d3 100644
--- a/reportdesign/source/core/api/Section.cxx
+++ b/reportdesign/source/core/api/Section.cxx
@@ -25,9 +25,9 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include "corestrings.hrc"
+#include "strings.hxx"
#include "core_resource.hxx"
-#include "core_resource.hrc"
+#include "strings.hrc"
#include "Tools.hxx"
#include "RptModel.hxx"
#include "RptPage.hxx"
diff --git a/reportdesign/source/core/api/Shape.cxx b/reportdesign/source/core/api/Shape.cxx
index ce0b655d3496..3ed54547b154 100644
--- a/reportdesign/source/core/api/Shape.cxx
+++ b/reportdesign/source/core/api/Shape.cxx
@@ -28,8 +28,8 @@
#include <tools/diagnose_ex.h>
#include <svx/unoshape.hxx>
-#include "corestrings.hrc"
-#include "core_resource.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "core_resource.hxx"
#include "Tools.hxx"
#include "RptObject.hxx"
@@ -59,7 +59,7 @@ OShape::OShape(uno::Reference< uno::XComponentContext > const & _xContext)
,m_nZOrder(0)
,m_bOpaque(false)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_SHAPE);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_SHAPE);
}
OShape::OShape(uno::Reference< uno::XComponentContext > const & _xContext
@@ -73,7 +73,7 @@ OShape::OShape(uno::Reference< uno::XComponentContext > const & _xContext
,m_bOpaque(false)
,m_sServiceName(_sServiceName)
{
- m_aProps.aComponent.m_sName = RPT_RESSTRING(RID_STR_SHAPE);
+ m_aProps.aComponent.m_sName = RptResId(RID_STR_SHAPE);
m_aProps.aComponent.m_xFactory = _xFactory;
osl_atomic_increment( &m_refCount );
{
diff --git a/reportdesign/source/core/api/Tools.cxx b/reportdesign/source/core/api/Tools.cxx
index 44c2b0e5ed76..886e7fe16675 100644
--- a/reportdesign/source/core/api/Tools.cxx
+++ b/reportdesign/source/core/api/Tools.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "Tools.hxx"
-#include "core_resource.hrc"
+#include "strings.hrc"
#include "core_resource.hxx"
#include <comphelper/property.hxx>
@@ -45,7 +45,7 @@ void throwIllegallArgumentException( const OUString& _sTypeName
,sal_Int16 ArgumentPosition_
)
{
- OUString sErrorMessage(RPT_RESSTRING(RID_STR_ERROR_WRONG_ARGUMENT));
+ OUString sErrorMessage(RptResId(RID_STR_ERROR_WRONG_ARGUMENT));
sErrorMessage = sErrorMessage.replaceAt(sErrorMessage.indexOf('#'),2,_sTypeName);
throw lang::IllegalArgumentException(sErrorMessage,ExceptionContext_,ArgumentPosition_);
}
diff --git a/reportdesign/source/core/inc/ReportUndoFactory.hxx b/reportdesign/source/core/inc/ReportUndoFactory.hxx
index 0f247e4aad36..7829022d4a6f 100644
--- a/reportdesign/source/core/inc/ReportUndoFactory.hxx
+++ b/reportdesign/source/core/inc/ReportUndoFactory.hxx
@@ -21,13 +21,11 @@
#include <svx/svdundo.hxx>
#include <memory>
-#include "ModuleHelper.hxx"
namespace rptui
{
class OReportUndoFactory : public SdrUndoFactory
{
- OModuleClient m_aModuleClient;
::std::unique_ptr<SdrUndoFactory> m_pUndoFactory;
OReportUndoFactory(const OReportUndoFactory&) = delete;
diff --git a/reportdesign/source/core/inc/Tools.hxx b/reportdesign/source/core/inc/Tools.hxx
index 37a7357cf006..64ad3ab96f78 100644
--- a/reportdesign/source/core/inc/Tools.hxx
+++ b/reportdesign/source/core/inc/Tools.hxx
@@ -28,7 +28,7 @@
#include "Section.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
namespace reportdesign
{
diff --git a/reportdesign/source/core/inc/core_resource.hrc b/reportdesign/source/core/inc/core_resource.hrc
deleted file mode 100644
index 9b4e58889fe5..000000000000
--- a/reportdesign/source/core/inc/core_resource.hrc
+++ /dev/null
@@ -1,46 +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 REPORTDESIGN_CORE_RESOURCE_HRC_
-#define REPORTDESIGN_CORE_RESOURCE_HRC_
-
-#include <svl/solar.hrc>
-
-#define RID_CORE_STRINGS_START RID_RPT_START
-
-//- String-IDs
-#define RID_STR_DETAIL ( RID_CORE_STRINGS_START + 0 )
-#define RID_STR_PAGE_HEADER ( RID_CORE_STRINGS_START + 1 )
-#define RID_STR_PAGE_FOOTER ( RID_CORE_STRINGS_START + 2 )
-#define RID_STR_REPORT_HEADER ( RID_CORE_STRINGS_START + 3 )
-#define RID_STR_REPORT_FOOTER ( RID_CORE_STRINGS_START + 4 )
-#define RID_STR_ERROR_WRONG_ARGUMENT ( RID_CORE_STRINGS_START + 6 )
-#define RID_STR_ARGUMENT_IS_NULL ( RID_CORE_STRINGS_START + 7 )
-#define RID_STR_SHAPE ( RID_CORE_STRINGS_START + 8 )
-#define RID_STR_REPORT ( RID_CORE_STRINGS_START + 9 )
-#define RID_STR_IMAGECONTROL ( RID_CORE_STRINGS_START + 10 )
-#define RID_STR_FIXEDTEXT ( RID_CORE_STRINGS_START + 11 )
-#define RID_STR_FORMATTEDFIELD ( RID_CORE_STRINGS_START + 12 )
-#define RID_STR_GROUP_HEADER ( RID_CORE_STRINGS_START + 13 )
-#define RID_STR_GROUP_FOOTER ( RID_CORE_STRINGS_START + 14 )
-#define RID_STR_FIXEDLINE ( RID_CORE_STRINGS_START + 15 )
-
-#endif // REPORTDESIGN_CORE_RESOURCE_HRC_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/core/inc/core_resource.hxx b/reportdesign/source/core/inc/core_resource.hxx
deleted file mode 100644
index 797dc6f77de5..000000000000
--- a/reportdesign/source/core/inc/core_resource.hxx
+++ /dev/null
@@ -1,66 +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 INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
-#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
-
-
-#include <rtl/ustring.hxx>
-#include <com/sun/star/lang/XMultiComponentFactory.hpp>
-
-class SimpleResMgr;
-
-namespace reportdesign
-{
-
-#define RPT_RESSTRING(id) ResourceManager::loadString(id)
-
-
- //= ResourceManager
- //= handling resources within the DBA-Core library
-
- class ResourceManager
- {
- static SimpleResMgr* m_pImpl;
-
- // no instantiation allowed
- ResourceManager() = delete;
-
- // we'll instantiate one static member of the following class, which, in its dtor,
- // ensures that m_pImpl will be deleted
- class EnsureDelete
- {
- public:
- EnsureDelete() { }
- ~EnsureDelete();
- };
- friend class EnsureDelete;
-
- public:
- /** loads the string with the specified resource id from the FormLayer resource file
- */
- static OUString loadString(sal_uInt16 _nResId);
- };
-
-
-}
-
-
-#endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/core/resource/core_resource.cxx b/reportdesign/source/core/resource/core_resource.cxx
index 67813be52298..21718d124830 100644
--- a/reportdesign/source/core/resource/core_resource.cxx
+++ b/reportdesign/source/core/resource/core_resource.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "core_resource.hxx"
-#include <tools/simplerm.hxx>
+#include <tools/resmgr.hxx>
// ---- needed as long as we have no contexts for components ---
#include <vcl/svapp.hxx>
@@ -30,36 +30,11 @@
#include <rtl/uri.hxx>
#include <svl/solar.hrc>
-#include "ModuleHelper.hxx"
-namespace reportdesign
+OUString RptResId(const char* pId)
{
- using namespace ::com::sun::star;
-
- //= ResourceManager
-
- SimpleResMgr* ResourceManager::m_pImpl = nullptr;
-
-
- ResourceManager::EnsureDelete::~EnsureDelete()
- {
- delete ResourceManager::m_pImpl;
- }
-
- OUString ResourceManager::loadString(sal_uInt16 _nResId)
- {
- if (!m_pImpl)
- {
- // now that we have an impl class make sure it's deleted on unloading the library
- static ResourceManager::EnsureDelete s_aDeleteTheImplClass;
-
- m_pImpl = SimpleResMgr::Create("rpt", Application::GetSettings().GetUILanguageTag());
- }
- return m_pImpl->ReadString(_nResId);
- }
-
-
+ static std::locale loc = Translate::Create("rpt", Application::GetSettings().GetUILanguageTag());
+ return Translate::get(pId, loc);
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/core/resource/strings.src b/reportdesign/source/core/resource/strings.src
deleted file mode 100644
index 027f30415769..000000000000
--- a/reportdesign/source/core/resource/strings.src
+++ /dev/null
@@ -1,97 +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 "core_resource.hrc"
-
-String RID_STR_DETAIL
-{
- Text [ en-US ] = "Detail";
-};
-
-String RID_STR_PAGE_HEADER
-{
- Text [ en-US ] = "Page Header";
-};
-
-String RID_STR_PAGE_FOOTER
-{
- Text [ en-US ] = "Page Footer";
-};
-
-String RID_STR_GROUP_HEADER
-{
- Text [ en-US ] = "Group Header";
-};
-
-String RID_STR_GROUP_FOOTER
-{
- Text [ en-US ] = "Group Footer";
-};
-
-String RID_STR_REPORT_HEADER
-{
- Text [ en-US ] = "Report Header";
-};
-
-String RID_STR_REPORT_FOOTER
-{
- Text [ en-US ] = "Report Footer";
-};
-
-String RID_STR_ERROR_WRONG_ARGUMENT
-{
- Text [ en-US ] = "You tried to set an illegal argument. Please have a look at '#1' for valid arguments.";
-};
-
-String RID_STR_ARGUMENT_IS_NULL
-{
- Text [ en-US ] = "The element is invalid.";
-};
-
-String RID_STR_FIXEDTEXT
-{
- Text [ en-US ] = "Label field" ;
-};
-
-String RID_STR_FORMATTEDFIELD
-{
- Text [ en-US ] = "Formatted field";
-};
-
-String RID_STR_IMAGECONTROL
-{
- Text [ en-US ] = "Image control" ;
-};
-
-String RID_STR_REPORT
-{
- Text [ en-US ] = "Report";
-};
-
-String RID_STR_SHAPE
-{
- Text [ en-US ] = "Shape";
-};
-
-String RID_STR_FIXEDLINE
-{
- Text [ en-US ] = "Fixed line";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/core/sdr/ModuleHelper.cxx b/reportdesign/source/core/sdr/ModuleHelper.cxx
deleted file mode 100644
index 58f1691227b1..000000000000
--- a/reportdesign/source/core/sdr/ModuleHelper.cxx
+++ /dev/null
@@ -1,124 +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 <memory>
-#include "ModuleHelper.hxx"
-#include <comphelper/processfactory.hxx>
-#include <osl/thread.h>
-#include <com/sun/star/util/XMacroExpander.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-#include <rtl/instance.hxx>
-#include <rtl/uri.hxx>
-#include <svl/solar.hrc>
-
-#define ENTER_MOD_METHOD() \
- ::osl::MutexGuard aGuard(theOModuleMutex::get()); \
- ensureImpl()
-
-
-namespace rptui
-{
-
- using namespace ::com::sun::star;
-
-//= OModuleImpl
-
-/** implementation for <type>OModule</type>. not threadsafe, has to be guarded by its owner
-*/
-class OModuleImpl
-{
- std::unique_ptr<ResMgr> m_pResources;
-
-public:
- /// ctor
- OModuleImpl();
-
- /// get the manager for the resources of the module
- ResMgr* getResManager();
-};
-
-
-OModuleImpl::OModuleImpl()
- :m_pResources(nullptr)
-{
-}
-
-
-ResMgr* OModuleImpl::getResManager()
-{
- // note that this method is not threadsafe, which counts for the whole class !
-
- if (!m_pResources)
- {
- // create a manager with a fixed prefix
- m_pResources.reset( ResMgr::CreateResMgr("rptui") );
- }
- return m_pResources.get();
-}
-
-
-//= OModule
-
-
-namespace
-{
- // access safety
- struct theOModuleMutex : public rtl::Static< osl::Mutex, theOModuleMutex > {};
-}
-
-sal_Int32 OModule::s_nClients = 0;
-OModuleImpl* OModule::s_pImpl = nullptr;
-
-ResMgr* OModule::getResManager()
-{
- ENTER_MOD_METHOD();
- return s_pImpl->getResManager();
-}
-
-
-void OModule::registerClient()
-{
- ::osl::MutexGuard aGuard(theOModuleMutex::get());
- ++s_nClients;
-}
-
-
-void OModule::revokeClient()
-{
- ::osl::MutexGuard aGuard(theOModuleMutex::get());
- if (!--s_nClients && s_pImpl)
- {
- delete s_pImpl;
- s_pImpl = nullptr;
- }
-}
-
-
-void OModule::ensureImpl()
-{
- if (s_pImpl)
- return;
- s_pImpl = new OModuleImpl();
-}
-
-
-} // namespace dbaui
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/core/sdr/PropertyForward.cxx b/reportdesign/source/core/sdr/PropertyForward.cxx
index d65386302c23..0b06d5946698 100644
--- a/reportdesign/source/core/sdr/PropertyForward.cxx
+++ b/reportdesign/source/core/sdr/PropertyForward.cxx
@@ -23,7 +23,7 @@
#include <com/sun/star/sdbcx/XAppend.hpp>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
-#include "corestrings.hrc"
+#include "strings.hxx"
namespace rptui
{
diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx
index 4fb8ca0d3a6c..56573be9421a 100644
--- a/reportdesign/source/core/sdr/ReportDrawPage.cxx
+++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx
@@ -20,7 +20,7 @@
#include "RptObject.hxx"
#include "RptModel.hxx"
#include "RptDef.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <comphelper/mimeconfighelper.hxx>
#include <comphelper/classids.hxx>
#include <comphelper/embeddedobjectcontainer.hxx>
diff --git a/reportdesign/source/core/sdr/ReportUndoFactory.cxx b/reportdesign/source/core/sdr/ReportUndoFactory.cxx
index 984da1343982..712eb12e8727 100644
--- a/reportdesign/source/core/sdr/ReportUndoFactory.cxx
+++ b/reportdesign/source/core/sdr/ReportUndoFactory.cxx
@@ -19,13 +19,13 @@
#include "ReportUndoFactory.hxx"
#include "RptObject.hxx"
#include "UndoActions.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
namespace rptui
{
using namespace ::com::sun::star;
-SdrUndoAction* lcl_createUndo(SdrObject& rObject,Action _eAction,sal_uInt16 _nCommentId)
+SdrUndoAction* lcl_createUndo(SdrObject& rObject, Action _eAction, const char* pCommentId)
{
OObjectBase* pObj = dynamic_cast<OObjectBase*>(&rObject);
if ( !pObj )
@@ -35,9 +35,9 @@ SdrUndoAction* lcl_createUndo(SdrObject& rObject,Action _eAction,sal_uInt16 _nCo
uno::Reference< report::XGroup> xGroup = xSection->getGroup();
SdrUndoAction* pUndo = nullptr;
if ( xGroup.is() )
- pUndo = new OUndoGroupSectionAction(*rObject.GetModel(),_eAction,OGroupHelper::getMemberFunction(xSection),xGroup,xReportComponent,_nCommentId);
+ pUndo = new OUndoGroupSectionAction(*rObject.GetModel(),_eAction,OGroupHelper::getMemberFunction(xSection),xGroup,xReportComponent,pCommentId);
else
- pUndo = new OUndoReportSectionAction(*rObject.GetModel(),_eAction,OReportHelper::getMemberFunction(xSection),xSection->getReportDefinition(),xReportComponent,_nCommentId);
+ pUndo = new OUndoReportSectionAction(*rObject.GetModel(),_eAction,OReportHelper::getMemberFunction(xSection),xSection->getReportDefinition(),xReportComponent,pCommentId);
return pUndo;
}
diff --git a/reportdesign/source/core/sdr/RptModel.cxx b/reportdesign/source/core/sdr/RptModel.cxx
index 4eb29d0c3b89..36a25e337294 100644
--- a/reportdesign/source/core/sdr/RptModel.cxx
+++ b/reportdesign/source/core/sdr/RptModel.cxx
@@ -20,6 +20,7 @@
#include "RptModel.hxx"
#include "RptPage.hxx"
#include <dbaccess/dbsubcomponentcontroller.hxx>
+#include <tools/resmgr.hxx>
#include <unotools/pathoptions.hxx>
#include <vcl/svapp.hxx>
@@ -31,7 +32,7 @@
#include <svx/tbcontrl.hxx>
#include "rptui_slotid.hrc"
#include "RptDef.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include "FixedLine.hxx"
#include "FormattedField.hxx"
#include "FixedText.hxx"
@@ -186,5 +187,4 @@ uno::Reference< uno::XInterface > OReportModel::createShape(const OUString& aSer
} //rptui
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx
index d82f4a457851..8e82dcab9b77 100644
--- a/reportdesign/source/core/sdr/RptObject.cxx
+++ b/reportdesign/source/core/sdr/RptObject.cxx
@@ -27,11 +27,10 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <toolkit/helper/convert.hxx>
#include "RptPage.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include <dbaccess/dbsubcomponentcontroller.hxx>
-#include "ModuleHelper.hxx"
-#include <RptResId.hrc>
+#include <strings.hrc>
#include "strings.hxx"
#include <svx/xflclit.hxx>
#include <svx/xlnclit.hxx>
diff --git a/reportdesign/source/core/sdr/UndoActions.cxx b/reportdesign/source/core/sdr/UndoActions.cxx
index 08edfe1cdc60..68a6023f1a71 100644
--- a/reportdesign/source/core/sdr/UndoActions.cxx
+++ b/reportdesign/source/core/sdr/UndoActions.cxx
@@ -21,13 +21,13 @@
#include "UndoEnv.hxx"
#include "formatnormalizer.hxx"
#include "conditionupdater.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include "rptui_slotid.hrc"
#include "RptDef.hxx"
-#include "ModuleHelper.hxx"
+#include "core_resource.hxx"
#include "RptObject.hxx"
#include "RptPage.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "RptModel.hxx"
#include <com/sun/star/container/XChild.hpp>
@@ -79,12 +79,12 @@ namespace rptui
}
-OCommentUndoAction::OCommentUndoAction(SdrModel& _rMod,sal_uInt16 nCommentID)
+OCommentUndoAction::OCommentUndoAction(SdrModel& _rMod,const char* pCommentID)
:SdrUndoAction(_rMod)
{
m_pController = static_cast< OReportModel& >( _rMod ).getController();
- if ( nCommentID )
- m_strComment = ModuleRes(nCommentID);
+ if (pCommentID)
+ m_strComment = RptResId(pCommentID);
}
OCommentUndoAction::~OCommentUndoAction()
{
@@ -102,8 +102,8 @@ OUndoContainerAction::OUndoContainerAction(SdrModel& _rMod
,Action _eAction
,const uno::Reference< container::XIndexContainer >& rContainer
,const Reference< XInterface > & xElem
- ,sal_uInt16 _nCommentId)
- :OCommentUndoAction(_rMod,_nCommentId)
+ ,const char* pCommentId)
+ :OCommentUndoAction(_rMod, pCommentId)
,m_xElement(xElem)
,m_xContainer(rContainer)
,m_eAction( _eAction )
@@ -246,8 +246,8 @@ OUndoGroupSectionAction::OUndoGroupSectionAction(SdrModel& _rMod
,OGroupHelper> _pMemberFunction
,const uno::Reference< report::XGroup >& _xGroup
,const Reference< XInterface > & xElem
- ,sal_uInt16 _nCommentId)
-:OUndoContainerAction(_rMod,_eAction,nullptr,xElem,_nCommentId)
+ ,const char* pCommentId)
+:OUndoContainerAction(_rMod,_eAction,nullptr,xElem,pCommentId)
,m_aGroupHelper(_xGroup)
,m_pMemberFunction(_pMemberFunction)
{
@@ -292,8 +292,8 @@ OUndoReportSectionAction::OUndoReportSectionAction(SdrModel& _rMod
,OReportHelper> _pMemberFunction
,const uno::Reference< report::XReportDefinition >& _xReport
,const Reference< XInterface > & xElem
- ,sal_uInt16 _nCommentId)
-:OUndoContainerAction(_rMod,_eAction,nullptr,xElem,_nCommentId)
+ ,const char* pCommentId)
+:OUndoContainerAction(_rMod,_eAction,nullptr,xElem,pCommentId)
,m_aReportHelper(_xReport)
,m_pMemberFunction(_pMemberFunction)
{
@@ -338,7 +338,7 @@ void OUndoReportSectionAction::implReRemove( )
}
ORptUndoPropertyAction::ORptUndoPropertyAction(SdrModel& rNewMod, const PropertyChangeEvent& evt)
- :OCommentUndoAction(rNewMod,0)
+ :OCommentUndoAction(rNewMod,nullptr)
,m_xObj(evt.Source, UNO_QUERY)
,m_aPropertyName(evt.PropertyName)
,m_aNewValue(evt.NewValue)
@@ -381,7 +381,7 @@ void ORptUndoPropertyAction::setProperty(bool _bOld)
OUString ORptUndoPropertyAction::GetComment() const
{
- OUString aStr( ModuleRes(RID_STR_UNDO_PROPERTY) );
+ OUString aStr( RptResId(RID_STR_UNDO_PROPERTY) );
return aStr.replaceFirst("#", m_aPropertyName);
}
diff --git a/reportdesign/source/core/sdr/UndoEnv.cxx b/reportdesign/source/core/sdr/UndoEnv.cxx
index ed3caaaba4a8..38c03995ec8d 100644
--- a/reportdesign/source/core/sdr/UndoEnv.cxx
+++ b/reportdesign/source/core/sdr/UndoEnv.cxx
@@ -20,13 +20,12 @@
#include "UndoEnv.hxx"
#include "formatnormalizer.hxx"
#include "conditionupdater.hxx"
-#include "corestrings.hrc"
+#include "strings.hxx"
#include "rptui_slotid.hrc"
#include "RptDef.hxx"
-#include "ModuleHelper.hxx"
#include "RptObject.hxx"
#include "RptPage.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "RptModel.hxx"
#include <com/sun/star/container/XChild.hpp>
diff --git a/reportdesign/source/filter/xml/xmlCell.cxx b/reportdesign/source/filter/xml/xmlCell.cxx
index 5a5696861bb9..b2887720d4cd 100644
--- a/reportdesign/source/filter/xml/xmlCell.cxx
+++ b/reportdesign/source/filter/xml/xmlCell.cxx
@@ -31,7 +31,7 @@
#include <com/sun/star/report/XShape.hpp>
#include <com/sun/star/report/XFixedLine.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlTable.hxx"
#include "xmlFormattedField.hxx"
#include "xmlImage.hxx"
diff --git a/reportdesign/source/filter/xml/xmlColumn.cxx b/reportdesign/source/filter/xml/xmlColumn.cxx
index f010f246c351..a563799502c2 100644
--- a/reportdesign/source/filter/xml/xmlColumn.cxx
+++ b/reportdesign/source/filter/xml/xmlColumn.cxx
@@ -30,7 +30,7 @@
#include <comphelper/namecontainer.hxx>
#include <comphelper/genericpropertyset.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#define PROPERTY_ID_WIDTH 1
#define PROPERTY_ID_HEIGHT 2
diff --git a/reportdesign/source/filter/xml/xmlComponent.cxx b/reportdesign/source/filter/xml/xmlComponent.cxx
index cc9b689d1dde..788a0a3a09be 100644
--- a/reportdesign/source/filter/xml/xmlComponent.cxx
+++ b/reportdesign/source/filter/xml/xmlComponent.cxx
@@ -24,7 +24,7 @@
#include <xmloff/nmspmap.hxx>
#include "xmlEnums.hxx"
#include "xmlHelper.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlStyleImport.hxx"
#include <ucbhelper/content.hxx>
#include <comphelper/namecontainer.hxx>
diff --git a/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx b/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx
index d44a982b8b33..767f1733c942 100644
--- a/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx
+++ b/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx
@@ -24,7 +24,7 @@
#include "xmlEnums.hxx"
#include "xmlControlProperty.hxx"
#include "xmlComponent.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
namespace rptxml
{
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index f37e32667841..7a66a583f019 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -31,7 +31,7 @@
#include <xmloff/txtprmap.hxx>
#include <xmloff/numehelp.hxx>
#include "xmlHelper.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlPropertyHandler.hxx"
#include <sax/tools/converter.hxx>
#include <com/sun/star/awt/ImagePosition.hpp>
diff --git a/reportdesign/source/filter/xml/xmlFixedContent.cxx b/reportdesign/source/filter/xml/xmlFixedContent.cxx
index 21a8fc1a6306..d8ce3fa9cd2e 100644
--- a/reportdesign/source/filter/xml/xmlFixedContent.cxx
+++ b/reportdesign/source/filter/xml/xmlFixedContent.cxx
@@ -24,7 +24,7 @@
#include "xmlEnums.hxx"
#include "xmlReportElement.hxx"
#include "xmlCell.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include <com/sun/star/report/XFormattedField.hpp>
#include <com/sun/star/report/XFixedText.hpp>
#include <com/sun/star/text/ControlCharacter.hpp>
diff --git a/reportdesign/source/filter/xml/xmlFormatCondition.cxx b/reportdesign/source/filter/xml/xmlFormatCondition.cxx
index 323d47e897d8..0e66bb46e689 100644
--- a/reportdesign/source/filter/xml/xmlFormatCondition.cxx
+++ b/reportdesign/source/filter/xml/xmlFormatCondition.cxx
@@ -27,7 +27,7 @@
#include <comphelper/genericpropertyset.hxx>
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlStyleImport.hxx"
namespace rptxml
diff --git a/reportdesign/source/filter/xml/xmlFunction.cxx b/reportdesign/source/filter/xml/xmlFunction.cxx
index 586296daf52d..76c7c00f18ae 100644
--- a/reportdesign/source/filter/xml/xmlFunction.cxx
+++ b/reportdesign/source/filter/xml/xmlFunction.cxx
@@ -23,7 +23,7 @@
#include <xmloff/nmspmap.hxx>
#include "xmlHelper.hxx"
#include "xmlEnums.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
namespace rptxml
{
diff --git a/reportdesign/source/filter/xml/xmlHelper.cxx b/reportdesign/source/filter/xml/xmlHelper.cxx
index d3e0095f4731..6582a4543444 100644
--- a/reportdesign/source/filter/xml/xmlHelper.cxx
+++ b/reportdesign/source/filter/xml/xmlHelper.cxx
@@ -31,7 +31,7 @@
#include <com/sun/star/awt/ImagePosition.hpp>
#include <com/sun/star/awt/ImageScaleMode.hpp>
#include <xmloff/prstylei.hxx>
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlEnums.hxx"
#include <xmloff/contextid.hxx>
#include <xmloff/txtprmap.hxx>
diff --git a/reportdesign/source/filter/xml/xmlRow.cxx b/reportdesign/source/filter/xml/xmlRow.cxx
index fbf2ab633345..1f9862a01ab2 100644
--- a/reportdesign/source/filter/xml/xmlRow.cxx
+++ b/reportdesign/source/filter/xml/xmlRow.cxx
@@ -28,7 +28,7 @@
#include <comphelper/namecontainer.hxx>
#include <comphelper/genericpropertyset.hxx>
#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include "xmlstrings.hrc"
+#include "strings.hxx"
namespace rptxml
{
diff --git a/reportdesign/source/filter/xml/xmlSection.cxx b/reportdesign/source/filter/xml/xmlSection.cxx
index c8e714237f0a..f69b5e3edffa 100644
--- a/reportdesign/source/filter/xml/xmlSection.cxx
+++ b/reportdesign/source/filter/xml/xmlSection.cxx
@@ -29,7 +29,7 @@
#include "xmlStyleImport.hxx"
#include <connectivity/dbtools.hxx>
#include <com/sun/star/report/ReportPrintOption.hpp>
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlTable.hxx"
diff --git a/reportdesign/source/filter/xml/xmlTable.cxx b/reportdesign/source/filter/xml/xmlTable.cxx
index c36fdfc33077..5ff337bcaf4f 100644
--- a/reportdesign/source/filter/xml/xmlTable.cxx
+++ b/reportdesign/source/filter/xml/xmlTable.cxx
@@ -29,7 +29,7 @@
#include <com/sun/star/report/ForceNewPage.hpp>
#include "xmlCondPrtExpr.hxx"
#include "xmlStyleImport.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include <connectivity/dbtools.hxx>
#include <com/sun/star/report/XShape.hpp>
#include <com/sun/star/report/XFixedLine.hpp>
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index f691cf7bbbac..7925036608fa 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -57,7 +57,7 @@
#include <svtools/sfxecode.hxx>
#include "xmlEnums.hxx"
#include "xmlStyleImport.hxx"
-#include "xmlstrings.hrc"
+#include "strings.hxx"
#include "xmlPropertyHandler.hxx"
#include <xmloff/txtprmap.hxx>
#include "ReportDefinition.hxx"
diff --git a/reportdesign/source/inc/stringconstants.hrc b/reportdesign/source/inc/stringconstants.hrc
deleted file mode 100644
index 1cfe717f8092..000000000000
--- a/reportdesign/source/inc/stringconstants.hrc
+++ /dev/null
@@ -1,257 +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 INCLUDED_REPORTDESIGN_SOURCE_INC_STRINGCONSTANTS_HRC
-#define INCLUDED_REPORTDESIGN_SOURCE_INC_STRINGCONSTANTS_HRC
-
-#ifndef STRINGCONSTANTS_INCLUDED_INDIRECT
-#error "don't include this file directly! use dbastrings.hrc or dbustrings.hrc instead!"
-#endif
-
-//= service names
-
-#define SERVICE_FIXEDTEXT "com.sun.star.report.FixedText"
-#define SERVICE_FORMATTEDFIELD "com.sun.star.report.FormattedField"
-#define SERVICE_IMAGECONTROL "com.sun.star.report.ImageControl"
-#define SERVICE_FORMATCONDITION "com.sun.star.report.FormatCondition"
-#define SERVICE_FUNCTION "com.sun.star.report.Function"
-#define SERVICE_REPORTDEFINITION "com.sun.star.report.ReportDefinition"
-#define SERVICE_SHAPE "com.sun.star.report.Shape"
-#define SERVICE_FIXEDLINE "com.sun.star.report.FixedLine"
-#define SERVICE_SECTION "com.sun.star.report.Section"
-#define SERVICE_GROUP "com.sun.star.report.Group"
-
-//= property names
-
-#define PROPERTY_VISIBLE "Visible"
-#define PROPERTY_NAME "Name"
-#define PROPERTY_HEIGHT "Height"
-#define PROPERTY_BACKCOLOR "BackColor"
-#define PROPERTY_BACKTRANSPARENT "BackTransparent"
-#define PROPERTY_CONTROLBACKGROUND "ControlBackground"
-#define PROPERTY_CONTROLBACKGROUNDTRANSPARENT "ControlBackgroundTransparent"
-#define PROPERTY_FORCENEWPAGE "ForceNewPage"
-#define PROPERTY_NEWROWORCOL "NewRowOrCol"
-#define PROPERTY_KEEPTOGETHER "KeepTogether"
-#define PROPERTY_CANGROW "CanGrow"
-#define PROPERTY_CANSHRINK "CanShrink"
-#define PROPERTY_REPEATSECTION "RepeatSection"
-#define PROPERTY_GROUP "Group"
-#define PROPERTY_REPORTDEFINITION "ReportDefinition"
-
-#define PROPERTY_GROUPINTERVAL "GroupInterval"
-#define PROPERTY_EXPRESSION "Expression"
-#define PROPERTY_GROUPON "GroupOn"
-#define PROPERTY_SORTASCENDING "SortAscending"
-
-#define PROPERTY_MASTERFIELDS "MasterFields"
-#define PROPERTY_DETAILFIELDS "DetailFields"
-#define PROPERTY_CAPTION "Caption"
-#define PROPERTY_COMMAND "Command"
-#define PROPERTY_BACKGRAPHICLOCATION "BackGraphicLocation"
-#define PROPERTY_ORIENTATION "Orientation"
-#define PROPERTY_PAPERSIZE "Size"
-#define PROPERTY_GROUPKEEPTOGETHER "GroupKeepTogether"
-#define PROPERTY_PAGEHEADEROPTION "PageHeaderOption"
-#define PROPERTY_PAGEFOOTEROPTION "PageFooterOption"
-#define PROPERTY_COMMANDTYPE "CommandType"
-#define PROPERTY_REPORTHEADERON "ReportHeaderOn"
-#define PROPERTY_REPORTFOOTERON "ReportFooterOn"
-#define PROPERTY_PAGEHEADERON "PageHeaderOn"
-#define PROPERTY_PAGEFOOTERON "PageFooterOn"
-#define PROPERTY_HEADERON "HeaderOn"
-#define PROPERTY_FOOTERON "FooterOn"
-#define PROPERTY_WIDTH "Width"
-#define PROPERTY_POSITIONX "PositionX"
-#define PROPERTY_POSITIONY "PositionY"
-#define PROPERTY_DATAFIELD "DataField"
-#define PROPERTY_PARAADJUST "ParaAdjust"
-#define PROPERTY_FONTDESCRIPTOR "FontDescriptor"
-#define PROPERTY_FONTDESCRIPTORASIAN "FontDescriptorAsian"
-#define PROPERTY_FONTDESCRIPTORCOMPLEX "FontDescriptorComplex"
-#define PROPERTY_CONTROLTEXTEMPHASISMARK "ControlTextEmphasis"
-#define PROPERTY_CHARRELIEF "CharRelief"
-#define PROPERTY_CHARCOLOR "CharColor"
-#define PROPERTY_VERTICALALIGN "VerticalAlign"
-#define PROPERTY_IMAGEPOSITION "ImagePosition"
-#define PROPERTY_IMAGEURL "ImageURL"
-#define PROPERTY_CHARUNDERLINECOLOR "CharUnderlineColor"
-#define PROPERTY_LABEL "Label"
-#define PROPERTY_EFFECTIVEDEFAULT "EffectiveDefault"
-#define PROPERTY_EFFECTIVEMAX "EffectiveMax"
-#define PROPERTY_EFFECTIVEMIN "EffectiveMin"
-#define PROPERTY_FORMATKEY "FormatKey"
-#define PROPERTY_MAXTEXTLEN "MaxTextLen"
-#define PROPERTY_LISTSOURCE "ListSource"
-#define PROPERTY_FORMATSSUPPLIER "FormatsSupplier"
-#define PROPERTY_CONTROLBORDER "ControlBorder"
-#define PROPERTY_CONTROLBORDERCOLOR "ControlBorderColor"
-#define PROPERTY_BORDER "Border"
-#define PROPERTY_BORDERCOLOR "BorderColor"
-#define PROPERTY_DEFAULTCONTROL "DefaultControl"
-
-#define PROPERTY_LEFTMARGIN "LeftMargin"
-#define PROPERTY_RIGHTMARGIN "RightMargin"
-#define PROPERTY_TOPMARGIN "TopMargin"
-#define PROPERTY_BOTTOMMARGIN "BottomMargin"
-
-#define PROPERTY_PRINTREPEATEDVALUES "PrintRepeatedValues"
-#define PROPERTY_CONDITIONALPRINTEXPRESSION "ConditionalPrintExpression"
-#define PROPERTY_STARTNEWCOLUMN "StartNewColumn"
-#define PROPERTY_RESETPAGENUMBER "ResetPageNumber"
-#define PROPERTY_PRINTWHENGROUPCHANGE "PrintWhenGroupChange"
-#define PROPERTY_STATE "State"
-#define PROPERTY_TIME_STATE "TimeState"
-#define PROPERTY_DATE_STATE "DateState"
-#define PROPERTY_TRISTATE "TriState"
-#define PROPERTY_LISTSOURCETYPE "ListSourceType"
-#define PROPERTY_FONTCHARWIDTH "FontCharWidth"
-#define PROPERTY_FONTCHARSET "CharFontCharSet"
-#define PROPERTY_FONTFAMILY "CharFontFamily"
-#define PROPERTY_CHARFONTHEIGHT "CharHeight"
-#define PROPERTY_FONTHEIGHT "FontHeight"
-#define PROPERTY_FONTKERNING "FontKerning"
-#define PROPERTY_FONT "FontDescriptor"
-#define PROPERTY_FONTNAME "FontName"
-#define PROPERTY_FONTORIENTATION "CharRotation"
-#define PROPERTY_FONTPITCH "CharFontPitch"
-#define PROPERTY_FONTSLANT "FontSlant"
-#define PROPERTY_CHARSTRIKEOUT "CharStrikeout"
-#define PROPERTY_FONTSTRIKEOUT "FontStrikeout"
-#define PROPERTY_FONTSTYLENAME "CharFontStyleName"
-#define PROPERTY_FONTUNDERLINE "CharUnderline"
-#define PROPERTY_FONTWEIGHT "CharWeight"
-#define PROPERTY_FONTWIDTH "FontWidth"
-#define PROPERTY_FONTWORDLINEMODE "FontWordLineMode"
-#define PROPERTY_FONTTYPE "FontType"
-
-#define PROPERTY_ENABLED "Enabled"
-
-#define PROPERTY_CHAREMPHASIS "CharEmphasis"
-#define PROPERTY_CHARFONTNAME "CharFontName"
-#define PROPERTY_CHARFONTSTYLENAME "CharFontStyleName"
-#define PROPERTY_CHARFONTFAMILY "CharFontFamily"
-#define PROPERTY_CHARFONTCHARSET "CharFontCharSet"
-#define PROPERTY_CHARFONTPITCH "CharFontPitch"
-#define PROPERTY_CHARHEIGHT "CharHeight"
-#define PROPERTY_CHARUNDERLINE "CharUnderline"
-#define PROPERTY_CHARWEIGHT "CharWeight"
-#define PROPERTY_CHARPOSTURE "CharPosture"
-#define PROPERTY_CHARWORDMODE "CharWordMode"
-#define PROPERTY_CHARROTATION "CharRotation"
-#define PROPERTY_CHARSCALEWIDTH "CharScaleWidth"
-
-// Asian
-#define PROPERTY_CHAREMPHASISASIAN "CharEmphasisAsian"
-#define PROPERTY_CHARFONTNAMEASIAN "CharFontNameAsian"
-#define PROPERTY_CHARFONTSTYLENAMEASIAN "CharFontStyleNameAsian"
-#define PROPERTY_CHARFONTFAMILYASIAN "CharFontFamilyAsian"
-#define PROPERTY_CHARFONTCHARSETASIAN "CharFontCharSetAsian"
-#define PROPERTY_CHARFONTPITCHASIAN "CharFontPitchAsian"
-#define PROPERTY_CHARHEIGHTASIAN "CharHeightAsian"
-#define PROPERTY_CHARUNDERLINEASIAN "CharUnderlineAsian"
-#define PROPERTY_CHARWEIGHTASIAN "CharWeightAsian"
-#define PROPERTY_CHARPOSTUREASIAN "CharPostureAsian"
-#define PROPERTY_CHARWORDMODEASIAN "CharWordModeAsian"
-#define PROPERTY_CHARROTATIONASIAN "CharRotationAsian"
-#define PROPERTY_CHARSCALEWIDTHASIAN "CharScaleWidthAsian"
-#define PROPERTY_CHARLOCALEASIAN "CharLocaleAsian"
-
-// Complex
-#define PROPERTY_CHAREMPHASISCOMPLEX "CharEmphasisComplex"
-#define PROPERTY_CHARFONTNAMECOMPLEX "CharFontNameComplex"
-#define PROPERTY_CHARFONTSTYLENAMECOMPLEX "CharFontStyleNameComplex"
-#define PROPERTY_CHARFONTFAMILYCOMPLEX "CharFontFamilyComplex"
-#define PROPERTY_CHARFONTCHARSETCOMPLEX "CharFontCharSetComplex"
-#define PROPERTY_CHARFONTPITCHCOMPLEX "CharFontPitchComplex"
-#define PROPERTY_CHARHEIGHTCOMPLEX "CharHeightComplex"
-#define PROPERTY_CHARUNDERLINECOMPLEX "CharUnderlineComplex"
-#define PROPERTY_CHARWEIGHTCOMPLEX "CharWeightComplex"
-#define PROPERTY_CHARPOSTURECOMPLEX "CharPostureComplex"
-#define PROPERTY_CHARWORDMODECOMPLEX "CharWordModeComplex"
-#define PROPERTY_CHARROTATIONCOMPLEX "CharRotationComplex"
-#define PROPERTY_CHARSCALEWIDTHCOMPLEX "CharScaleWidthComplex"
-#define PROPERTY_CHARLOCALECOMPLEX "CharLocaleComplex"
-
-#define PROPERTY_STATUSINDICATOR "StatusIndicator"
-#define PROPERTY_SECTION "Section"
-#define PROPERTY_FILTER "Filter"
-#define PROPERTY_ESCAPEPROCESSING "EscapeProcessing"
-
-#define PROPERTY_MULTILINE "MultiLine"
-#define PROPERTY_ACTIVECONNECTION "ActiveConnection"
-#define PROPERTY_DATASOURCENAME "DataSourceName"
-#define PROPERTY_FORMULA "Formula"
-#define PROPERTY_INITIALFORMULA "InitialFormula"
-#define PROPERTY_PREEVALUATED "PreEvaluated"
-#define PROPERTY_DEEPTRAVERSING "DeepTraversing"
-#define PROPERTY_MIMETYPE "MimeType"
-#define PROPERTY_BACKGROUNDCOLOR "BackgroundColor"
-#define PROPERTY_TEXT "Text"
-#define PROPERTY_TEXTCOLOR "TextColor"
-#define PROPERTY_TEXTLINECOLOR "TextLineColor"
-#define PROPERTY_FONTRELIEF "FontRelief"
-#define PROPERTY_FONTEMPHASISMARK "FontEmphasisMark"
-#define PROPERTY_ZORDER "ZOrder"
-#define PROPERTY_OPAQUE "Opaque"
-#define PROPERTY_TRANSFORMATION "Transformation"
-#define PROPERTY_CUSTOMSHAPEENGINE "CustomShapeEngine"
-#define PROPERTY_CUSTOMSHAPEDATA "CustomShapeData"
-#define PROPERTY_CUSTOMSHAPEGEOMETRY "CustomShapeGeometry"
-
-#define PROPERTY_NUMBERINGTYPE "NumberingType"
-#define PROPERTY_PAGESTYLELAYOUT "PageStyleLayout"
-#define PROPERTY_ISLANDSCAPE "IsLandscape"
-#define PROPERTY_ALIGN "Align"
-#define PROPERTY_TYPE "Type"
-
-#define PROPERTY_PRESERVEIRI "PreserveIRI"
-#define PROPERTY_SCALEMODE "ScaleMode"
-
-#define PROPERTY_LINESTYLE "LineStyle"
-#define PROPERTY_LINEDASH "LineDash"
-#define PROPERTY_LINECOLOR "LineColor"
-#define PROPERTY_LINETRANSPARENCE "LineTransparence"
-#define PROPERTY_LINEWIDTH "LineWidth"
-
-#define PROPERTY_CHARFLASH "CharFlash"
-#define PROPERTY_CHARESCAPEMENTHEIGHT "CharEscapementHeight"
-#define PROPERTY_CHARLOCALE "CharLocale"
-#define PROPERTY_CHARESCAPEMENT "CharEscapement"
-#define PROPERTY_CHARCASEMAP "CharCaseMap"
-#define PROPERTY_CHARCOMBINEISON "CharCombineIsOn"
-#define PROPERTY_CHARCOMBINEPREFIX "CharCombinePrefix"
-#define PROPERTY_CHARCOMBINESUFFIX "CharCombineSuffix"
-#define PROPERTY_CHARHIDDEN "CharHidden"
-#define PROPERTY_CHARSHADOWED "CharShadowed"
-#define PROPERTY_CHARCONTOURED "CharContoured"
-#define PROPERTY_CHARAUTOKERNING "CharAutoKerning"
-#define PROPERTY_CHARKERNING "CharKerning"
-#define PROPERTY_HYPERLINKURL "HyperLinkURL"
-#define PROPERTY_HYPERLINKTARGET "HyperLinkTarget"
-#define PROPERTY_HYPERLINKNAME "HyperLinkName"
-#define PROPERTY_VISITEDCHARSTYLENAME "VisitedCharStyleName"
-#define PROPERTY_UNVISITEDCHARSTYLENAME "UnvisitedCharStyleName"
-#define PROPERTY_ORDER "Order"
-#define PROPERTY_APPLYFILTER "ApplyFilter"
-#define PROPERTY_MAXROWS "MaxRows"
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/inc/uistrings.hrc b/reportdesign/source/inc/uistrings.hrc
deleted file mode 100644
index 4aaca430f215..000000000000
--- a/reportdesign/source/inc/uistrings.hrc
+++ /dev/null
@@ -1,57 +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 REPORTDESIGN_SHARED_UISTRINGS_HRC
-#define REPORTDESIGN_SHARED_UISTRINGS_HRC
-
-#include <rtl/ustring.hxx>
-
-#define STRINGCONSTANTS_INCLUDED_INDIRECT
-#include "stringconstants.hrc"
-#undef STRINGCONSTANTS_INCLUDED_INDIRECT
-
-#define PROPERTY_REPORTNAME "ReportName"
-#define CFG_REPORTDESIGNER "SunReportBuilder"
-#define DBREPORTHEADER "ReportHeader"
-#define DBREPORTFOOTER "ReportFooter"
-#define DBPAGEHEADER "PageHeader"
-#define DBPAGEFOOTER "PageFooter"
-#define DBGROUPHEADER "GroupHeader"
-#define DBGROUPFOOTER "GroupFooter"
-#define DBDETAIL "Detail"
-#define REPORTCONTROLFORMAT "ReportControlFormat"
-#define CURRENT_WINDOW "CurrentWindow"
-#define PROPERTY_FONTCOLOR "FontColor"
-#define PROPERTY_EMPTY_IS_NULL "ConvertEmptyToNull"
-#define PROPERTY_FILTERPROPOSAL "UseFilterValueProposal"
-#define PROPERTY_POSITION "Position"
-#define PROPERTY_FORMATKEYDATE "FormatKeyDate"
-#define PROPERTY_FORMATKEYTIME "FormatKeyTime"
-#define DBOVERLAPPEDCONTROL "OverlappedControl"
-#define PROPERTY_FORMULALIST "FormulaList"
-#define PROPERTY_SCOPE "Scope"
-#define PROPERTY_CHARTTYPE "ChartType"
-#define PROPERTY_PREVIEW_COUNT "RowLimit"
-#define PROPERTY_TITLE "Title"
-#define PROPERTY_AREA "Area"
-#define PROPERTY_FILLCOLOR "FillColor"
-#define DBTEXTBOXBOUNDCONTENT "TextBoxBoundContent"
-
-#endif // REPORTDESIGN_SHARED_UISTRINGS_HRC
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/inc/xmlstrings.hrc b/reportdesign/source/inc/xmlstrings.hrc
deleted file mode 100644
index ab0082a40dc1..000000000000
--- a/reportdesign/source/inc/xmlstrings.hrc
+++ /dev/null
@@ -1,42 +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 REPORTDESIGN_SHARED_XMLSTRINGS_HRC
-#define REPORTDESIGN_SHARED_XMLSTRINGS_HRC
-
-#include <rtl/ustring.hxx>
-
-#define STRINGCONSTANTS_INCLUDED_INDIRECT
-#include "stringconstants.hrc"
-#undef STRINGCONSTANTS_INCLUDED_INDIRECT
-
-//= XML
-
-#define SERVICE_SETTINGSIMPORTER "com.sun.star.comp.Report.XMLOasisSettingsImporter"
-#define SERVICE_STYLESIMPORTER "com.sun.star.comp.Report.XMLOasisStylesImporter"
-#define SERVICE_CONTENTIMPORTER "com.sun.star.comp.Report.XMLOasisContentImporter"
-#define SERVICE_IMPORTFILTER "com.sun.star.document.ImportFilter"
-#define SERVICE_METAIMPORTER "com.sun.star.comp.Report.XMLOasisMetaImporter"
-#define PROPERTY_BORDERLEFT "BorderLeft"
-#define PROPERTY_BORDERRIGHT "BorderRight"
-#define PROPERTY_BORDERTOP "BorderTop"
-#define PROPERTY_BORDERBOTTOM "BorderBottom"
-
-#endif // REPORTDESIGN_SHARED_XMLSTRINGS_HRC
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/ui/dlg/AddField.cxx b/reportdesign/source/ui/dlg/AddField.cxx
index 4d89af8070e7..2092c538a2ee 100644
--- a/reportdesign/source/ui/dlg/AddField.cxx
+++ b/reportdesign/source/ui/dlg/AddField.cxx
@@ -33,10 +33,10 @@
#include "rptui_slotid.hrc"
#include <connectivity/dbtools.hxx>
+#include "core_resource.hxx"
#include "helpids.hrc"
-#include "RptResId.hrc"
-#include "ModuleHelper.hxx"
-#include "uistrings.hrc"
+#include "strings.hrc"
+#include "strings.hxx"
#include "ColumnInfo.hxx"
#include <comphelper/property.hxx>
@@ -320,7 +320,7 @@ void OAddFieldWindow::Update()
m_aActions->EnableItem(m_aActions->GetItemId(j),false);
}
- OUString aTitle(ModuleRes(RID_STR_FIELDSELECTION));
+ OUString aTitle(RptResId(RID_STR_FIELDSELECTION));
SetText(aTitle);
if ( m_xRowSet.is() )
{
diff --git a/reportdesign/source/ui/dlg/CondFormat.cxx b/reportdesign/source/ui/dlg/CondFormat.cxx
index 0a3b665085f5..3ac4e1581c24 100644
--- a/reportdesign/source/ui/dlg/CondFormat.cxx
+++ b/reportdesign/source/ui/dlg/CondFormat.cxx
@@ -19,10 +19,10 @@
#include "CondFormat.hxx"
-#include "uistrings.hrc"
-#include "RptResId.hrc"
+#include "strings.hxx"
+#include "strings.hrc"
#include "rptui_slotid.hrc"
-#include "ModuleHelper.hxx"
+#include "core_resource.hxx"
#include "helpids.hrc"
#include "UITools.hxx"
#include "ReportController.hxx"
@@ -434,7 +434,7 @@ namespace rptui
short nRet = ModalDialog::Execute();
if ( nRet == RET_OK )
{
- const OUString sUndoAction( ModuleRes( RID_STR_UNDO_CONDITIONAL_FORMATTING ) );
+ const OUString sUndoAction( RptResId( RID_STR_UNDO_CONDITIONAL_FORMATTING ) );
const UndoContext aUndoContext( m_rController.getUndoManager(), sUndoAction );
try
{
diff --git a/reportdesign/source/ui/dlg/CondFormat.src b/reportdesign/source/ui/dlg/CondFormat.src
deleted file mode 100644
index ecf70cae59fd..000000000000
--- a/reportdesign/source/ui/dlg/CondFormat.src
+++ /dev/null
@@ -1,28 +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 "RptResId.hrc"
-#include "helpids.hrc"
-#include "rptui_slotid.hrc"
-
-String STR_NUMBERED_CONDITION
-{
- Text [ en-US ] = "Condition $number$";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx
index f93326f6eaec..fcec991d2348 100644
--- a/reportdesign/source/ui/dlg/Condition.cxx
+++ b/reportdesign/source/ui/dlg/Condition.cxx
@@ -20,9 +20,9 @@
#include "Condition.hxx"
#include "UITools.hxx"
#include "CondFormat.hxx"
-#include "RptResId.hrc"
+#include "core_resource.hxx"
+#include "strings.hrc"
#include "ReportController.hxx"
-#include "ModuleHelper.hxx"
#include "ColorChanger.hxx"
#include "helpids.hrc"
#include "reportformula.hxx"
@@ -445,7 +445,7 @@ void Condition::fillFormatCondition(const uno::Reference< report::XFormatConditi
void Condition::setConditionIndex( size_t _nCondIndex, size_t _nCondCount )
{
m_nCondIndex = _nCondIndex;
- OUString sHeader( ModuleRes( STR_NUMBERED_CONDITION ) );
+ OUString sHeader( RptResId( STR_NUMBERED_CONDITION ) );
sHeader = sHeader.replaceFirst( "$number$", OUString::number( _nCondIndex + 1) );
m_pHeader->SetText( sHeader );
diff --git a/reportdesign/source/ui/dlg/DateTime.cxx b/reportdesign/source/ui/dlg/DateTime.cxx
index 8c72bb98375b..7e5639e6cd34 100644
--- a/reportdesign/source/ui/dlg/DateTime.cxx
+++ b/reportdesign/source/ui/dlg/DateTime.cxx
@@ -18,16 +18,15 @@
*/
#include "DateTime.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "rptui_slotid.hrc"
-#include "ModuleHelper.hxx"
#include "helpids.hrc"
#include <vcl/msgbox.hxx>
#include <connectivity/dbconversion.hxx>
#include <unotools/syslocale.hxx>
#include "UITools.hxx"
#include "RptDef.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "ReportController.hxx"
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/util/NumberFormat.hpp>
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index 50bd4d4c31b8..5bd6b8b632a9 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -26,14 +26,14 @@
#include <com/sun/star/report/GroupOn.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "rptui_slotid.hrc"
-#include "ModuleHelper.hxx"
+#include "core_resource.hxx"
#include "helpids.hrc"
#include "GroupExchange.hxx"
#include "UITools.hxx"
#include "UndoActions.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "ReportController.hxx"
#include "ColumnInfo.hxx"
@@ -318,7 +318,7 @@ void OFieldExpressionControl::moveGroups(const uno::Sequence<uno::Any>& _aGroups
m_bIgnoreEvent = true;
{
sal_Int32 nRow = _nRow;
- const OUString sUndoAction(ModuleRes(RID_STR_UNDO_MOVE_GROUP));
+ const OUString sUndoAction(RptResId(RID_STR_UNDO_MOVE_GROUP));
const UndoContext aUndoContext( m_pParent->m_pController->getUndoManager(), sUndoAction );
uno::Reference< report::XGroups> xGroups = m_pParent->getGroups();
@@ -379,7 +379,7 @@ void OFieldExpressionControl::lateInit()
SetFont(aFont);
InsertHandleColumn(static_cast<sal_uInt16>(GetTextWidth(OUString('0')) * 4)/*, sal_True */);
- InsertDataColumn( FIELD_EXPRESSION, OUString(ModuleRes(STR_RPT_EXPRESSION)), 100);
+ InsertDataColumn( FIELD_EXPRESSION, RptResId(STR_RPT_EXPRESSION), 100);
m_pComboCell = VclPtr<ComboBoxControl>::Create( &GetDataWindow() );
m_pComboCell->SetSelectHdl(LINK(this,OFieldExpressionControl,CBChangeHdl));
@@ -430,7 +430,7 @@ bool OFieldExpressionControl::SaveModified()
if ( m_aGroupPositions[nRow] == NO_GROUP )
{
bAppend = true;
- OUString sUndoAction(ModuleRes(RID_STR_UNDO_APPEND_GROUP));
+ OUString sUndoAction(RptResId(RID_STR_UNDO_APPEND_GROUP));
m_pParent->m_pController->getUndoManager().EnterListAction( sUndoAction, OUString(), 0, ViewShellId(-1) );
xGroup = m_pParent->getGroups()->createGroup();
xGroup->setHeaderOn(true);
@@ -756,7 +756,7 @@ void OFieldExpressionControl::DeleteRows()
if ( bFirstTime )
{
bFirstTime = false;
- OUString sUndoAction(ModuleRes(RID_STR_UNDO_REMOVE_SELECTION));
+ OUString sUndoAction(RptResId(RID_STR_UNDO_REMOVE_SELECTION));
m_pParent->m_pController->getUndoManager().EnterListAction( sUndoAction, OUString(), 0, ViewShellId(-1) );
}
@@ -972,10 +972,18 @@ IMPL_LINK(OGroupsSortingDialog, OnControlFocusGot, Control&, rControl, void )
{
if ( m_pFieldExpression && m_pFieldExpression->getExpressionControl() )
{
- Control* pControls[] = { m_pFieldExpression->getExpressionControl(), m_pHeaderLst, m_pFooterLst, m_pGroupOnLst, m_pGroupIntervalEd, m_pKeepTogetherLst, m_pOrderLst};
+ const std::pair<Control*, const char*> pControls[] = {
+ { m_pFieldExpression->getExpressionControl(), STR_RPT_HELP_FIELD },
+ { m_pHeaderLst, STR_RPT_HELP_HEADER },
+ { m_pFooterLst, STR_RPT_HELP_FOOTER },
+ { m_pGroupOnLst, STR_RPT_HELP_GROUPON },
+ { m_pGroupIntervalEd, STR_RPT_HELP_INTERVAL },
+ { m_pKeepTogetherLst, STR_RPT_HELP_KEEP },
+ { m_pOrderLst, STR_RPT_HELP_SORT }
+ };
for (size_t i = 0; i < SAL_N_ELEMENTS(pControls); ++i)
{
- if ( &rControl == pControls[i] )
+ if (&rControl == pControls[i].first)
{
ListBox* pListBox = dynamic_cast< ListBox* >( &rControl );
if ( pListBox )
@@ -984,7 +992,7 @@ IMPL_LINK(OGroupsSortingDialog, OnControlFocusGot, Control&, rControl, void )
if ( pNumericField )
pNumericField->SaveValue();
//shows the text given by the id in the multiline edit
- m_pHelpWindow->SetText(OUString(ModuleRes(static_cast<sal_uInt16>(i+STR_RPT_HELP_FIELD))));
+ m_pHelpWindow->SetText(RptResId(pControls[i].second));
break;
}
}
@@ -1106,23 +1114,23 @@ void OGroupsSortingDialog::displayGroup(const uno::Reference<report::XGroup>& _x
case sdbc::DataType::LONGVARCHAR:
case sdbc::DataType::VARCHAR:
case sdbc::DataType::CHAR:
- m_pGroupOnLst->InsertEntry(OUString(ModuleRes(STR_RPT_PREFIXCHARS)));
+ m_pGroupOnLst->InsertEntry(RptResId(STR_RPT_PREFIXCHARS));
m_pGroupOnLst->SetEntryData(1,reinterpret_cast<void*>(report::GroupOn::PREFIX_CHARACTERS));
break;
case sdbc::DataType::DATE:
case sdbc::DataType::TIME:
case sdbc::DataType::TIMESTAMP:
{
- const sal_uInt16 nIds[] = { STR_RPT_YEAR, STR_RPT_QUARTER,STR_RPT_MONTH,STR_RPT_WEEK,STR_RPT_DAY,STR_RPT_HOUR,STR_RPT_MINUTE };
- for (sal_uInt16 i = 0; i < SAL_N_ELEMENTS(nIds); ++i)
+ const char* aIds[] = { STR_RPT_YEAR, STR_RPT_QUARTER,STR_RPT_MONTH,STR_RPT_WEEK,STR_RPT_DAY,STR_RPT_HOUR,STR_RPT_MINUTE };
+ for (sal_uInt16 i = 0; i < SAL_N_ELEMENTS(aIds); ++i)
{
- m_pGroupOnLst->InsertEntry(OUString(ModuleRes(nIds[i])));
+ m_pGroupOnLst->InsertEntry(RptResId(aIds[i]));
m_pGroupOnLst->SetEntryData(i+1,reinterpret_cast<void*>(i+2));
}
}
break;
default:
- m_pGroupOnLst->InsertEntry(OUString(ModuleRes(STR_RPT_INTERVAL)));
+ m_pGroupOnLst->InsertEntry(RptResId(STR_RPT_INTERVAL));
m_pGroupOnLst->SetEntryData(1,reinterpret_cast<void*>(report::GroupOn::INTERVAL));
break;
}
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.src b/reportdesign/source/ui/dlg/GroupsSorting.src
deleted file mode 100644
index 9ae6ebda573a..000000000000
--- a/reportdesign/source/ui/dlg/GroupsSorting.src
+++ /dev/null
@@ -1,108 +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 "RptResId.hrc"
-#include "helpids.hrc"
-#include <svx/svxids.hrc>
-
-String STR_RPT_EXPRESSION
-{
- Text [ en-US ] = "Field/Expression" ;
-};
-
-String STR_RPT_PREFIXCHARS
-{
- Text [ en-US ] = "Prefix Characters" ;
-};
-
-String STR_RPT_YEAR
-{
- Text [ en-US ] = "Year" ;
-};
-
-String STR_RPT_QUARTER
-{
- Text [ en-US ] = "Quarter" ;
-};
-
-String STR_RPT_MONTH
-{
- Text [ en-US ] = "Month" ;
-};
-
-String STR_RPT_WEEK
-{
- Text [ en-US ] = "Week" ;
-};
-
-String STR_RPT_DAY
-{
- Text [ en-US ] = "Day" ;
-};
-
-String STR_RPT_HOUR
-{
- Text [ en-US ] = "Hour" ;
-};
-
-String STR_RPT_MINUTE
-{
- Text [ en-US ] = "Minute" ;
-};
-
-String STR_RPT_INTERVAL
-{
- Text [ en-US ] = "Interval" ;
-};
-
-String STR_RPT_HELP_FIELD
-{
- Text [ en-US ] = "Select a field or type an expression to sort or group on." ;
-};
-
-String STR_RPT_HELP_HEADER
-{
- Text [ en-US ] = "Display a header for this group?" ;
-};
-
-String STR_RPT_HELP_FOOTER
-{
- Text [ en-US ] = "Display a footer for this group?" ;
-};
-
-String STR_RPT_HELP_GROUPON
-{
- Text [ en-US ] = "Select the value or range of values that starts a new group." ;
-};
-
-String STR_RPT_HELP_INTERVAL
-{
- Text [ en-US ] = "Interval or number of characters to group on." ;
-};
-
-String STR_RPT_HELP_KEEP
-{
- Text [ en-US ] = "Keep group together on one page?" ;
-};
-
-String STR_RPT_HELP_SORT
-{
- Text [ en-US ] = "Select ascending or descending sort order. Ascending means from A to Z or 0 to 9" ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx
index 4d1b2d745925..cdefb2f4bd25 100644
--- a/reportdesign/source/ui/dlg/Navigator.cxx
+++ b/reportdesign/source/ui/dlg/Navigator.cxx
@@ -19,7 +19,7 @@
#include "Navigator.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "bitmaps.hlst"
#include "ReportController.hxx"
#include "UITools.hxx"
@@ -33,7 +33,7 @@
#include <com/sun/star/report/XImageControl.hpp>
#include <com/sun/star/report/XShape.hpp>
#include "helpids.hrc"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "rptui_slotid.hrc"
#include <comphelper/propmultiplex.hxx>
#include <comphelper/containermultiplexer.hxx>
@@ -44,7 +44,7 @@
#include <svtools/treelistentry.hxx>
#include <svl/solar.hrc>
#include "ReportVisitor.hxx"
-#include "ModuleHelper.hxx"
+#include "core_resource.hxx"
#include <rtl/ref.hxx>
#include <memory>
@@ -552,7 +552,7 @@ void NavigatorTree::traverseSection(const uno::Reference< report::XSection>& _xS
void NavigatorTree::traverseFunctions(const uno::Reference< report::XFunctions>& _xFunctions,SvTreeListEntry* _pParent)
{
- SvTreeListEntry* pFunctions = insertEntry(OUString(ModuleRes(RID_STR_FUNCTIONS)), _pParent, RID_SVXBMP_RPT_NEW_FUNCTION, TREELIST_APPEND, new UserData(this,_xFunctions));
+ SvTreeListEntry* pFunctions = insertEntry(RptResId(RID_STR_FUNCTIONS), _pParent, RID_SVXBMP_RPT_NEW_FUNCTION, TREELIST_APPEND, new UserData(this,_xFunctions));
const sal_Int32 nCount = _xFunctions->getCount();
for (sal_Int32 i = 0; i< nCount; ++i)
{
@@ -622,7 +622,7 @@ void NavigatorTree::traversePageFooter(const uno::Reference< report::XSection>&
void NavigatorTree::traverseGroups(const uno::Reference< report::XGroups>& _xGroups)
{
SvTreeListEntry* pReport = find(_xGroups->getReportDefinition());
- insertEntry(OUString(ModuleRes(RID_STR_GROUPS)), pReport, RID_SVXBMP_SORTINGANDGROUPING, TREELIST_APPEND, new UserData(this,_xGroups));
+ insertEntry(RptResId(RID_STR_GROUPS), pReport, RID_SVXBMP_SORTINGANDGROUPING, TREELIST_APPEND, new UserData(this,_xGroups));
}
void NavigatorTree::traverseGroup(const uno::Reference< report::XGroup>& _xGroup)
diff --git a/reportdesign/source/ui/dlg/Navigator.src b/reportdesign/source/ui/dlg/Navigator.src
deleted file mode 100644
index c0caf74d1dad..000000000000
--- a/reportdesign/source/ui/dlg/Navigator.src
+++ /dev/null
@@ -1,35 +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 "RptResId.hrc"
-#include "helpids.hrc"
-#include "rptui_slotid.hrc"
-#include <svx/svxids.hrc>
-#include <svl/solar.hrc>
-
-String RID_STR_FUNCTIONS
-{
- Text [ en-US ] = "Functions" ;
-};
-
-String RID_STR_GROUPS
-{
- Text [ en-US ] = "Groups" ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/ui/dlg/PageNumber.cxx b/reportdesign/source/ui/dlg/PageNumber.cxx
index cbe3fe9a7ef6..184b8040e390 100644
--- a/reportdesign/source/ui/dlg/PageNumber.cxx
+++ b/reportdesign/source/ui/dlg/PageNumber.cxx
@@ -18,16 +18,15 @@
*/
#include "PageNumber.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "rptui_slotid.hrc"
-#include "ModuleHelper.hxx"
#include "RptDef.hxx"
#include "helpids.hrc"
#include <vcl/msgbox.hxx>
#include <vcl/settings.hxx>
#include "UITools.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "ReportController.hxx"
#include <comphelper/propertysequence.hxx>
#include <algorithm>
diff --git a/reportdesign/source/ui/dlg/PageNumber.src b/reportdesign/source/ui/dlg/PageNumber.src
deleted file mode 100644
index be120f608e77..000000000000
--- a/reportdesign/source/ui/dlg/PageNumber.src
+++ /dev/null
@@ -1,34 +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 "RptResId.hrc"
-#include "helpids.hrc"
-#include <svx/svxids.hrc>
-
-String STR_RPT_PN_PAGE
-{
- Text [ en-US ] = "\"Page \" & #PAGENUMBER#" ;
- Text [ x-comment ] = "The space after the word is no error. #PAGENUMBER# is a replacement and & must not be translated as well as \"";
-};
-String STR_RPT_PN_PAGE_OF
-{
- Text [ en-US ] = " & \" of \" & #PAGECOUNT#" ;
- Text [ x-comment ] = "The space before and after the word is no error. #PAGECOUNT# is a replacement and & must not be translated as well as \"";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/ui/dlg/dlgpage.cxx b/reportdesign/source/ui/dlg/dlgpage.cxx
index 2651ef18bd59..5bb8c376f1c5 100644
--- a/reportdesign/source/ui/dlg/dlgpage.cxx
+++ b/reportdesign/source/ui/dlg/dlgpage.cxx
@@ -23,8 +23,7 @@
#include <svx/svxdlg.hxx>
#include <editeng/svxenum.hxx>
#include "dlgpage.hxx"
-#include "ModuleHelper.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include <svl/intitem.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/aeitem.hxx>
diff --git a/reportdesign/source/ui/inc/ColorListener.hxx b/reportdesign/source/ui/inc/ColorListener.hxx
index 6b6aea5ee854..6150a14c4924 100644
--- a/reportdesign/source/ui/inc/ColorListener.hxx
+++ b/reportdesign/source/ui/inc/ColorListener.hxx
@@ -22,7 +22,6 @@
#include <vcl/window.hxx>
#include <svtools/colorcfg.hxx>
#include <svtools/extcolorcfg.hxx>
-#include "ModuleHelper.hxx"
#include <tools/link.hxx>
namespace rptui
@@ -32,7 +31,6 @@ namespace rptui
OColorListener(const OColorListener&) = delete;
void operator =(const OColorListener&) = delete;
protected:
- OModuleClient m_aModuleClient;
Link<OColorListener&,void> m_aCollapsedLink;
svtools::ColorConfig m_aColorConfig;
svtools::ExtendedColorConfig m_aExtendedColorConfig;
diff --git a/reportdesign/source/ui/inc/CondFormat.hxx b/reportdesign/source/ui/inc/CondFormat.hxx
index 9f1daeacc9f2..0118fe54eac1 100644
--- a/reportdesign/source/ui/inc/CondFormat.hxx
+++ b/reportdesign/source/ui/inc/CondFormat.hxx
@@ -20,8 +20,6 @@
#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_CONDFORMAT_HXX
#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_CONDFORMAT_HXX
-#include "ModuleHelper.hxx"
-
#include <com/sun/star/report/XReportControlModel.hpp>
#include <vcl/dialog.hxx>
@@ -69,7 +67,6 @@ namespace rptui
{
typedef ::std::vector< VclPtr<Condition> > Conditions;
- OModuleClient m_aModuleClient;
VclPtr<vcl::Window> m_pConditionPlayground;
Conditions m_aConditions;
VclPtr<VclScrolledWindow> m_pScrollWindow;
diff --git a/reportdesign/source/ui/inc/GeometryHandler.hxx b/reportdesign/source/ui/inc/GeometryHandler.hxx
index ff2bd78f92ec..58e1270a974e 100644
--- a/reportdesign/source/ui/inc/GeometryHandler.hxx
+++ b/reportdesign/source/ui/inc/GeometryHandler.hxx
@@ -90,12 +90,12 @@ namespace rptui
*/
sal_uInt32 impl_getDataFieldType_throw(const OUString& _sDataField = OUString()) const;
- css::uno::Any getConstantValue(bool bToControlValue,sal_uInt16 nResId,const css::uno::Any& _aValue,const OUString& _sConstantName,const OUString & PropertyName );
+ css::uno::Any getConstantValue(bool bToControlValue,const char** pResId,const css::uno::Any& _aValue,const OUString& _sConstantName,const OUString & PropertyName );
css::beans::Property getProperty(const OUString & PropertyName);
static void implCreateListLikeControl(
const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory
,css::inspection::LineDescriptor & out_Descriptor
- ,sal_uInt16 _nResId
+ ,const char** pResId
,bool _bReadOnlyControl
,bool _bTrueIfListBoxFalseIfComboBox
);
diff --git a/reportdesign/source/ui/inc/Navigator.hxx b/reportdesign/source/ui/inc/Navigator.hxx
index 29f6e28f4c33..43550c9f3929 100644
--- a/reportdesign/source/ui/inc/Navigator.hxx
+++ b/reportdesign/source/ui/inc/Navigator.hxx
@@ -20,7 +20,6 @@
#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_NAVIGATOR_HXX
#include <vcl/floatwin.hxx>
-#include "ModuleHelper.hxx"
#include <memory>
namespace rptui
{
@@ -28,7 +27,6 @@ namespace rptui
class ONavigatorImpl;
class ONavigator : public FloatingWindow
{
- OModuleClient m_aModuleClient;
::std::unique_ptr<ONavigatorImpl> m_pImpl;
ONavigator(const ONavigator&) = delete;
void operator =(const ONavigator&) = delete;
diff --git a/reportdesign/source/ui/inc/ReportController.hxx b/reportdesign/source/ui/inc/ReportController.hxx
index 499372f6a5df..55f952147e6b 100644
--- a/reportdesign/source/ui/inc/ReportController.hxx
+++ b/reportdesign/source/ui/inc/ReportController.hxx
@@ -20,7 +20,6 @@
#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_REPORTCONTROLLER_HXX
#include "DesignView.hxx"
-#include "ModuleHelper.hxx"
#include "ReportControllerObserver.hxx"
#include "RptDef.hxx"
@@ -83,7 +82,6 @@ namespace rptui
,public ::comphelper::OPropertyArrayUsageHelper < OReportController_BASE >
{
private:
- OModuleClient m_aModuleClient;
::comphelper::OInterfaceContainerHelper2
m_aSelectionListeners;
css::uno::Sequence< css::beans::PropertyValue>
@@ -201,20 +199,20 @@ namespace rptui
,sal_Int32 _nGroupPos
,bool _bShow);
- void executeMethodWithUndo(sal_uInt16 _nUndoStrId,const ::std::mem_fun_t<void,ODesignView>& _pMemfun);
- void alignControlsWithUndo(sal_uInt16 _nUndoStrId, ControlModification _nControlModification, bool _bAlignAtSection = false);
+ void executeMethodWithUndo(const char* pUndoStrId,const ::std::mem_fun_t<void,ODesignView>& _pMemfun);
+ void alignControlsWithUndo(const char* pUndoStrId, ControlModification _nControlModification, bool _bAlignAtSection = false);
css::uno::Reference< css::frame::XFrame > getXFrame();
/** shrink a section
- @param _nUndoStrId the string id of the string which is shown in undo menu
+ @param pUndoStrId the string id of the string which is shown in undo menu
@param _nShrinkId ID of what you would like to shrink.
*/
static void shrinkSectionBottom(const css::uno::Reference< css::report::XSection >& _xSection);
static void shrinkSectionTop(const css::uno::Reference< css::report::XSection >& _xSection);
public:
- void shrinkSection(sal_uInt16 _nUndoStrId, const css::uno::Reference< css::report::XSection >& _xSection, sal_Int32 _nShrinkId);
+ void shrinkSection(const char* pUndoStrId, const css::uno::Reference< css::report::XSection >& _xSection, sal_Int32 _nShrinkId);
/** opens the file open dialog to allow the user to select a image which will be
* bound to a newly created image button.
@@ -299,7 +297,7 @@ namespace rptui
/** set the property at all selected controls.
@return <TRUE/> when the selection is not empty
*/
- bool impl_setPropertyAtControls_throw(const sal_uInt16 _nUndoResId
+ bool impl_setPropertyAtControls_throw(const char* pUndoResId
,const OUString& _sProperty
,const css::uno::Any& _aValue
,const css::uno::Sequence< css::beans::PropertyValue >& _aArgs);
diff --git a/reportdesign/source/ui/inc/RptUndo.hxx b/reportdesign/source/ui/inc/RptUndo.hxx
index 50374e4dcb97..e9f03e722470 100644
--- a/reportdesign/source/ui/inc/RptUndo.hxx
+++ b/reportdesign/source/ui/inc/RptUndo.hxx
@@ -54,7 +54,7 @@ namespace rptui
OSectionUndo( OReportModel& rMod
,sal_uInt16 _nSlot
,Action _eAction
- ,sal_uInt16 nCommentID);
+ ,const char* pCommentID);
virtual ~OSectionUndo() override;
virtual void Undo() override;
@@ -106,7 +106,7 @@ namespace rptui
,OGroupHelper> _pMemberFunction
,const css::uno::Reference< css::report::XGroup >& _xGroup
,Action _eAction
- ,sal_uInt16 nCommentID);
+ ,const char* pCommentID);
virtual OUString GetComment() const override;
};
@@ -125,7 +125,7 @@ namespace rptui
void implReRemove( );
public:
OGroupUndo(OReportModel& rMod
- ,sal_uInt16 nCommentID
+ ,const char* pCommentID
,Action _eAction
,const css::uno::Reference< css::report::XGroup>& _xGroup
,const css::uno::Reference< css::report::XReportDefinition >& _xReportDefinition);
diff --git a/reportdesign/source/ui/inc/SectionWindow.hxx b/reportdesign/source/ui/inc/SectionWindow.hxx
index fefc2d7d5ac2..cafca76a2551 100644
--- a/reportdesign/source/ui/inc/SectionWindow.hxx
+++ b/reportdesign/source/ui/inc/SectionWindow.hxx
@@ -66,7 +66,7 @@ namespace rptui
* \param _pIsSectionOn
* @return sal_True when title was set otherwise FALSE
*/
- bool setGroupSectionTitle(const css::uno::Reference< css::report::XGroup>& _xGroup,sal_uInt16 _nResId,::std::mem_fun_t< css::uno::Reference< css::report::XSection> , OGroupHelper> _pGetSection, const ::std::mem_fun_t<bool, OGroupHelper>& _pIsSectionOn);
+ bool setGroupSectionTitle(const css::uno::Reference< css::report::XGroup>& _xGroup,const char* pResId,::std::mem_fun_t< css::uno::Reference< css::report::XSection> , OGroupHelper> _pGetSection, const ::std::mem_fun_t<bool, OGroupHelper>& _pIsSectionOn);
/** set the title of the (report/page) header or footer
*
@@ -76,7 +76,7 @@ namespace rptui
* \param _pIsSectionOn
* @return sal_True when title was set otherwise FALSE
*/
- bool setReportSectionTitle(const css::uno::Reference< css::report::XReportDefinition>& _xReport,sal_uInt16 _nResId,::std::mem_fun_t< css::uno::Reference< css::report::XSection> , OReportHelper> _pGetSection, const ::std::mem_fun_t<bool, OReportHelper>& _pIsSectionOn);
+ bool setReportSectionTitle(const css::uno::Reference< css::report::XReportDefinition>& _xReport,const char* pResId,::std::mem_fun_t< css::uno::Reference< css::report::XSection> , OReportHelper> _pGetSection, const ::std::mem_fun_t<bool, OReportHelper>& _pIsSectionOn);
void ImplInitSettings();
DECL_LINK(Collapsed, OColorListener&, void);
diff --git a/reportdesign/source/ui/inc/metadata.hxx b/reportdesign/source/ui/inc/metadata.hxx
index c9e0e6a3e989..812a4bc0c9f0 100644
--- a/reportdesign/source/ui/inc/metadata.hxx
+++ b/reportdesign/source/ui/inc/metadata.hxx
@@ -19,11 +19,10 @@
#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_METADATA_HXX
#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_METADATA_HXX
-#include "ModuleHelper.hxx"
-
#include <com/sun/star/beans/Property.hpp>
#include <com/sun/star/inspection/XPropertyHandler.hpp>
#include <o3tl/typed_flags_set.hxx>
+#include <vector>
//= UI flags (for all browseable properties)
enum class PropUIFlags {
@@ -47,7 +46,6 @@ namespace rptui
//= OPropertyInfoService
class OPropertyInfoService
- :public OModuleClient
{
OPropertyInfoService(const OPropertyInfoService&) = delete;
void operator =(const OPropertyInfoService&) = delete;
diff --git a/reportdesign/source/ui/inc/propbrw.hxx b/reportdesign/source/ui/inc/propbrw.hxx
index e205d41e19b4..6d4c6351704a 100644
--- a/reportdesign/source/ui/inc/propbrw.hxx
+++ b/reportdesign/source/ui/inc/propbrw.hxx
@@ -29,7 +29,6 @@
#include <svl/lstner.hxx>
#include <vcl/dockwin.hxx>
#include <svx/svdmark.hxx>
-#include "ModuleHelper.hxx"
namespace rptui
{
@@ -44,7 +43,6 @@ class OObjectBase;
class PropBrw : public DockingWindow , public SfxListener, public SfxBroadcaster
{
private:
- OModuleClient m_aModuleClient;
css::uno::Reference< css::uno::XComponentContext >
m_xInspectorContext;
css::uno::Reference< css::uno::XComponentContext >
diff --git a/reportdesign/source/ui/inspection/DataProviderHandler.cxx b/reportdesign/source/ui/inspection/DataProviderHandler.cxx
index 3eba1fced3e4..b7eec893da1c 100644
--- a/reportdesign/source/ui/inspection/DataProviderHandler.cxx
+++ b/reportdesign/source/ui/inspection/DataProviderHandler.cxx
@@ -22,7 +22,7 @@
#include <comphelper/property.hxx>
#include <comphelper/types.hxx>
#include <cppuhelper/supportsservice.hxx>
-#include "uistrings.hrc"
+#include "strings.hxx"
#include <toolkit/helper/vclunohelper.hxx>
#include <unotools/syslocale.hxx>
#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
@@ -47,8 +47,9 @@
#include "metadata.hxx"
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
+#include "core_resource.hxx"
#include "helpids.hrc"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "PropertyForward.hxx"
namespace rptui
@@ -495,13 +496,13 @@ bool DataProviderHandler::impl_dialogLinkedFields_nothrow( ::osl::ClearableMutex
aSeq[2] <<= aParam;
aParam.Name = "Explanation";
- aParam.Value <<= OUString(ModuleRes(RID_STR_EXPLANATION));
+ aParam.Value <<= RptResId(RID_STR_EXPLANATION);
aSeq[3] <<= aParam;
aParam.Name = "DetailLabel";
- aParam.Value <<= OUString(ModuleRes(RID_STR_DETAILLABEL));
+ aParam.Value <<= RptResId(RID_STR_DETAILLABEL);
aSeq[4] <<= aParam;
aParam.Name = "MasterLabel";
- aParam.Value <<= OUString(ModuleRes(RID_STR_MASTERLABEL));
+ aParam.Value <<= RptResId(RID_STR_MASTERLABEL);
aSeq[5] <<= aParam;
uno::Reference< ui::dialogs::XExecutableDialog > xDialog(
diff --git a/reportdesign/source/ui/inspection/DefaultInspection.cxx b/reportdesign/source/ui/inspection/DefaultInspection.cxx
index 72ccc2b5211b..b832c74bc759 100644
--- a/reportdesign/source/ui/inspection/DefaultInspection.cxx
+++ b/reportdesign/source/ui/inspection/DefaultInspection.cxx
@@ -19,8 +19,8 @@
#include "DefaultInspection.hxx"
#include <com/sun/star/ucb/AlreadyInitializedException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <RptResId.hrc>
-#include "ModuleHelper.hxx"
+#include <strings.hrc>
+#include "core_resource.hxx"
#include "helpids.hrc"
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
@@ -201,7 +201,7 @@ namespace rptui
const struct
{
const sal_Char* programmaticName;
- sal_uInt16 uiNameResId;
+ const char* uiNameResId;
OString helpId;
} aCategories[] = {
{ "General", RID_STR_PROPPAGE_DEFAULT, HID_RPT_PROPDLG_TAB_GENERAL },
@@ -214,7 +214,7 @@ namespace rptui
for ( size_t i=0; i<nCategories; ++i, ++pReturn )
{
pReturn->ProgrammaticName = OUString::createFromAscii( aCategories[i].programmaticName );
- pReturn->UIName = ModuleRes( aCategories[i].uiNameResId );
+ pReturn->UIName = RptResId( aCategories[i].uiNameResId );
pReturn->HelpURL = HelpIdUrl::getHelpURL( aCategories[i].helpId );
}
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index c865a1293f8b..0b409b0a5767 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -29,7 +29,7 @@
#include <comphelper/mimeconfighelper.hxx>
#include <cppuhelper/supportsservice.hxx>
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "reportformula.hxx"
#include <i18nutil/searchopt.hxx>
@@ -69,8 +69,9 @@
#include <tools/fldunit.hxx>
#include <vcl/stdtext.hxx>
-#include "ModuleHelper.hxx"
-#include "RptResId.hrc"
+#include "core_resource.hxx"
+#include "stringarray.hrc"
+#include "strings.hrc"
#include "RptDef.hxx"
#include "UITools.hxx"
@@ -668,16 +669,14 @@ beans::PropertyState SAL_CALL GeometryHandler::getPropertyState(const OUString &
void GeometryHandler::implCreateListLikeControl(
const uno::Reference< inspection::XPropertyControlFactory >& _rxControlFactory
,inspection::LineDescriptor & out_Descriptor
- ,sal_uInt16 _nResId
+ ,const char** pResId
,bool _bReadOnlyControl
,bool _bTrueIfListBoxFalseIfComboBox
)
{
- ModuleRes aRes(_nResId);
- ResStringArray aResList(aRes);
std::vector<OUString> aList;
- for (sal_uInt32 i = 0; i < aResList.Count(); ++i)
- aList.push_back(aResList.GetString(i));
+ for (const char** pItem = pResId; *pItem; ++pItem)
+ aList.push_back(RptResId(*pItem));
implCreateListLikeControl(_rxControlFactory, out_Descriptor, aList, _bReadOnlyControl, _bTrueIfListBoxFalseIfComboBox);
}
@@ -760,10 +759,10 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const
case PROPERTY_ID_BACKTRANSPARENT:
case PROPERTY_ID_CONTROLBACKGROUNDTRANSPARENT:
{
- sal_uInt16 nResId = RID_STR_BOOL;
+ const char** pResId = RID_STR_BOOL;
if ( PROPERTY_ID_KEEPTOGETHER == nId && uno::Reference< report::XGroup>(m_xReportComponent,uno::UNO_QUERY).is())
- nResId = RID_STR_KEEPTOGETHER_CONST;
- implCreateListLikeControl(_xControlFactory,aOut,nResId,false,true);
+ pResId = RID_STR_KEEPTOGETHER_CONST;
+ implCreateListLikeControl(_xControlFactory,aOut,pResId,false,true);
}
break;
case PROPERTY_ID_INITIALFORMULA:
@@ -928,13 +927,14 @@ beans::Property GeometryHandler::getProperty(const OUString & PropertyName)
return beans::Property();
return *pFind;
}
-uno::Any GeometryHandler::getConstantValue(bool _bToControlValue,sal_uInt16 _nResId,const uno::Any& _aValue,const OUString& _sConstantName,const OUString & PropertyName )
+uno::Any GeometryHandler::getConstantValue(bool _bToControlValue,const char** pResId,const uno::Any& _aValue,const OUString& _sConstantName,const OUString & PropertyName )
{
- ModuleRes aRes(_nResId);
- ResStringArray aResList(aRes);
- uno::Sequence< OUString > aSeq(aResList.Count());
- for (sal_uInt32 i = 0; i < aResList.Count(); ++i)
- aSeq[i] = aResList.GetString(i);
+ std::vector<OUString> aList;
+ for (const char** pItem = pResId; *pItem; ++pItem)
+ aList.push_back(RptResId(*pItem));
+ uno::Sequence< OUString > aSeq(aList.size());
+ for (size_t i = 0; i < aList.size(); ++i)
+ aSeq[i] = aList[i];
uno::Reference< inspection::XStringRepresentation > xConversionHelper = inspection::StringRepresentation::createConstant( m_xContext,m_xTypeConverter,_sConstantName,aSeq);
if ( _bToControlValue )
@@ -1069,16 +1069,17 @@ uno::Any SAL_CALL GeometryHandler::convertToPropertyValue(const OUString & Prope
{
OUString sValue;
_rControlValue >>= sValue;
- ModuleRes aRes(RID_STR_TYPE_CONST);
- ResStringArray aResList(aRes);
+
sal_uInt32 nFound(RESARRAY_INDEX_NOTFOUND);
- for (sal_uInt32 i = 0; i < aResList.Count(); ++i)
+ sal_uInt32 i = 0;
+ for (const char** pItem = RID_STR_TYPE_CONST; *pItem; ++pItem)
{
- if (aResList.GetString(i) == sValue)
+ if (sValue == RptResId(*pItem))
{
nFound = i;
break;
}
+ ++i;
}
if (nFound != RESARRAY_INDEX_NOTFOUND)
aPropertyValue <<= nFound;
@@ -1091,16 +1092,17 @@ uno::Any SAL_CALL GeometryHandler::convertToPropertyValue(const OUString & Prope
{
OUString sValue;
_rControlValue >>= sValue;
- ModuleRes aRes(RID_STR_VERTICAL_ALIGN_CONST);
- ResStringArray aResList(aRes);
+
sal_uInt32 nFound(RESARRAY_INDEX_NOTFOUND);
- for (sal_uInt32 i = 0; i < aResList.Count(); ++i)
+ sal_uInt32 i = 0;
+ for (const char** pItem = RID_STR_VERTICAL_ALIGN_CONST; *pItem; ++pItem)
{
- if (aResList.GetString(i) == sValue)
+ if (sValue == RptResId(*pItem))
{
nFound = i;
break;
}
+ ++i;
}
if (nFound != RESARRAY_INDEX_NOTFOUND)
aPropertyValue <<= static_cast<style::VerticalAlignment>(nFound);
@@ -1110,17 +1112,19 @@ uno::Any SAL_CALL GeometryHandler::convertToPropertyValue(const OUString & Prope
{
OUString sValue;
_rControlValue >>= sValue;
- ModuleRes aRes(RID_STR_PARAADJUST_CONST);
- ResStringArray aResList(aRes);
+
sal_uInt32 nFound(RESARRAY_INDEX_NOTFOUND);
- for (sal_uInt32 i = 0; i < aResList.Count(); ++i)
+ sal_uInt32 i = 0;
+ for (const char** pItem = RID_STR_PARAADJUST_CONST; *pItem; ++pItem)
{
- if (aResList.GetString(i) == sValue)
+ if (sValue == RptResId(*pItem))
{
nFound = i;
break;
}
+ ++i;
}
+
if (nFound != RESARRAY_INDEX_NOTFOUND)
aPropertyValue <<= static_cast<sal_Int16>(nFound);
}
@@ -1236,30 +1240,24 @@ uno::Any SAL_CALL GeometryHandler::convertToControlValue(const OUString & Proper
break;
case PROPERTY_ID_TYPE:
{
- ModuleRes aRes(RID_STR_TYPE_CONST);
- ResStringArray aResList(aRes);
- if (m_nDataFieldType < aResList.Count())
- aControlValue <<= aResList.GetString(m_nDataFieldType);
+ if (m_nDataFieldType < SAL_N_ELEMENTS(RID_STR_TYPE_CONST) - 1)
+ aControlValue <<= RptResId(RID_STR_TYPE_CONST[m_nDataFieldType]);
}
break;
case PROPERTY_ID_VERTICALALIGN:
{
style::VerticalAlignment nParagraphVertAlign = style::VerticalAlignment_TOP;
aPropertyValue >>= nParagraphVertAlign;
- ModuleRes aRes(RID_STR_VERTICAL_ALIGN_CONST);
- ResStringArray aResList(aRes);
- if (sal_uInt32(nParagraphVertAlign) < aResList.Count())
- aControlValue <<= aResList.GetString((sal_uInt32)nParagraphVertAlign);
+ if (sal_uInt32(nParagraphVertAlign) < SAL_N_ELEMENTS(RID_STR_VERTICAL_ALIGN_CONST) - 1)
+ aControlValue <<= RptResId(RID_STR_VERTICAL_ALIGN_CONST[(sal_uInt32)nParagraphVertAlign]);
}
break;
case PROPERTY_ID_PARAADJUST:
{
sal_Int16 nParagraphAdjust = (sal_Int16)style::ParagraphAdjust_LEFT;
aPropertyValue >>= nParagraphAdjust;
- ModuleRes aRes(RID_STR_PARAADJUST_CONST);
- ResStringArray aResList(aRes);
- if (static_cast<sal_uInt32>(nParagraphAdjust) < aResList.Count())
- aControlValue <<= aResList.GetString(nParagraphAdjust);
+ if (static_cast<sal_uInt32>(nParagraphAdjust) < SAL_N_ELEMENTS(RID_STR_PARAADJUST_CONST) - 1)
+ aControlValue <<= RptResId(RID_STR_VERTICAL_ALIGN_CONST[nParagraphAdjust]);
}
break;
case PROPERTY_ID_BACKCOLOR:
@@ -1607,7 +1605,7 @@ bool GeometryHandler::impl_dialogFilter_nothrow( OUString& _out_rSelectedClause,
// create the dialog
uno::Reference< ui::dialogs::XExecutableDialog > xDialog = sdb::FilterDialog::createWithQuery(m_xContext, xComposer, m_xRowSet, xInspectorWindow);
- const OUString sPropertyUIName(OUString(ModuleRes(RID_STR_FILTER)));
+ const OUString sPropertyUIName(RptResId(RID_STR_FILTER));
// initialize the dialog
xDialog->setTitle( sPropertyUIName );
@@ -1640,7 +1638,7 @@ void GeometryHandler::checkPosAndSize( const awt::Point& _aNewPos,
::Point aPos(VCLPoint(_aNewPos));
if ( aPos.X() < 0 || aPos.Y() < 0 ) // TODO: have to check size with pos aka || (aPos.X() + aAwtSize.Width) > m_xSection->getReportDefinition()->
- throw beans::PropertyVetoException(ModuleRes(RID_STR_ILLEGAL_POSITION),xSourceReportComponent);
+ throw beans::PropertyVetoException(RptResId(RID_STR_ILLEGAL_POSITION),xSourceReportComponent);
::tools::Rectangle aSourceRect(aPos,VCLSize(_aSize));
@@ -1653,7 +1651,7 @@ void GeometryHandler::checkPosAndSize( const awt::Point& _aNewPos,
const ::tools::Rectangle aBoundRect(VCLPoint(xReportComponent->getPosition()),VCLSize(xReportComponent->getSize()));
const ::tools::Rectangle aRect = aSourceRect.GetIntersection(aBoundRect);
if ( !aRect.IsEmpty() && (aRect.Left() != aRect.Right() && aRect.Top() != aRect.Bottom() ) )
- throw beans::PropertyVetoException(ModuleRes( RID_STR_OVERLAP_OTHER_CONTROL),xSourceReportComponent);
+ throw beans::PropertyVetoException(RptResId( RID_STR_OVERLAP_OTHER_CONTROL),xSourceReportComponent);
}
}
}
@@ -1745,7 +1743,7 @@ void GeometryHandler::impl_fillScopeList_nothrow(::std::vector< OUString >& _out
else if ( xSection == xReportDefinition->getDetail() )
nPos = xGroups->getCount()-1;
- const OUString sGroup = ModuleRes(RID_STR_SCOPE_GROUP);
+ const OUString sGroup = RptResId(RID_STR_SCOPE_GROUP);
for (sal_Int32 i = 0 ; i <= nPos ; ++i)
{
xGroup.set(xGroups->getByIndex(i),uno::UNO_QUERY_THROW);
@@ -1772,7 +1770,7 @@ uno::Reference< report::XFunctionsSupplier> GeometryHandler::fillScope_throw(OUS
const uno::Reference< report::XGroup> xGroup(xSection->getGroup(),uno::UNO_QUERY);
if ( xGroup.is() )
{
- OUString sGroupName = ModuleRes(RID_STR_SCOPE_GROUP);
+ OUString sGroupName = RptResId(RID_STR_SCOPE_GROUP);
_rsNamePostfix = xGroup->getExpression();
m_sScope = sGroupName.replaceFirst("%1",_rsNamePostfix);
xReturn = xGroup.get();
@@ -1784,7 +1782,7 @@ uno::Reference< report::XFunctionsSupplier> GeometryHandler::fillScope_throw(OUS
if ( nCount )
{
const uno::Reference< report::XGroup> xGroup2(xGroups->getByIndex(nCount - 1),uno::UNO_QUERY_THROW);
- OUString sGroupName = ModuleRes(RID_STR_SCOPE_GROUP);
+ OUString sGroupName = RptResId(RID_STR_SCOPE_GROUP);
_rsNamePostfix = xGroup2->getExpression();
m_sScope = sGroupName.replaceFirst("%1",_rsNamePostfix);
xReturn = xGroup2.get();
@@ -1809,7 +1807,7 @@ uno::Reference< report::XFunctionsSupplier> GeometryHandler::fillScope_throw(OUS
for (sal_Int32 i = 0 ; i < nCount; ++i)
{
const uno::Reference< report::XGroup> xGroup(xGroups->getByIndex(i),uno::UNO_QUERY_THROW);
- OUString sGroupName = ModuleRes(RID_STR_SCOPE_GROUP);
+ OUString sGroupName = RptResId(RID_STR_SCOPE_GROUP);
if ( m_sScope == sGroupName.replaceFirst("%1",xGroup->getExpression()) )
{
_rsNamePostfix = xGroup->getExpression();
@@ -1855,7 +1853,7 @@ bool GeometryHandler::isDefaultFunction( const OUString& _sQuotedFunction
uno::Reference< report::XGroup> xGroup(aFind.first->second.second,uno::UNO_QUERY);
if ( xGroup.is() )
{
- OUString sGroupName = ModuleRes(RID_STR_SCOPE_GROUP);
+ OUString sGroupName = RptResId(RID_STR_SCOPE_GROUP);
m_sScope = sGroupName.replaceFirst("%1",xGroup->getExpression());
}
else
@@ -1920,7 +1918,7 @@ void GeometryHandler::loadDefaultFunctions()
if ( m_aDefaultFunctions.empty() )
{
m_aCounterFunction.m_bPreEvaluated = false;
- m_aCounterFunction.m_sName = ModuleRes(RID_STR_F_COUNTER);
+ m_aCounterFunction.m_sName = RptResId(RID_STR_F_COUNTER);
m_aCounterFunction.m_sFormula = "rpt:[%FunctionName] + 1";
m_aCounterFunction.m_sSearchString = "rpt:\\[[:alpha:]+([:space:]*[:alnum:]*)*\\][:space:]*\\+[:space:]*[:digit:]*";
m_aCounterFunction.m_sInitialFormula.IsPresent = true;
@@ -1930,21 +1928,21 @@ void GeometryHandler::loadDefaultFunctions()
aDefault.m_bPreEvaluated = true;
- aDefault.m_sName = ModuleRes(RID_STR_F_ACCUMULATION);
+ aDefault.m_sName = RptResId(RID_STR_F_ACCUMULATION);
aDefault.m_sFormula = "rpt:[%Column] + [%FunctionName]";
aDefault.m_sSearchString = "rpt:\\[[:alpha:]+([:space:]*[:alnum:]*)*\\][:space:]*\\+[:space:]*\\[[:alpha:]+([:space:]*[:alnum:]*)*\\]";
aDefault.m_sInitialFormula.IsPresent = true;
aDefault.m_sInitialFormula.Value = "rpt:[%Column]";
m_aDefaultFunctions.push_back(aDefault);
- aDefault.m_sName = ModuleRes(RID_STR_F_MINIMUM);
+ aDefault.m_sName = RptResId(RID_STR_F_MINIMUM);
aDefault.m_sFormula = "rpt:IF([%Column] < [%FunctionName];[%Column];[%FunctionName])";
aDefault.m_sSearchString = "rpt:IF\\((\\[[:alpha:]+([:space:]*[:alnum:]*)*\\])[:space:]*<[:space:]*(\\[[:alpha:]+([:space:]*[:alnum:]*)*\\]);[:space:]*\\1[:space:]*;[:space:]*\\3[:space:]*\\)";
aDefault.m_sInitialFormula.IsPresent = true;
aDefault.m_sInitialFormula.Value = "rpt:[%Column]";
m_aDefaultFunctions.push_back(aDefault);
- aDefault.m_sName = ModuleRes(RID_STR_F_MAXIMUM);
+ aDefault.m_sName = RptResId(RID_STR_F_MAXIMUM);
aDefault.m_sFormula = "rpt:IF([%Column] > [%FunctionName];[%Column];[%FunctionName])";
aDefault.m_sSearchString = "rpt:IF\\((\\[[:alpha:]+([:space:]*[:alnum:]*)*\\])[:space:]*>[:space:]*(\\[[:alpha:]+([:space:]*[:alnum:]*)*\\]);[:space:]*\\1[:space:]*;[:space:]*\\3[:space:]*\\)";
aDefault.m_sInitialFormula.IsPresent = true;
@@ -2112,7 +2110,7 @@ bool GeometryHandler::impl_isCounterFunction_throw(const OUString& _sQuotedFunct
const uno::Reference< report::XGroup > xGroup(aFind.first->second.second,uno::UNO_QUERY);
if ( xGroup.is() )
{
- OUString sGroupName = ModuleRes(RID_STR_SCOPE_GROUP);
+ OUString sGroupName = RptResId(RID_STR_SCOPE_GROUP);
Out_sScope = sGroupName.replaceFirst("%1",xGroup->getExpression());
}
else
diff --git a/reportdesign/source/ui/inspection/ReportComponentHandler.cxx b/reportdesign/source/ui/inspection/ReportComponentHandler.cxx
index 552938e817cd..7cbd0cb839c7 100644
--- a/reportdesign/source/ui/inspection/ReportComponentHandler.cxx
+++ b/reportdesign/source/ui/inspection/ReportComponentHandler.cxx
@@ -20,7 +20,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/NullPointerException.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
-#include "uistrings.hrc"
+#include "strings.hxx"
#include <comphelper/types.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <toolkit/helper/vclunohelper.hxx>
diff --git a/reportdesign/source/ui/inspection/inspection.src b/reportdesign/source/ui/inspection/inspection.src
deleted file mode 100644
index 7720b82aa816..000000000000
--- a/reportdesign/source/ui/inspection/inspection.src
+++ /dev/null
@@ -1,348 +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 "RptResId.hrc"
-#include "rptui_slotid.hrc"
-#include <svx/svxids.hrc>
-
-String RID_STR_PROPPAGE_DEFAULT
-{
- Text [ en-US ] = "General" ;
-};
-
-String RID_STR_PROPPAGE_DATA
-{
- Text [ en-US ] = "Data" ;
-};
-
-StringArray RID_STR_BOOL
-{
- ItemList [ en-US ] =
- {
- < "No" ; >;
- < "Yes" ; >;
- };
-};
-
-String RID_STR_FORCENEWPAGE
-{
- Text [ en-US ] = "Force New Page" ;
-};
-
-StringArray RID_STR_FORCENEWPAGE_CONST
-{
- ItemList [ en-US ] =
- {
- < "None" ; >;
- < "Before Section" ; >;
- < "After Section" ; >;
- < "Before & After Section" ; >;
- };
-};
-
-String RID_STR_NEWROWORCOL
-{
- Text [ en-US ] = "New Row Or Column" ;
-};
-
-String RID_STR_KEEPTOGETHER
-{
- Text [ en-US ] = "Keep Together" ;
-};
-
-StringArray RID_STR_KEEPTOGETHER_CONST
-{
- ItemList [ en-US ] =
- {
- < "No" ; >;
- < "Whole Group" ; >;
- < "With First Detail" ; >;
- };
-};
-String RID_STR_CANGROW
-{
- Text [ en-US ] = "Can Grow" ;
-};
-String RID_STR_CANSHRINK
-{
- Text [ en-US ] = "Can Shrink" ;
-};
-String RID_STR_REPEATSECTION
-{
- Text [ en-US ] = "Repeat Section" ;
-};
-String RID_STR_PRINTREPEATEDVALUES
-{
- Text [ en-US ] = "Print repeated values" ;
-};
-String RID_STR_CONDITIONALPRINTEXPRESSION
-{
- Text [ en-US ] = "Conditional Print Expression" ;
-};
-String RID_STR_STARTNEWCOLUMN
-{
- Text [ en-US ] = "Start new column" ;
-};
-String RID_STR_STARTNEWPAGE
-{
- Text [ en-US ] = "Start new page" ;
-};
-String RID_STR_RESETPAGENUMBER
-{
- Text [ en-US ] = "Reset page number" ;
-};
-String RID_STR_CHARTTYPE
-{
- Text [ en-US ] = "Chart type" ;
-};
-String RID_STR_PRINTWHENGROUPCHANGE
-{
- Text [ en-US ] = "Print repeated value on group change" ;
-};
-String RID_STR_VISIBLE
-{
- Text [ en-US ] = "Visible" ;
-};
-String RID_STR_GROUPKEEPTOGETHER
-{
- Text [ en-US ] = "Group keep together" ;
-};
-
-StringArray RID_STR_GROUPKEEPTOGETHER_CONST
-{
- ItemList [ en-US ] =
- {
- < "Per Page" ; >;
- < "Per Column" ; >;
- };
-};
-
-StringArray RID_STR_SECTIONPAGEBREAK_CONST
-{
- ItemList [ en-US ] =
- {
- < "None" ; >;
- < "Section" ; >;
- < "Automatic" ; >;
- };
-};
-
-String RID_STR_PAGEHEADEROPTION
-{
- Text [ en-US ] = "Page header" ;
-};
-
-String RID_STR_PAGEFOOTEROPTION
-{
- Text [ en-US ] = "Page footer" ;
-};
-
-StringArray RID_STR_REPORTPRINTOPTION_CONST
-{
- ItemList [ en-US ] =
- {
- < "All Pages" ; >;
- < "Not With Report Header" ; >;
- < "Not With Report Footer" ; >;
- < "Not With Report Header/Footer" ; >;
- };
-};
-String RID_STR_DEEPTRAVERSING
-{
- Text [ en-US ] = "Deep traversing" ;
-};
-String RID_STR_PREEVALUATED
-{
- Text [ en-US ] = "Pre evaluation" ;
-};
-String RID_STR_POSITIONX
-{
- Text [ en-US ] = "Position X";
-};
-String RID_STR_POSITIONY
-{
- Text [ en-US ] = "Position Y";
-};
-String RID_STR_WIDTH
-{
- Text [ en-US ] = "Width";
-};
-String RID_STR_HEIGHT
-{
- Text [ en-US ] = "Height";
-};
-String RID_STR_INITIALFORMULA
-{
- Text [ en-US ] = "Initial value" ;
-};
-String RID_STR_PRESERVEIRI
-{
- Text [ en-US ] = "Preserve as Link" ;
-};
-String RID_STR_FORMULA
-{
- Text [ en-US ] = "Formula" ;
-};
-String RID_STR_DATAFIELD
-{
- Text [ en-US ] = "Data field" ;
-};
-String RID_STR_FONT
-{
- Text [ en-US ] = "Font" ;
-};
-String RID_STR_BACKCOLOR
-{
- Text [ en-US ] = "Background color";
-};
-String RID_STR_BACKTRANSPARENT
-{
- Text [ en-US ] = "Background Transparent";
-};
-String RID_STR_CONTROLBACKGROUNDTRANSPARENT
-{
- Text [ en-US ] = "Background Transparent";
-};
-String RID_STR_OVERLAP_OTHER_CONTROL
-{
- Text [ en-US ] = "This operation is not allowed. The control overlaps with another one.";
-};
-String RID_STR_ILLEGAL_POSITION
-{
- Text [ en-US ] = "This position can not be set. It is invalid.";
-};
-String RID_STR_SCOPE_GROUP
-{
- Text [ en-US ] = "Group: %1";
-};
-String RID_STR_FORMULALIST
-{
- Text [ en-US ] = "Function";
-};
-String RID_STR_SCOPE
-{
- Text [ en-US ] = "Scope";
-};
-String RID_STR_TYPE
-{
- Text [ en-US ] = "Data Field Type";
-};
-
-StringArray RID_STR_TYPE_CONST
-{
- ItemList [ en-US ] =
- {
- < "Field or Formula"; >;
- < "Function"; >;
- < "Counter"; >;
- < "User defined Function"; >;
- };
-};
-
-String RID_STR_MASTERFIELDS
-{
- Text [ en-US ] = "Link master fields" ;
-};
-
-String RID_STR_DETAILFIELDS
-{
- Text [ en-US ] = "Link slave fields" ;
-};
-
-String RID_STR_EXPLANATION
-{
- Text [ en-US ] = "Charts can be used to display detailed data about the current record of the report. To do this, you can specify which columns in the chart match which columns in the report.";
-};
-
-String RID_STR_DETAILLABEL
-{
- Text [ en-US ] = "Chart" ;
-};
-
-String RID_STR_MASTERLABEL
-{
- Text [ en-US ] = "Report" ;
-};
-
-String RID_STR_PREVIEW_COUNT
-{
- Text [ en-US ] = "Preview Row(s)" ;
-};
-
-String RID_STR_AREA
-{
- Text [ en-US ] = "Area" ;
-};
-
-String RID_STR_MIMETYPE
-{
- Text [ en-US ] = "Report Output Format" ;
-};
-
-String RID_STR_VERTICALALIGN
-{
- Text [ en-US ] = "Vert. Alignment" ;
-};
-
-StringArray RID_STR_VERTICAL_ALIGN_CONST
-{
- ItemList [ en-US ] =
- {
- < "Top"; >;
- < "Middle"; >;
- < "Bottom"; >;
- };
-};
-
-String RID_STR_PARAADJUST
-{
- Text [ en-US ] = "Horz. Alignment" ;
-};
-
-StringArray RID_STR_PARAADJUST_CONST
-{
- ItemList [ en-US ] =
- {
- < "Left"; >;
- < "Right"; >;
- < "Block"; >;
- < "Center"; >;
- };
-};
-
-String RID_STR_F_COUNTER
-{
- Text [ en-US ] = "Counter" ;
-};
-
-String RID_STR_F_ACCUMULATION
-{
- Text [ en-US ] = "Accumulation" ;
-};
-
-String RID_STR_F_MINIMUM
-{
- Text [ en-US ] = "Minimum" ;
-};
-
-String RID_STR_F_MAXIMUM
-{
- Text [ en-US ] = "Maximum" ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx
index 7b3e73b8cf2b..adae3e8f6505 100644
--- a/reportdesign/source/ui/inspection/metadata.cxx
+++ b/reportdesign/source/ui/inspection/metadata.cxx
@@ -19,9 +19,10 @@
#include "metadata.hxx"
#include <com/sun/star/inspection/XPropertyHandler.hpp>
#include <comphelper/extract.hxx>
+#include "core_resource.hxx"
#include "helpids.hrc"
-#include "RptResId.hrc"
-#include "uistrings.hrc"
+#include "strings.hrc"
+#include "strings.hxx"
#include <algorithm>
@@ -78,7 +79,7 @@ namespace rptui
#define DEF_INFO( ident, uinameres, helpid, flags ) \
OPropertyInfoImpl( PROPERTY_##ident, PROPERTY_ID_##ident, \
- OUString( ModuleRes( RID_STR_##uinameres ) ), HID_RPT_PROP_##helpid, flags )
+ RptResId( RID_STR_##uinameres ), HID_RPT_PROP_##helpid, flags )
#define DEF_INFO_1( ident, uinameres, helpid, flag1 ) \
DEF_INFO( ident, uinameres, helpid, PropUIFlags::flag1 )
@@ -94,9 +95,6 @@ namespace rptui
if ( s_pPropertyInfos )
return s_pPropertyInfos;
- OModuleClient aResourceAccess;
- // this ensures that we have our resource file loaded
-
static OPropertyInfoImpl aPropertyInfos[] =
{
/*
diff --git a/reportdesign/source/ui/misc/ColorListener.cxx b/reportdesign/source/ui/misc/ColorListener.cxx
index bbd66c5c84ba..5064d6451b63 100644
--- a/reportdesign/source/ui/misc/ColorListener.cxx
+++ b/reportdesign/source/ui/misc/ColorListener.cxx
@@ -20,7 +20,7 @@
#include <svl/hint.hxx>
#include <vcl/settings.hxx>
-#include "uistrings.hrc"
+#include "strings.hxx"
namespace rptui
diff --git a/reportdesign/source/ui/misc/RptUndo.cxx b/reportdesign/source/ui/misc/RptUndo.cxx
index 09325299e7aa..dec9f097b337 100644
--- a/reportdesign/source/ui/misc/RptUndo.cxx
+++ b/reportdesign/source/ui/misc/RptUndo.cxx
@@ -18,7 +18,7 @@
*/
#include "RptUndo.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "rptui_slotid.hrc"
#include "UITools.hxx"
#include "UndoEnv.hxx"
@@ -113,8 +113,8 @@ namespace
OSectionUndo::OSectionUndo(OReportModel& _rMod
,sal_uInt16 _nSlot
,Action _eAction
- ,sal_uInt16 nCommentID)
-: OCommentUndoAction(_rMod,nCommentID)
+ ,const char* pCommentID)
+: OCommentUndoAction(_rMod,pCommentID)
,m_eAction(_eAction)
,m_nSlot(_nSlot)
,m_bInserted(false)
@@ -220,7 +220,7 @@ OReportSectionUndo::OReportSectionUndo(OReportModel& _rMod,sal_uInt16 _nSlot
,OReportHelper> _pMemberFunction
,const uno::Reference< report::XReportDefinition >& _xReport
,Action _eAction)
-: OSectionUndo(_rMod,_nSlot,_eAction,0)
+: OSectionUndo(_rMod,_nSlot,_eAction,nullptr)
,m_aReportHelper(_xReport)
,m_pMemberFunction(_pMemberFunction)
{
@@ -257,8 +257,8 @@ OGroupSectionUndo::OGroupSectionUndo(OReportModel& _rMod,sal_uInt16 _nSlot
,OGroupHelper> _pMemberFunction
,const uno::Reference< report::XGroup >& _xGroup
,Action _eAction
- ,sal_uInt16 nCommentID)
-: OSectionUndo(_rMod,_nSlot,_eAction,nCommentID)
+ ,const char* pCommentID)
+: OSectionUndo(_rMod,_nSlot,_eAction,pCommentID)
,m_aGroupHelper(_xGroup)
,m_pMemberFunction(_pMemberFunction)
{
@@ -323,11 +323,11 @@ void OGroupSectionUndo::implReRemove( )
OGroupUndo::OGroupUndo(OReportModel& _rMod
- ,sal_uInt16 nCommentID
+ ,const char* pCommentID
,Action _eAction
,const uno::Reference< report::XGroup>& _xGroup
,const uno::Reference< report::XReportDefinition >& _xReportDefinition)
-: OCommentUndoAction(_rMod,nCommentID)
+: OCommentUndoAction(_rMod,pCommentID)
,m_xGroup(_xGroup)
,m_xReportDefinition(_xReportDefinition)
,m_eAction(_eAction)
diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx
index 443e23ca2c1f..9d7a3eed25ad 100644
--- a/reportdesign/source/ui/misc/UITools.cxx
+++ b/reportdesign/source/ui/misc/UITools.cxx
@@ -100,11 +100,11 @@
#include "dlgpage.hxx"
#include <vcl/msgbox.hxx>
#include "rptui_slotid.hrc"
-#include "uistrings.hrc"
+#include "strings.hxx"
+#include "core_resource.hxx"
#include "RptObject.hxx"
-#include "ModuleHelper.hxx"
#include "RptDef.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "ReportDefinition.hxx"
#include "RptModel.hxx"
@@ -163,14 +163,14 @@ void adjustSectionName(const uno::Reference< report::XGroup >& _xGroup,sal_Int32
OSL_ENSURE(_xGroup.is(),"Group is NULL -> GPF");
if ( _xGroup->getHeaderOn() && _xGroup->getHeader()->getName().isEmpty() )
{
- OUString sName = ModuleRes(RID_STR_GROUPHEADER);
+ OUString sName = RptResId(RID_STR_GROUPHEADER);
sName += OUString::number(_nPos);
_xGroup->getHeader()->setName(sName);
}
if ( _xGroup->getFooterOn() && _xGroup->getFooter()->getName().isEmpty() )
{
- OUString sName = ModuleRes(RID_STR_GROUPFOOTER);
+ OUString sName = RptResId(RID_STR_GROUPFOOTER);
sName += OUString::number(_nPos);
_xGroup->getFooter()->setName(sName);
}
diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx
index fccb41abb983..83233bb7e67f 100644
--- a/reportdesign/source/ui/report/DesignView.cxx
+++ b/reportdesign/source/ui/report/DesignView.cxx
@@ -37,7 +37,7 @@
#include "ScrollHelper.hxx"
#include "Navigator.hxx"
#include "SectionWindow.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
diff --git a/reportdesign/source/ui/report/FixedTextColor.cxx b/reportdesign/source/ui/report/FixedTextColor.cxx
index de398d2aa1ab..51b1f3cb9f05 100644
--- a/reportdesign/source/ui/report/FixedTextColor.cxx
+++ b/reportdesign/source/ui/report/FixedTextColor.cxx
@@ -28,7 +28,7 @@
#include <ViewsWindow.hxx>
#include <ReportSection.hxx>
#include <ReportController.hxx>
-#include <uistrings.hrc>
+#include <strings.hxx>
#include <reportformula.hxx>
#include <toolkit/helper/property.hxx>
diff --git a/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx b/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx
index 54b7fbfc80f0..db79387e4701 100644
--- a/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx
+++ b/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx
@@ -29,7 +29,7 @@
#include <ViewsWindow.hxx>
#include <ReportSection.hxx>
#include <ReportController.hxx>
-#include <uistrings.hrc>
+#include <strings.hxx>
#include <reportformula.hxx>
#include <toolkit/helper/property.hxx>
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index d23550f9de16..2e0a68235562 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -112,17 +112,17 @@
#include <svx/zoom_def.hxx>
#include <svx/dialogs.hrc>
+#include "core_resource.hxx"
#include "DesignView.hxx"
-#include "ModuleHelper.hxx"
#include "RptObject.hxx"
#include "RptUndo.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "RptDef.hxx"
#include "ReportSection.hxx"
#include "SectionView.hxx"
#include "UndoActions.hxx"
#include "dlgpage.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
@@ -407,7 +407,7 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const
case SID_REPORTHEADERFOOTER:
{
aReturn.bEnabled = isEditable();
- OUString sText = ModuleRes((m_xReportDefinition.is() && m_xReportDefinition->getReportHeaderOn()) ? RID_STR_REPORTHEADERFOOTER_DELETE : RID_STR_REPORTHEADERFOOTER_INSERT);
+ OUString sText = RptResId((m_xReportDefinition.is() && m_xReportDefinition->getReportHeaderOn()) ? RID_STR_REPORTHEADERFOOTER_DELETE : RID_STR_REPORTHEADERFOOTER_INSERT);
aReturn.sTitle = sText;
}
break;
@@ -416,7 +416,7 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const
case SID_PAGEHEADERFOOTER:
{
aReturn.bEnabled = isEditable();
- OUString sText = ModuleRes((m_xReportDefinition.is() && m_xReportDefinition->getPageHeaderOn()) ? RID_STR_PAGEHEADERFOOTER_DELETE : RID_STR_PAGEHEADERFOOTER_INSERT);
+ OUString sText = RptResId((m_xReportDefinition.is() && m_xReportDefinition->getPageHeaderOn()) ? RID_STR_PAGEHEADERFOOTER_DELETE : RID_STR_PAGEHEADERFOOTER_INSERT);
aReturn.sTitle = sText;
}
break;
@@ -569,7 +569,7 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const
aReturn.bEnabled = !pSectionWindow->getReportSection().isUiActive();
}
{
- OUString sText = ModuleRes(RID_STR_DELETE);
+ OUString sText = RptResId(RID_STR_DELETE);
aReturn.sTitle = sText;
}
break;
@@ -1153,7 +1153,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
{
uno::Reference< report::XFunctions> xFunctions(xFunction->getParent(),uno::UNO_QUERY_THROW);
sal_Int32 nIndex = getPositionInIndexAccess(xFunctions.get(),xFunction);
- const OUString sUndoAction = ModuleRes(RID_STR_UNDO_REMOVE_FUNCTION);
+ const OUString sUndoAction = RptResId(RID_STR_UNDO_REMOVE_FUNCTION);
UndoContext aUndoContext( getUndoManager(), sUndoAction );
xFunctions->removeByIndex(nIndex);
select(uno::makeAny(xFunctions->getParent()));
@@ -1436,7 +1436,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
::std::vector< uno::Reference< uno::XInterface > > aControlsFormats;
lcl_getReportControlFormat( aArgs, getDesignView(), xWindow, aControlsFormats );
- const OUString sUndoAction(ModuleRes(RID_STR_UNDO_CHANGEFONT));
+ const OUString sUndoAction(RptResId(RID_STR_UNDO_CHANGEFONT));
UndoContext aUndoContext( getUndoManager(), sUndoAction );
::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aControlsFormats.begin();
@@ -1513,7 +1513,7 @@ void OReportController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >
if ( !aControlsFormats.empty() )
{
- const OUString sUndoAction( ModuleRes( RID_STR_UNDO_CHANGEFONT ) );
+ const OUString sUndoAction( RptResId( RID_STR_UNDO_CHANGEFONT ) );
UndoContext aUndoContext( getUndoManager(), sUndoAction );
::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aControlsFormats.begin();
@@ -2450,7 +2450,7 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _
else
{
uno::Reference< beans::XPropertySet> xProp(getUsedStyle(m_xReportDefinition),uno::UNO_QUERY_THROW);
- const OUString sUndoAction(ModuleRes(RID_STR_UNDO_CHANGEPAGE));
+ const OUString sUndoAction(RptResId(RID_STR_UNDO_CHANGEPAGE));
UndoContext aUndoContext( getUndoManager(), sUndoAction );
const SfxPoolItem* pItem = nullptr;
if ( SfxItemState::SET == pSet->GetItemState( RPTUI_ID_SIZE,true,&pItem))
@@ -2575,17 +2575,17 @@ void OReportController::Notify(SfxBroadcaster & /* _rBc */, SfxHint const & _rHi
}
}
-void OReportController::executeMethodWithUndo(sal_uInt16 _nUndoStrId,const ::std::mem_fun_t<void,ODesignView>& _pMemfun)
+void OReportController::executeMethodWithUndo(const char* pUndoStrId,const ::std::mem_fun_t<void,ODesignView>& _pMemfun)
{
- const OUString sUndoAction = ModuleRes(_nUndoStrId);
+ const OUString sUndoAction = RptResId(pUndoStrId);
UndoContext aUndoContext( getUndoManager(), sUndoAction );
_pMemfun( getDesignView() );
InvalidateFeature( SID_UNDO );
}
-void OReportController::alignControlsWithUndo(sal_uInt16 _nUndoStrId, ControlModification _nControlModification, bool _bAlignAtSection)
+void OReportController::alignControlsWithUndo(const char* pUndoStrId, ControlModification _nControlModification, bool _bAlignAtSection)
{
- const OUString sUndoAction = ModuleRes(_nUndoStrId);
+ const OUString sUndoAction = RptResId(pUndoStrId);
UndoContext aUndoContext( getUndoManager(), sUndoAction );
getDesignView()->alignMarkedObjects(_nControlModification,_bAlignAtSection);
InvalidateFeature( SID_UNDO );
@@ -2659,11 +2659,11 @@ void OReportController::shrinkSectionTop(const uno::Reference<report::XSection>&
_xSection->setHeight(nNewSectionHeight);
}
-void OReportController::shrinkSection(sal_uInt16 _nUndoStrId, const uno::Reference<report::XSection>& _xSection, sal_Int32 _nSid)
+void OReportController::shrinkSection(const char* pUndoStrId, const uno::Reference<report::XSection>& _xSection, sal_Int32 _nSid)
{
if ( _xSection.is() )
{
- const OUString sUndoAction = ModuleRes(_nUndoStrId);
+ const OUString sUndoAction = RptResId(pUndoStrId);
UndoContext aUndoContext( getUndoManager(), sUndoAction );
if (_nSid == SID_SECTION_SHRINK)
@@ -2835,7 +2835,7 @@ uno::Reference<frame::XModel> OReportController::executeReport()
uno::Reference<frame::XModel> xModel;
if ( m_xReportDefinition.is() )
{
- sal_uInt16 nErrorId = RID_ERR_NO_COMMAND;
+ const char* pErrorId = RID_ERR_NO_COMMAND;
bool bEnabled = !m_xReportDefinition->getCommand().isEmpty();
if ( bEnabled )
{
@@ -2848,20 +2848,20 @@ uno::Reference<frame::XModel> OReportController::executeReport()
bEnabled = pPage->GetObjCount() != 0;
}
if ( !bEnabled )
- nErrorId = RID_ERR_NO_OBJECTS;
+ pErrorId = RID_ERR_NO_OBJECTS;
}
dbtools::SQLExceptionInfo aInfo;
if ( !bEnabled )
{
sdb::SQLContext aFirstMessage;
- OUString sInfo = ModuleRes( nErrorId );
+ OUString sInfo = RptResId( pErrorId );
aFirstMessage.Message = sInfo;
aInfo = aFirstMessage;
if ( isEditable() )
{
sal_uInt16 nCommand = 0;
- if ( nErrorId == RID_ERR_NO_COMMAND )
+ if (!strcmp(pErrorId, RID_ERR_NO_COMMAND))
{
if ( !m_bShowProperties )
executeUnChecked(SID_SHOW_PROPERTYBROWSER,uno::Sequence< beans::PropertyValue>());
@@ -2904,7 +2904,7 @@ uno::Reference<frame::XModel> OReportController::executeReport()
// our first message says: we caught an exception
sdb::SQLContext aFirstMessage;
- OUString sInfo(ModuleRes(RID_STR_CAUGHT_FOREIGN_EXCEPTION));
+ OUString sInfo(RptResId(RID_STR_CAUGHT_FOREIGN_EXCEPTION));
sInfo = sInfo.replaceAll("$type$", aCaughtException.getValueTypeName());
aFirstMessage.Message = sInfo;
@@ -2930,7 +2930,7 @@ uno::Reference<frame::XModel> OReportController::executeReport()
}
if (aInfo.isValid())
{
- const OUString suSQLContext = ModuleRes( RID_STR_COULD_NOT_CREATE_REPORT );
+ const OUString suSQLContext = RptResId( RID_STR_COULD_NOT_CREATE_REPORT );
aInfo.prepend(suSQLContext);
}
m_bInGeneratePreview = false;
@@ -2986,7 +2986,7 @@ uno::Reference< sdbc::XRowSet > const & OReportController::getRowSet()
void OReportController::insertGraphic()
{
- const OUString sTitle(ModuleRes(RID_STR_IMPORT_GRAPHIC));
+ const OUString sTitle(RptResId(RID_STR_IMPORT_GRAPHIC));
// build some arguments for the upcoming dialog
try
{
@@ -3082,7 +3082,7 @@ void SAL_CALL OReportController::removeSelectionChangeListener( const Reference<
void OReportController::createNewFunction(const uno::Any& _aValue)
{
uno::Reference< container::XIndexContainer> xFunctions(_aValue,uno::UNO_QUERY_THROW);
- const OUString sNewName = ModuleRes(RID_STR_FUNCTION);
+ const OUString sNewName = RptResId(RID_STR_FUNCTION);
uno::Reference< report::XFunction> xFunction(report::Function::create(m_xContext));
xFunction->setName(sNewName);
// the call below will also create an undo action -> listener
@@ -3217,7 +3217,7 @@ void OReportController::createDateTime(const Sequence< PropertyValue >& _aArgs)
{
getDesignView()->unmarkAllObjects();
- const OUString sUndoAction(ModuleRes(RID_STR_UNDO_INSERT_CONTROL));
+ const OUString sUndoAction(RptResId(RID_STR_UNDO_INSERT_CONTROL));
UndoContext aUndoContext( getUndoManager(), sUndoAction );
SequenceAsHashMap aMap(_aArgs);
@@ -3245,7 +3245,7 @@ void OReportController::createPageNumber(const Sequence< PropertyValue >& _aArgs
{
getDesignView()->unmarkAllObjects();
- const OUString sUndoAction(ModuleRes(RID_STR_UNDO_INSERT_CONTROL));
+ const OUString sUndoAction(RptResId(RID_STR_UNDO_INSERT_CONTROL));
UndoContext aUndoContext( getUndoManager(), sUndoAction );
if ( !m_xReportDefinition->getPageHeaderOn() )
@@ -3257,12 +3257,12 @@ void OReportController::createPageNumber(const Sequence< PropertyValue >& _aArgs
SequenceAsHashMap aMap(_aArgs);
bool bStateOfPage = aMap.getUnpackedValueOrDefault(PROPERTY_STATE, false);
- OUString sFunction( ModuleRes(STR_RPT_PN_PAGE) );
+ OUString sFunction( RptResId(STR_RPT_PN_PAGE) );
sFunction = sFunction.replaceFirst("#PAGENUMBER#", "PageNumber()");
if ( bStateOfPage )
{
- sFunction += ModuleRes(STR_RPT_PN_PAGE_OF);
+ sFunction += RptResId(STR_RPT_PN_PAGE_OF);
sFunction = sFunction.replaceFirst("#PAGECOUNT#", "PageCount()");
}
@@ -3288,7 +3288,7 @@ void OReportController::addPairControls(const Sequence< PropertyValue >& aArgs)
}
uno::Reference<report::XSection> xCurrentSection = getDesignView()->getCurrentSection();
- UndoContext aUndoContext( getUndoManager(), OUString( ModuleRes( RID_STR_UNDO_INSERT_CONTROL ) ) );
+ UndoContext aUndoContext(getUndoManager(), RptResId(RID_STR_UNDO_INSERT_CONTROL));
try
{
@@ -3742,7 +3742,7 @@ void OReportController::switchReportSection(const sal_Int16 _nId)
std::unique_ptr< UndoContext > pUndoContext;
if ( SID_REPORTHEADERFOOTER == _nId )
{
- const OUString sUndoAction(ModuleRes(bSwitchOn ? RID_STR_UNDO_ADD_REPORTHEADERFOOTER : RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER));
+ const OUString sUndoAction(RptResId(bSwitchOn ? RID_STR_UNDO_ADD_REPORTHEADERFOOTER : RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER));
pUndoContext.reset( new UndoContext( getUndoManager(), sUndoAction ) );
addUndoAction(new OReportSectionUndo(*(m_aReportModel),SID_REPORTHEADER_WITHOUT_UNDO
@@ -3789,7 +3789,7 @@ void OReportController::switchPageSection(const sal_Int16 _nId)
std::unique_ptr< UndoContext > pUndoContext;
if ( SID_PAGEHEADERFOOTER == _nId )
{
- const OUString sUndoAction(ModuleRes(bSwitchOn ? RID_STR_UNDO_ADD_REPORTHEADERFOOTER : RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER));
+ const OUString sUndoAction(RptResId(bSwitchOn ? RID_STR_UNDO_ADD_REPORTHEADERFOOTER : RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER));
pUndoContext.reset( new UndoContext( getUndoManager(), sUndoAction ) );
addUndoAction(new OReportSectionUndo(*m_aReportModel
@@ -4127,14 +4127,14 @@ bool OReportController::isFormatCommandEnabled(sal_uInt16 _nCommand,const uno::R
return bRet;
}
-bool OReportController::impl_setPropertyAtControls_throw(const sal_uInt16 _nUndoResId,const OUString& _sProperty,const uno::Any& _aValue,const Sequence< PropertyValue >& _aArgs)
+bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId,const OUString& _sProperty,const uno::Any& _aValue,const Sequence< PropertyValue >& _aArgs)
{
::std::vector< uno::Reference< uno::XInterface > > aSelection;
uno::Reference< awt::XWindow> xWindow;
lcl_getReportControlFormat( _aArgs, getDesignView(), xWindow, aSelection );
::std::vector< uno::Reference< uno::XInterface > >::const_iterator aIter = aSelection.begin();
- const OUString sUndoAction = ModuleRes( _nUndoResId );
+ const OUString sUndoAction = RptResId( pUndoResId );
UndoContext aUndoContext( getUndoManager(), sUndoAction );
for(; aIter != aSelection.end();++aIter)
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 544dfb203638..7363f3eaaf9d 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -20,7 +20,7 @@
#include "ReportSection.hxx"
#include "ReportWindow.hxx"
#include "DesignView.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "RptObject.hxx"
#include "RptModel.hxx"
#include "SectionView.hxx"
@@ -50,7 +50,7 @@
#include "RptDef.hxx"
#include "SectionWindow.hxx"
#include "helpids.hrc"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "dlgedclip.hxx"
#include "UndoActions.hxx"
#include "rptui_slotid.hrc"
diff --git a/reportdesign/source/ui/report/ReportWindow.cxx b/reportdesign/source/ui/report/ReportWindow.cxx
index 8ac0e90fa598..6513c2cba02c 100644
--- a/reportdesign/source/ui/report/ReportWindow.cxx
+++ b/reportdesign/source/ui/report/ReportWindow.cxx
@@ -32,7 +32,7 @@
#include "RptDef.hxx"
#include "dlgedfunc.hxx"
#include "RptModel.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "RptPage.hxx"
#include "ReportController.hxx"
#include "EndMarker.hxx"
diff --git a/reportdesign/source/ui/report/SectionView.cxx b/reportdesign/source/ui/report/SectionView.cxx
index d94fe0deb51d..b179abc92811 100644
--- a/reportdesign/source/ui/report/SectionView.cxx
+++ b/reportdesign/source/ui/report/SectionView.cxx
@@ -26,7 +26,7 @@
#include <vcl/scrbar.hxx>
#include "ReportSection.hxx"
#include "ReportWindow.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
diff --git a/reportdesign/source/ui/report/SectionWindow.cxx b/reportdesign/source/ui/report/SectionWindow.cxx
index 6e4a3fa386e6..ebcc09695dbb 100644
--- a/reportdesign/source/ui/report/SectionWindow.cxx
+++ b/reportdesign/source/ui/report/SectionWindow.cxx
@@ -24,9 +24,10 @@
#include "RptDef.hxx"
#include "ReportSection.hxx"
#include "DesignView.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
+#include "core_resource.hxx"
#include "helpids.hrc"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "StartMarker.hxx"
#include "EndMarker.hxx"
#include "ViewsWindow.hxx"
@@ -149,7 +150,7 @@ void OSectionWindow::_propertyChanged(const beans::PropertyChangeEvent& _rEvent)
}
else
{
- OUString sTitle = ModuleRes(RID_STR_DETAIL);
+ OUString sTitle = RptResId(RID_STR_DETAIL);
m_aStartMarker->setTitle(sTitle);
m_aStartMarker->Invalidate(InvalidateFlags::Children);
}
@@ -165,20 +166,20 @@ void OSectionWindow::_propertyChanged(const beans::PropertyChangeEvent& _rEvent)
}
}
-bool OSectionWindow::setReportSectionTitle(const uno::Reference< report::XReportDefinition>& _xReport,sal_uInt16 _nResId,::std::mem_fun_t<uno::Reference<report::XSection> , OReportHelper> _pGetSection, const ::std::mem_fun_t<bool,OReportHelper>& _pIsSectionOn)
+bool OSectionWindow::setReportSectionTitle(const uno::Reference< report::XReportDefinition>& _xReport,const char* pResId,::std::mem_fun_t<uno::Reference<report::XSection> , OReportHelper> _pGetSection, const ::std::mem_fun_t<bool,OReportHelper>& _pIsSectionOn)
{
OReportHelper aReportHelper(_xReport);
const bool bRet = _pIsSectionOn(&aReportHelper) && _pGetSection(&aReportHelper) == m_aReportSection->getSection();
if ( bRet )
{
- OUString sTitle = ModuleRes(_nResId);
+ OUString sTitle = RptResId(pResId);
m_aStartMarker->setTitle(sTitle);
m_aStartMarker->Invalidate(InvalidateFlags::Children);
}
return bRet;
}
-bool OSectionWindow::setGroupSectionTitle(const uno::Reference< report::XGroup>& _xGroup,sal_uInt16 _nResId,::std::mem_fun_t<uno::Reference<report::XSection> , OGroupHelper> _pGetSection, const ::std::mem_fun_t<bool,OGroupHelper>& _pIsSectionOn)
+bool OSectionWindow::setGroupSectionTitle(const uno::Reference< report::XGroup>& _xGroup,const char* pResId,::std::mem_fun_t<uno::Reference<report::XSection> , OGroupHelper> _pGetSection, const ::std::mem_fun_t<bool,OGroupHelper>& _pIsSectionOn)
{
OGroupHelper aGroupHelper(_xGroup);
const bool bRet = _pIsSectionOn(&aGroupHelper) && _pGetSection(&aGroupHelper) == m_aReportSection->getSection() ;
@@ -191,8 +192,7 @@ bool OSectionWindow::setGroupSectionTitle(const uno::Reference< report::XGroup>&
sExpression = sLabel;
}
- ModuleRes aRes(_nResId);
- OUString sTitle(aRes);
+ OUString sTitle(RptResId(pResId));
sTitle = sTitle.replaceFirst("#", sExpression);
m_aStartMarker->setTitle( sTitle );
m_aStartMarker->Invalidate(InvalidateFlags::Children);
@@ -317,7 +317,7 @@ void OSectionWindow::zoom(const Fraction& _aZoom)
IMPL_LINK_NOARG( OSectionWindow, StartSplitHdl, Splitter*, void)
{
- const OUString sUndoAction( ModuleRes( RID_STR_UNDO_CHANGE_SIZE ) );
+ const OUString sUndoAction( RptResId( RID_STR_UNDO_CHANGE_SIZE ) );
getViewsWindow()->getView()->getReportView()->getController().getUndoManager().EnterListAction( sUndoAction, OUString(), 0, ViewShellId(-1) );
}
diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx
index 5e070d8076f7..ac3c7b5a6221 100644
--- a/reportdesign/source/ui/report/StartMarker.cxx
+++ b/reportdesign/source/ui/report/StartMarker.cxx
@@ -19,9 +19,8 @@
#include "StartMarker.hxx"
#include <vcl/image.hxx>
#include <vcl/svapp.hxx>
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "bitmaps.hlst"
-#include "ModuleHelper.hxx"
#include "ColorChanger.hxx"
#include "ReportDefines.hxx"
#include "SectionWindow.hxx"
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index a8c1f9d021ee..b97a72d1efa2 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -26,21 +26,20 @@
#include "ReportController.hxx"
#include "UITools.hxx"
#include "RptDef.hxx"
-#include "RptResId.hrc"
+#include "strings.hrc"
#include "SectionView.hxx"
#include "ReportSection.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "rptui_slotid.hrc"
#include "dlgedclip.hxx"
#include "ColorChanger.hxx"
#include "RptObject.hxx"
-#include "ModuleHelper.hxx"
#include "EndMarker.hxx"
#include <svx/svdpagv.hxx>
#include <svx/unoshape.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
-
+#include "core_resource.hxx"
#include "helpids.hrc"
#include <svx/svdundo.hxx>
#include <toolkit/helper/convert.hxx>
@@ -1234,7 +1233,7 @@ void OViewsWindow::EndDragObj_removeInvisibleObjects()
void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSection, const Point& _aPnt)
{
- const OUString sUndoAction = ModuleRes(RID_STR_UNDO_CHANGEPOSITION);
+ const OUString sUndoAction = RptResId(RID_STR_UNDO_CHANGEPOSITION);
const UndoContext aUndoContext( getView()->getReportView()->getController().getUndoManager(), sUndoAction );
Point aNewPos = _aPnt;
diff --git a/reportdesign/source/ui/report/dlgedfac.cxx b/reportdesign/source/ui/report/dlgedfac.cxx
index 0bc995800283..bc4e87011c39 100644
--- a/reportdesign/source/ui/report/dlgedfac.cxx
+++ b/reportdesign/source/ui/report/dlgedfac.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "dlgedfac.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "RptObject.hxx"
#include <RptDef.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx
index 62b8fe3fef35..a57d3eec9dc9 100644
--- a/reportdesign/source/ui/report/dlgedfunc.cxx
+++ b/reportdesign/source/ui/report/dlgedfunc.cxx
@@ -48,7 +48,7 @@
#include "ScrollHelper.hxx"
#include "UITools.hxx"
-#include <uistrings.hrc>
+#include <strings.hxx>
#include "UndoEnv.hxx"
#include <RptModel.hxx>
#include <comphelper/propertysequence.hxx>
diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx
index 5e7316b7dcd3..7c0ffd2b9149 100644
--- a/reportdesign/source/ui/report/propbrw.cxx
+++ b/reportdesign/source/ui/report/propbrw.cxx
@@ -21,7 +21,7 @@
#include "RptObject.hxx"
#include "ReportController.hxx"
#include <cppuhelper/component_context.hxx>
-#include <RptResId.hrc>
+#include <strings.hrc>
#include "rptui_slotid.hrc"
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
@@ -47,9 +47,10 @@
#include <comphelper/types.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/processfactory.hxx>
+#include "core_resource.hxx"
#include "SectionView.hxx"
#include "ReportSection.hxx"
-#include "uistrings.hrc"
+#include "strings.hxx"
#include "DesignView.hxx"
#include "ViewsWindow.hxx"
#include "UITools.hxx"
@@ -332,52 +333,52 @@ OUString PropBrw::GetHeadlineName( const uno::Sequence< Reference<uno::XInterfac
OUString aName;
if ( !_aObjects.getLength() )
{
- aName = ModuleRes(RID_STR_BRWTITLE_NO_PROPERTIES);
+ aName = RptResId(RID_STR_BRWTITLE_NO_PROPERTIES);
}
else if ( _aObjects.getLength() == 1 ) // single selection
{
- aName = ModuleRes(RID_STR_BRWTITLE_PROPERTIES);
+ aName = RptResId(RID_STR_BRWTITLE_PROPERTIES);
uno::Reference< container::XNameContainer > xNameCont(_aObjects[0],uno::UNO_QUERY);
Reference< lang::XServiceInfo > xServiceInfo( xNameCont->getByName("ReportComponent"), UNO_QUERY );
if ( xServiceInfo.is() )
{
- sal_uInt16 nResId = 0;
+ const char* pResId = nullptr;
if ( xServiceInfo->supportsService( SERVICE_FIXEDTEXT ) )
{
- nResId = RID_STR_PROPTITLE_FIXEDTEXT;
+ pResId = RID_STR_PROPTITLE_FIXEDTEXT;
}
else if ( xServiceInfo->supportsService( SERVICE_IMAGECONTROL ) )
{
- nResId = RID_STR_PROPTITLE_IMAGECONTROL;
+ pResId = RID_STR_PROPTITLE_IMAGECONTROL;
}
else if ( xServiceInfo->supportsService( SERVICE_FORMATTEDFIELD ) )
{
- nResId = RID_STR_PROPTITLE_FORMATTED;
+ pResId = RID_STR_PROPTITLE_FORMATTED;
}
else if ( xServiceInfo->supportsService( SERVICE_SHAPE ) )
{
- nResId = RID_STR_PROPTITLE_SHAPE;
+ pResId = RID_STR_PROPTITLE_SHAPE;
}
else if ( xServiceInfo->supportsService( SERVICE_REPORTDEFINITION ) )
{
- nResId = RID_STR_PROPTITLE_REPORT;
+ pResId = RID_STR_PROPTITLE_REPORT;
}
else if ( xServiceInfo->supportsService( SERVICE_SECTION ) )
{
- nResId = RID_STR_PROPTITLE_SECTION;
+ pResId = RID_STR_PROPTITLE_SECTION;
}
else if ( xServiceInfo->supportsService( SERVICE_FUNCTION ) )
{
- nResId = RID_STR_PROPTITLE_FUNCTION;
+ pResId = RID_STR_PROPTITLE_FUNCTION;
}
else if ( xServiceInfo->supportsService( SERVICE_GROUP ) )
{
- nResId = RID_STR_PROPTITLE_GROUP;
+ pResId = RID_STR_PROPTITLE_GROUP;
}
else if ( xServiceInfo->supportsService( SERVICE_FIXEDLINE ) )
{
- nResId = RID_STR_PROPTITLE_FIXEDLINE;
+ pResId = RID_STR_PROPTITLE_FIXEDLINE;
}
else
{
@@ -386,16 +387,16 @@ OUString PropBrw::GetHeadlineName( const uno::Sequence< Reference<uno::XInterfac
return aName;
}
- if (nResId)
+ if (pResId)
{
- aName += ModuleRes(nResId);
+ aName += RptResId(pResId);
}
}
}
else // multiselection
{
- aName = ModuleRes(RID_STR_BRWTITLE_PROPERTIES);
- aName += ModuleRes(RID_STR_BRWTITLE_MULTISELECT);
+ aName = RptResId(RID_STR_BRWTITLE_PROPERTIES);
+ aName += RptResId(RID_STR_BRWTITLE_MULTISELECT);
}
return aName;
diff --git a/reportdesign/source/ui/report/report.src b/reportdesign/source/ui/report/report.src
deleted file mode 100644
index 55472688ab79..000000000000
--- a/reportdesign/source/ui/report/report.src
+++ /dev/null
@@ -1,284 +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 "RptResId.hrc"
-#include "rptui_slotid.hrc"
-#include <svx/svxids.hrc>
-#include "helpids.hrc"
-
-// Property Browser Headline ----------------------------------------------------------------
-
-String RID_STR_BRWTITLE_PROPERTIES
-{
- Text [ en-US ] = "Properties: ";
-};
-String RID_STR_BRWTITLE_NO_PROPERTIES
-{
- Text [ en-US ] = "No Control marked";
-};
-String RID_STR_BRWTITLE_MULTISELECT
-{
- Text [ en-US ] = "Multiselection";
-};
-
-String RID_STR_PROPTITLE_IMAGECONTROL
-{
- Text [ en-US ] = "Image Control" ;
-};
-String RID_STR_PROPTITLE_FIXEDTEXT
-{
- Text [ en-US ] = "Label field" ;
-};
-String RID_STR_PROPTITLE_FIXEDLINE
-{
- Text [ en-US ] = "Line" ;
-};
-String RID_STR_PROPTITLE_FORMATTED
-{
- Text [ en-US ] = "Formatted Field";
-};
-String RID_STR_PROPTITLE_SHAPE
-{
- Text [ en-US ] = "Shape";
-};
-String RID_STR_PROPTITLE_REPORT
-{
- Text [ en-US ] = "Report";
-};
-String RID_STR_PROPTITLE_SECTION
-{
- Text [ en-US ] = "Section";
-};
-String RID_STR_PROPTITLE_FUNCTION
-{
- Text [ en-US ] = "Function";
-};
-String RID_STR_PROPTITLE_GROUP
-{
- Text [ en-US ] = "Group";
-};
-
-String RID_STR_UNDO_CHANGEPOSITION
-{
- Text [ en-US ] = "Change Object";
-};
-String RID_STR_UNDO_MOVE_GROUP
-{
- Text [ en-US ] = "Move Group(s)";
-};
-String RID_STR_UNDO_CONDITIONAL_FORMATTING
-{
- Text [ en-US ] = "Conditional Formatting";
-};
-String RID_STR_UNDO_REMOVE_REPORTHEADERFOOTER
-{
- Text [ en-US ] = "Remove report header / report footer";
-};
-
-String RID_STR_UNDO_ADD_REPORTHEADERFOOTER
-{
- Text [ en-US ] = "Add report header / report footer";
-};
-
-String RID_STR_UNDO_PROPERTY
-{
- Text [ en-US ] = "Change property '#'";
- Text [ x-comment ] = "The # character is used for replacing";
-};
-
-String RID_STR_UNDO_ADD_GROUP_HEADER
-{
- Text [ en-US ] = "Add group header ";
-};
-
-String RID_STR_UNDO_REMOVE_GROUP_HEADER
-{
- Text [ en-US ] = "Remove group header ";
-};
-
-String RID_STR_UNDO_ADD_GROUP_FOOTER
-{
- Text [ en-US ] = "Add group footer ";
-};
-
-String RID_STR_UNDO_REMOVE_GROUP_FOOTER
-{
- Text [ en-US ] = "Remove group footer ";
-};
-String RID_STR_UNDO_ADDFUNCTION
-{
- Text [ en-US ] = "Add function";
-};
-
-String STR_RPT_LABEL
-{
- Text [ en-US ] = "~Report name" ;
-};
-
-String RID_STR_UNDO_REMOVE_GROUP
-{
- Text [ en-US ] = "Delete Group" ;
-};
-
-String RID_STR_UNDO_APPEND_GROUP
-{
- Text [ en-US ] = "Add Group" ;
-};
-
-String RID_STR_UNDO_REMOVE_SELECTION
-{
- Text [ en-US ] = "Delete Selection" ;
-};
-String RID_STR_UNDO_REMOVE_FUNCTION
-{
- Text [ en-US ] = "Delete Function" ;
-};
-
-String RID_STR_UNDO_CHANGE_SIZE
-{
- Text [ en-US ] = "Change Size" ;
-};
-
-String RID_STR_UNDO_PASTE
-{
- Text [ en-US ] = "Paste" ;
-};
-
-String RID_STR_UNDO_INSERT_CONTROL
-{
- Text [ en-US ] = "Insert Control" ;
-};
-
-String RID_STR_UNDO_DELETE_CONTROL
-{
- Text [ en-US ] = "Delete Control" ;
-};
-
-String RID_STR_GROUPHEADER
-{
- Text [ en-US ] = "GroupHeader";
- Text [ x-comment ] = "Please try to avoid spaces in the name. It is used as a programmatic one.";
-};
-String RID_STR_GROUPFOOTER
-{
- Text [ en-US ] = "GroupFooter";
- Text [ x-comment ] = "Please try to avoid spaces in the name. It is used as a programmatic one.";
-};
-
-String RID_STR_FIELDSELECTION
-{
- Text [ en-US ] = "Add field:";
-};
-
-String RID_STR_FILTER
-{
- Text [ en-US ] = "Filter" ;
-};
-
-String RID_STR_UNDO_ALIGNMENT
-{
- Text [ en-US ] = "Change Alignment" ;
-};
-String RID_STR_HEADER
-{
- Text [ en-US ] = "# Header" ;
- Text[ x-comment ] = "# will be replaced with a name.";
-};
-String RID_STR_FOOTER
-{
- Text [ en-US ] = "# Footer" ;
- Text[ x-comment ] = "# will be replaced with a name.";
-};
-String RID_STR_IMPORT_GRAPHIC
-{
- Text [ en-US ] = "Insert graphics" ;
-};
-String RID_STR_DELETE
-{
- Text [ en-US ] = "Delete" ;
-};
-String RID_STR_FUNCTION
-{
- Text [ en-US ] = "Function" ;
-};
-
-String RID_STR_COULD_NOT_CREATE_REPORT
-{
- Text [ en-US ] = "An error occurred while creating the report." ;
-};
-String RID_STR_CAUGHT_FOREIGN_EXCEPTION
-{
- Text [ en-US ] = "An exception of type $type$ was caught." ;
-};
-String RID_STR_UNDO_CHANGEFONT
-{
- Text [ en-US ] = "Change font";
-};
-String RID_STR_UNDO_CHANGEPAGE
-{
- Text [ en-US ] = "Change page attributes";
-};
-String RID_STR_PAGEHEADERFOOTER_INSERT
-{
- Text [ en-US ] = "Insert Page Header/Footer";
-};
-String RID_STR_PAGEHEADERFOOTER_DELETE
-{
- Text [ en-US ] = "Delete Page Header/Footer";
-};
-String RID_STR_REPORTHEADERFOOTER_INSERT
-{
- Text [ en-US ] = "Insert Report Header/Footer";
-};
-String RID_STR_REPORTHEADERFOOTER_DELETE
-{
- Text [ en-US ] = "Delete Report Header/Footer";
-};
-String RID_ERR_NO_COMMAND
-{
- Text [ en-US ] = "The report can not be executed unless it is bound to content.";
-};
-String RID_ERR_NO_OBJECTS
-{
- Text [ en-US ] = "The report can not be executed unless at least one object has been inserted.";
-};
-String RID_STR_UNDO_SHRINK
-{
- Text [ en-US ] = "Shrink Section";
-};
-String RID_STR_DETAIL
-{
- Text [ en-US ] = "Detail";
-};
-String RID_STR_PAGE_HEADER
-{
- Text [ en-US ] = "Page Header";
-};
-String RID_STR_PAGE_FOOTER
-{
- Text [ en-US ] = "Page Footer";
-};
-String RID_STR_REPORT_HEADER
-{
- Text [ en-US ] = "Report Header";
-};
-String RID_STR_REPORT_FOOTER
-{
- Text [ en-US ] = "Report Footer";
-};
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/uiconfig/dbreport/ui/backgrounddialog.ui b/reportdesign/uiconfig/dbreport/ui/backgrounddialog.ui
index c08ef8bfd0b5..81f06b43ac9e 100644
--- a/reportdesign/uiconfig/dbreport/ui/backgrounddialog.ui
+++ b/reportdesign/uiconfig/dbreport/ui/backgrounddialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="BackgroundDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Section Setup</property>
+ <property name="title" translatable="yes" context="backgrounddialog|BackgroundDialog">Section Setup</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
@@ -97,7 +97,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0.4699999988079071</property>
- <property name="label" translatable="yes">Background</property>
+ <property name="label" translatable="yes" context="backgrounddialog|background">Background</property>
</object>
<packing>
<property name="tab_fill">False</property>
diff --git a/reportdesign/uiconfig/dbreport/ui/chardialog.ui b/reportdesign/uiconfig/dbreport/ui/chardialog.ui
index 47491da9b178..8fc9aa4da781 100644
--- a/reportdesign/uiconfig/dbreport/ui/chardialog.ui
+++ b/reportdesign/uiconfig/dbreport/ui/chardialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="CharDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Character Settings</property>
+ <property name="title" translatable="yes" context="chardialog|CharDialog">Character Settings</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
@@ -96,7 +96,7 @@
<object class="GtkLabel" id="font">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Font</property>
+ <property name="label" translatable="yes" context="chardialog|font">Font</property>
</object>
<packing>
<property name="tab_fill">False</property>
@@ -109,7 +109,7 @@
<object class="GtkLabel" id="fonteffects">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Font Effects</property>
+ <property name="label" translatable="yes" context="chardialog|fonteffects">Font Effects</property>
</object>
<packing>
<property name="position">1</property>
@@ -123,7 +123,7 @@
<object class="GtkLabel" id="position">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Position</property>
+ <property name="label" translatable="yes" context="chardialog|position">Position</property>
</object>
<packing>
<property name="position">2</property>
@@ -137,7 +137,7 @@
<object class="GtkLabel" id="asianlayout">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Asian Layout</property>
+ <property name="label" translatable="yes" context="chardialog|asianlayout">Asian Layout</property>
</object>
<packing>
<property name="position">3</property>
@@ -151,7 +151,7 @@
<object class="GtkLabel" id="background">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Highlighting</property>
+ <property name="label" translatable="yes" context="chardialog|background">Highlighting</property>
</object>
<packing>
<property name="position">4</property>
@@ -165,7 +165,7 @@
<object class="GtkLabel" id="alignment">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Alignment</property>
+ <property name="label" translatable="yes" context="chardialog|alignment">Alignment</property>
</object>
<packing>
<property name="position">5</property>
diff --git a/reportdesign/uiconfig/dbreport/ui/condformatdialog.ui b/reportdesign/uiconfig/dbreport/ui/condformatdialog.ui
index a336a5bfbc8f..623ffc6c4755 100644
--- a/reportdesign/uiconfig/dbreport/ui/condformatdialog.ui
+++ b/reportdesign/uiconfig/dbreport/ui/condformatdialog.ui
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="CondFormat">
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Conditional Formatting</property>
+ <property name="title" translatable="yes" context="condformatdialog|CondFormat">Conditional Formatting</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
diff --git a/reportdesign/uiconfig/dbreport/ui/conditionwin.ui b/reportdesign/uiconfig/dbreport/ui/conditionwin.ui
index 9c141ffdc11f..b5bb144de770 100644
--- a/reportdesign/uiconfig/dbreport/ui/conditionwin.ui
+++ b/reportdesign/uiconfig/dbreport/ui/conditionwin.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<!-- interface-requires LibreOffice 1.0 -->
<object class="GtkImage" id="image1">
@@ -53,8 +53,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<items>
- <item translatable="yes">Field Value Is</item>
- <item translatable="yes">Expression Is</item>
+ <item translatable="yes" context="conditionwin|typeCombobox">Field Value Is</item>
+ <item translatable="yes" context="conditionwin|typeCombobox">Expression Is</item>
</items>
</object>
<packing>
@@ -68,14 +68,14 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<items>
- <item translatable="yes">between</item>
- <item translatable="yes">not between</item>
- <item translatable="yes">equal to</item>
- <item translatable="yes">not equal to</item>
- <item translatable="yes">greater than</item>
- <item translatable="yes">less than</item>
- <item translatable="yes">greater than or equal to</item>
- <item translatable="yes">less than or equal to</item>
+ <item translatable="yes" context="conditionwin|opCombobox">between</item>
+ <item translatable="yes" context="conditionwin|opCombobox">not between</item>
+ <item translatable="yes" context="conditionwin|opCombobox">equal to</item>
+ <item translatable="yes" context="conditionwin|opCombobox">not equal to</item>
+ <item translatable="yes" context="conditionwin|opCombobox">greater than</item>
+ <item translatable="yes" context="conditionwin|opCombobox">less than</item>
+ <item translatable="yes" context="conditionwin|opCombobox">greater than or equal to</item>
+ <item translatable="yes" context="conditionwin|opCombobox">less than or equal to</item>
</items>
</object>
<packing>
@@ -104,7 +104,7 @@
</child>
<child>
<object class="GtkButton" id="lhsButton">
- <property name="label" translatable="yes">...</property>
+ <property name="label" translatable="yes" context="conditionwin|lhsButton">...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -127,7 +127,7 @@
<object class="GtkLabel" id="andLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">and</property>
+ <property name="label" translatable="yes" context="conditionwin|andLabel">and</property>
</object>
<packing>
<property name="expand">False</property>
@@ -155,7 +155,7 @@
</child>
<child>
<object class="GtkButton" id="rhsButton">
- <property name="label" translatable="yes">...</property>
+ <property name="label" translatable="yes" context="conditionwin|rhsButton">...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -217,7 +217,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:Bold</property>
- <property name="label" translatable="yes">Bold</property>
+ <property name="label" translatable="yes" context="conditionwin|ToolBoxItem1">Bold</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_bold.png</property>
</object>
@@ -232,7 +232,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:Italic</property>
- <property name="label" translatable="yes">Italic</property>
+ <property name="label" translatable="yes" context="conditionwin|ToolBoxItem2">Italic</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_italic.png</property>
</object>
@@ -247,7 +247,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:Underline</property>
- <property name="label" translatable="yes">Underline</property>
+ <property name="label" translatable="yes" context="conditionwin|ToolBoxItem3">Underline</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_underline.png</property>
</object>
@@ -272,7 +272,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:BackgroundColor</property>
- <property name="label" translatable="yes">Background Color</property>
+ <property name="label" translatable="yes" context="conditionwin|ToolBoxItem4">Background Color</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_backgroundcolor.png</property>
</object>
@@ -287,7 +287,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:FontColor</property>
- <property name="label" translatable="yes">Font Color</property>
+ <property name="label" translatable="yes" context="conditionwin|ToolBoxItem5">Font Color</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_fontcolor.png</property>
</object>
@@ -302,7 +302,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:FontDialog</property>
- <property name="label" translatable="yes">Character Formatting</property>
+ <property name="label" translatable="yes" context="conditionwin|ToolBoxItem6">Character Formatting</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_fontdialog.png</property>
</object>
@@ -368,7 +368,7 @@
<property name="column_spacing">6</property>
<child>
<object class="GtkButton" id="removeButton">
- <property name="label" translatable="yes">-</property>
+ <property name="label" translatable="yes" context="conditionwin|removeButton">-</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -382,7 +382,7 @@
</child>
<child>
<object class="GtkButton" id="addButton">
- <property name="label" translatable="yes">+</property>
+ <property name="label" translatable="yes" context="conditionwin|addButton">+</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
diff --git a/reportdesign/uiconfig/dbreport/ui/datetimedialog.ui b/reportdesign/uiconfig/dbreport/ui/datetimedialog.ui
index 065a46346028..3b877c6ba235 100644
--- a/reportdesign/uiconfig/dbreport/ui/datetimedialog.ui
+++ b/reportdesign/uiconfig/dbreport/ui/datetimedialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="DateTimeDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Date and Time</property>
+ <property name="title" translatable="yes" context="datetimedialog|DateTimeDialog">Date and Time</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
@@ -84,7 +84,7 @@
<property name="column_spacing">12</property>
<child>
<object class="GtkCheckButton" id="date">
- <property name="label" translatable="yes">_Include Date</property>
+ <property name="label" translatable="yes" context="datetimedialog|date">_Include Date</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -105,7 +105,7 @@
<property name="can_focus">False</property>
<property name="margin_left">12</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">_Format:</property>
+ <property name="label" translatable="yes" context="datetimedialog|datelistbox_label">_Format:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">datelistbox</property>
</object>
@@ -116,7 +116,7 @@
</child>
<child>
<object class="GtkCheckButton" id="time">
- <property name="label" translatable="yes">Include _Time</property>
+ <property name="label" translatable="yes" context="datetimedialog|time">Include _Time</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -137,7 +137,7 @@
<property name="can_focus">False</property>
<property name="margin_left">12</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Fo_rmat:</property>
+ <property name="label" translatable="yes" context="datetimedialog|timelistbox_label">Fo_rmat:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">timelistbox</property>
</object>
diff --git a/reportdesign/uiconfig/dbreport/ui/floatingfield.ui b/reportdesign/uiconfig/dbreport/ui/floatingfield.ui
index 050cc6104a1c..da3057f645fa 100644
--- a/reportdesign/uiconfig/dbreport/ui/floatingfield.ui
+++ b/reportdesign/uiconfig/dbreport/ui/floatingfield.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkWindow" id="FloatingField">
<property name="visible">True</property>
@@ -8,7 +8,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Sorting and Grouping</property>
+ <property name="title" translatable="yes" context="floatingfield|FloatingField">Sorting and Grouping</property>
<property name="type_hint">utility</property>
<child>
<object class="GtkGrid" id="grid3">
@@ -27,7 +27,7 @@
<object class="GtkToolButton" id="up">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Sort Ascending</property>
+ <property name="label" translatable="yes" context="floatingfield|up">Sort Ascending</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_sortup.png</property>
</object>
@@ -40,7 +40,7 @@
<object class="GtkToolButton" id="down">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Sort Descending</property>
+ <property name="label" translatable="yes" context="floatingfield|down">Sort Descending</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_sortdown.png</property>
</object>
@@ -53,7 +53,7 @@
<object class="GtkToolButton" id="delete">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Remove sorting</property>
+ <property name="label" translatable="yes" context="floatingfield|delete">Remove sorting</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_removefiltersort.png</property>
</object>
@@ -76,7 +76,7 @@
<object class="GtkToolButton" id="insert">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Insert</property>
+ <property name="label" translatable="yes" context="floatingfield|insert">Insert</property>
<property name="use_underline">True</property>
</object>
<packing>
@@ -95,7 +95,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
- <property name="label" translatable="yes">Highlight the fields to insert into the selected section of the template, then click Insert or press Enter.</property>
+ <property name="label" translatable="yes" context="floatingfield|helptext">Highlight the fields to insert into the selected section of the template, then click Insert or press Enter.</property>
<property name="wrap">True</property>
<property name="max_width_chars">60</property>
<property name="xalign">0</property>
diff --git a/reportdesign/uiconfig/dbreport/ui/floatingnavigator.ui b/reportdesign/uiconfig/dbreport/ui/floatingnavigator.ui
index e4d3ef8d8107..5163b146441e 100644
--- a/reportdesign/uiconfig/dbreport/ui/floatingnavigator.ui
+++ b/reportdesign/uiconfig/dbreport/ui/floatingnavigator.ui
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkWindow" id="FloatingNavigator">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Report navigator</property>
+ <property name="title" translatable="yes" context="floatingnavigator|FloatingNavigator">Report navigator</property>
<property name="type_hint">utility</property>
<child>
<object class="GtkBox" id="box">
diff --git a/reportdesign/uiconfig/dbreport/ui/floatingsort.ui b/reportdesign/uiconfig/dbreport/ui/floatingsort.ui
index d29f7b102e52..40fe9c3f67b9 100644
--- a/reportdesign/uiconfig/dbreport/ui/floatingsort.ui
+++ b/reportdesign/uiconfig/dbreport/ui/floatingsort.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkWindow" id="FloatingSort">
<property name="visible">True</property>
@@ -8,7 +8,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Sorting and Grouping</property>
+ <property name="title" translatable="yes" context="floatingsort|FloatingSort">Sorting and Grouping</property>
<property name="type_hint">utility</property>
<child>
<object class="GtkGrid" id="grid1">
@@ -50,7 +50,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Group actions</property>
+ <property name="label" translatable="yes" context="floatingsort|label5">Group actions</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">toolbox</property>
</object>
@@ -72,7 +72,7 @@
<object class="GtkToolButton" id="up">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Move up</property>
+ <property name="label" translatable="yes" context="floatingsort|up">Move up</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_moveup.png</property>
</object>
@@ -85,7 +85,7 @@
<object class="GtkToolButton" id="down">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Move down</property>
+ <property name="label" translatable="yes" context="floatingsort|down">Move down</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_movedown.png</property>
</object>
@@ -98,7 +98,7 @@
<object class="GtkToolButton" id="delete">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Delete</property>
+ <property name="label" translatable="yes" context="floatingsort|delete">Delete</property>
<property name="use_underline">True</property>
<property name="icon_name">cmd/sc_deleterows.png</property>
</object>
@@ -149,7 +149,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Groups</property>
+ <property name="label" translatable="yes" context="floatingsort|label1">Groups</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -189,7 +189,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Sorting</property>
+ <property name="label" translatable="yes" context="floatingsort|label6">Sorting</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">sorting</property>
</object>
@@ -205,7 +205,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Group Header</property>
+ <property name="label" translatable="yes" context="floatingsort|label7">Group Header</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">header</property>
</object>
@@ -221,7 +221,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Group Footer</property>
+ <property name="label" translatable="yes" context="floatingsort|label8">Group Footer</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">footer</property>
</object>
@@ -237,7 +237,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Group On</property>
+ <property name="label" translatable="yes" context="floatingsort|label9">Group On</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">group</property>
</object>
@@ -253,7 +253,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Group Interval</property>
+ <property name="label" translatable="yes" context="floatingsort|label10">Group Interval</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">interval</property>
</object>
@@ -269,7 +269,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Keep Together</property>
+ <property name="label" translatable="yes" context="floatingsort|label11">Keep Together</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">keep</property>
</object>
@@ -287,8 +287,8 @@
<property name="hexpand">True</property>
<property name="active">0</property>
<items>
- <item translatable="yes">Ascending</item>
- <item translatable="yes">Descending</item>
+ <item translatable="yes" context="floatingsort|sorting">Ascending</item>
+ <item translatable="yes" context="floatingsort|sorting">Descending</item>
</items>
</object>
<packing>
@@ -305,8 +305,8 @@
<property name="hexpand">True</property>
<property name="active">0</property>
<items>
- <item translatable="yes">Present</item>
- <item translatable="yes">Not present</item>
+ <item translatable="yes" context="floatingsort|header">Present</item>
+ <item translatable="yes" context="floatingsort|header">Not present</item>
</items>
</object>
<packing>
@@ -323,9 +323,9 @@
<property name="hexpand">True</property>
<property name="active">0</property>
<items>
- <item translatable="yes">No</item>
- <item translatable="yes">Whole Group</item>
- <item translatable="yes">With First Detail</item>
+ <item translatable="yes" context="floatingsort|keep">No</item>
+ <item translatable="yes" context="floatingsort|keep">Whole Group</item>
+ <item translatable="yes" context="floatingsort|keep">With First Detail</item>
</items>
</object>
<packing>
@@ -342,8 +342,8 @@
<property name="hexpand">True</property>
<property name="active">1</property>
<items>
- <item translatable="yes">Present</item>
- <item translatable="yes">Not present</item>
+ <item translatable="yes" context="floatingsort|footer">Present</item>
+ <item translatable="yes" context="floatingsort|footer">Not present</item>
</items>
</object>
<packing>
@@ -360,7 +360,7 @@
<property name="hexpand">True</property>
<property name="active">0</property>
<items>
- <item translatable="yes">Each Value</item>
+ <item translatable="yes" context="floatingsort|group">Each Value</item>
</items>
</object>
<packing>
@@ -391,7 +391,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Properties</property>
+ <property name="label" translatable="yes" context="floatingsort|label2">Properties</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -433,7 +433,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Help</property>
+ <property name="label" translatable="yes" context="floatingsort|label3">Help</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/reportdesign/uiconfig/dbreport/ui/groupsortmenu.ui b/reportdesign/uiconfig/dbreport/ui/groupsortmenu.ui
index b9df6f291084..b4825b5916cb 100644
--- a/reportdesign/uiconfig/dbreport/ui/groupsortmenu.ui
+++ b/reportdesign/uiconfig/dbreport/ui/groupsortmenu.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.10"/>
<object class="GtkMenu" id="menu">
<property name="visible">True</property>
@@ -9,7 +9,7 @@
<object class="GtkMenuItem" id="delete">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Delete</property>
+ <property name="label" translatable="yes" context="groupsortmenu|delete">_Delete</property>
<property name="use_underline">True</property>
</object>
</child>
diff --git a/reportdesign/uiconfig/dbreport/ui/navigatormenu.ui b/reportdesign/uiconfig/dbreport/ui/navigatormenu.ui
index 2b3cab082f74..29da91edc09c 100644
--- a/reportdesign/uiconfig/dbreport/ui/navigatormenu.ui
+++ b/reportdesign/uiconfig/dbreport/ui/navigatormenu.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.10"/>
<object class="GtkMenu" id="menu">
<property name="visible">True</property>
@@ -9,7 +9,7 @@
<object class="GtkMenuItem" id="sorting">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Sorting and Grouping...</property>
+ <property name="label" translatable="yes" context="navigatormenu|sorting">Sorting and Grouping...</property>
<property name="use_underline">True</property>
</object>
</child>
@@ -23,7 +23,7 @@
<object class="GtkCheckMenuItem" id="page">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Page Header/Footer...</property>
+ <property name="label" translatable="yes" context="navigatormenu|page">Page Header/Footer...</property>
<property name="use_underline">True</property>
</object>
</child>
@@ -31,7 +31,7 @@
<object class="GtkCheckMenuItem" id="report">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Report Header/Footer...</property>
+ <property name="label" translatable="yes" context="navigatormenu|report">Report Header/Footer...</property>
<property name="use_underline">True</property>
</object>
</child>
@@ -45,7 +45,7 @@
<object class="GtkMenuItem" id="function">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">New Function</property>
+ <property name="label" translatable="yes" context="navigatormenu|function">New Function</property>
<property name="use_underline">True</property>
</object>
</child>
@@ -59,7 +59,7 @@
<object class="GtkMenuItem" id="properties">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Properties...</property>
+ <property name="label" translatable="yes" context="navigatormenu|properties">Properties...</property>
<property name="use_underline">True</property>
</object>
</child>
@@ -67,7 +67,7 @@
<object class="GtkMenuItem" id="delete">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Delete</property>
+ <property name="label" translatable="yes" context="navigatormenu|delete">_Delete</property>
<property name="use_underline">True</property>
</object>
</child>
diff --git a/reportdesign/uiconfig/dbreport/ui/pagedialog.ui b/reportdesign/uiconfig/dbreport/ui/pagedialog.ui
index 9a8061da18a5..5fa08b2a48ab 100644
--- a/reportdesign/uiconfig/dbreport/ui/pagedialog.ui
+++ b/reportdesign/uiconfig/dbreport/ui/pagedialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="PageDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Page Setup</property>
+ <property name="title" translatable="yes" context="pagedialog|PageDialog">Page Setup</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
@@ -96,7 +96,7 @@
<object class="GtkLabel" id="page">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Page</property>
+ <property name="label" translatable="yes" context="pagedialog|page">Page</property>
</object>
<packing>
<property name="tab_fill">False</property>
@@ -110,7 +110,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0.4699999988079071</property>
- <property name="label" translatable="yes">Background</property>
+ <property name="label" translatable="yes" context="pagedialog|background">Background</property>
</object>
<packing>
<property name="position">1</property>
diff --git a/reportdesign/uiconfig/dbreport/ui/pagenumberdialog.ui b/reportdesign/uiconfig/dbreport/ui/pagenumberdialog.ui
index 50c54bf0b56d..0fe1de492856 100644
--- a/reportdesign/uiconfig/dbreport/ui/pagenumberdialog.ui
+++ b/reportdesign/uiconfig/dbreport/ui/pagenumberdialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="rpt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="PageNumberDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Page Numbers</property>
+ <property name="title" translatable="yes" context="pagenumberdialog|PageNumberDialog">Page Numbers</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
@@ -95,7 +95,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="pagen">
- <property name="label" translatable="yes">_Page N</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|pagen">_Page N</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -113,7 +113,7 @@
</child>
<child>
<object class="GtkRadioButton" id="pagenofm">
- <property name="label" translatable="yes">Page _N of M</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|pagenofm">Page _N of M</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -137,7 +137,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Format</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|label1">Format</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -174,7 +174,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="toppage">
- <property name="label" translatable="yes">_Top of Page (Header)</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|toppage">_Top of Page (Header)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -192,7 +192,7 @@
</child>
<child>
<object class="GtkRadioButton" id="bottompage">
- <property name="label" translatable="yes">_Bottom of Page (Footer)</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|bottompage">_Bottom of Page (Footer)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -216,7 +216,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Position</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|label2">Position</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -259,9 +259,9 @@
<property name="halign">start</property>
<property name="hexpand">True</property>
<items>
- <item translatable="yes">Left</item>
- <item translatable="yes">Center</item>
- <item translatable="yes">Right</item>
+ <item translatable="yes" context="pagenumberdialog|alignment">Left</item>
+ <item translatable="yes" context="pagenumberdialog|alignment">Center</item>
+ <item translatable="yes" context="pagenumberdialog|alignment">Right</item>
</items>
</object>
<packing>
@@ -274,7 +274,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">_Alignment:</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|alignment_label">_Alignment:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">alignment</property>
</object>
@@ -285,7 +285,7 @@
</child>
<child>
<object class="GtkCheckButton" id="shownumberonfirstpage">
- <property name="label" translatable="yes">Show Number on First Page</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|shownumberonfirstpage">Show Number on First Page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -306,7 +306,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">General</property>
+ <property name="label" translatable="yes" context="pagenumberdialog|label3">General</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>