summaryrefslogtreecommitdiff
path: root/reportdesign/inc
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/inc
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/inc')
-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.hxx30
-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
9 files changed, 573 insertions, 309 deletions
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/inc/core_resource.hxx b/reportdesign/inc/core_resource.hxx
new file mode 100644
index 000000000000..5d6643b83276
--- /dev/null
+++ b/reportdesign/inc/core_resource.hxx
@@ -0,0 +1,30 @@
+/* -*- 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 "dllapi.h"
+
+#include <rtl/ustring.hxx>
+
+OUString REPORTDESIGN_DLLPUBLIC RptResId(const char* pId);
+
+#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: */