diff options
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 24 | ||||
-rw-r--r-- | xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx | 20 | ||||
-rw-r--r-- | xmloff/source/text/XMLLineNumberingImportContext.cxx | 22 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextColumnsContext.cxx | 14 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextColumnsExport.cxx | 16 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextMasterPageContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextMasterPageExport.cxx | 22 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextShapeImportHelper.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextShapeStyleContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 140 | ||||
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 34 |
11 files changed, 151 insertions, 151 deletions
diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index 855ce4a1a97a..2aa5fb939e9f 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -109,18 +109,18 @@ void XMLFootnoteConfigHelper::characters( const OUString& rChars ) // XMLFootnoteConfigurationImportContext -const OUStringLiteral gsPropertyAnchorCharStyleName(u"AnchorCharStyleName"); -const OUStringLiteral gsPropertyCharStyleName(u"CharStyleName"); -const OUStringLiteral gsPropertyNumberingType(u"NumberingType"); -const OUStringLiteral gsPropertyPageStyleName(u"PageStyleName"); -const OUStringLiteral gsPropertyParagraphStyleName(u"ParaStyleName"); -const OUStringLiteral gsPropertyPrefix(u"Prefix"); -const OUStringLiteral gsPropertyStartAt(u"StartAt"); -const OUStringLiteral gsPropertySuffix(u"Suffix"); -const OUStringLiteral gsPropertyPositionEndOfDoc(u"PositionEndOfDoc"); -const OUStringLiteral gsPropertyFootnoteCounting(u"FootnoteCounting"); -const OUStringLiteral gsPropertyEndNotice(u"EndNotice"); -const OUStringLiteral gsPropertyBeginNotice(u"BeginNotice"); +constexpr OUStringLiteral gsPropertyAnchorCharStyleName(u"AnchorCharStyleName"); +constexpr OUStringLiteral gsPropertyCharStyleName(u"CharStyleName"); +constexpr OUStringLiteral gsPropertyNumberingType(u"NumberingType"); +constexpr OUStringLiteral gsPropertyPageStyleName(u"PageStyleName"); +constexpr OUStringLiteral gsPropertyParagraphStyleName(u"ParaStyleName"); +constexpr OUStringLiteral gsPropertyPrefix(u"Prefix"); +constexpr OUStringLiteral gsPropertyStartAt(u"StartAt"); +constexpr OUStringLiteral gsPropertySuffix(u"Suffix"); +constexpr OUStringLiteral gsPropertyPositionEndOfDoc(u"PositionEndOfDoc"); +constexpr OUStringLiteral gsPropertyFootnoteCounting(u"FootnoteCounting"); +constexpr OUStringLiteral gsPropertyEndNotice(u"EndNotice"); +constexpr OUStringLiteral gsPropertyBeginNotice(u"BeginNotice"); XMLFootnoteConfigurationImportContext::XMLFootnoteConfigurationImportContext( SvXMLImport& rImport, diff --git a/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx b/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx index 41f102ba519c..81d9f32af949 100644 --- a/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx +++ b/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx @@ -45,16 +45,16 @@ using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::lang::XMultiServiceFactory; -const OUStringLiteral gsFieldMaster_Bibliography(u"com.sun.star.text.FieldMaster.Bibliography"); -const OUStringLiteral gsBracketBefore(u"BracketBefore"); -const OUStringLiteral gsBracketAfter(u"BracketAfter"); -const OUStringLiteral gsIsNumberEntries(u"IsNumberEntries"); -const OUStringLiteral gsIsSortByPosition(u"IsSortByPosition"); -const OUStringLiteral gsSortKeys(u"SortKeys"); -const OUStringLiteral gsSortKey(u"SortKey"); -const OUStringLiteral gsIsSortAscending(u"IsSortAscending"); -const OUStringLiteral gsSortAlgorithm(u"SortAlgorithm"); -const OUStringLiteral gsLocale(u"Locale"); +constexpr OUStringLiteral gsFieldMaster_Bibliography(u"com.sun.star.text.FieldMaster.Bibliography"); +constexpr OUStringLiteral gsBracketBefore(u"BracketBefore"); +constexpr OUStringLiteral gsBracketAfter(u"BracketAfter"); +constexpr OUStringLiteral gsIsNumberEntries(u"IsNumberEntries"); +constexpr OUStringLiteral gsIsSortByPosition(u"IsSortByPosition"); +constexpr OUStringLiteral gsSortKeys(u"SortKeys"); +constexpr OUStringLiteral gsSortKey(u"SortKey"); +constexpr OUStringLiteral gsIsSortAscending(u"IsSortAscending"); +constexpr OUStringLiteral gsSortAlgorithm(u"SortAlgorithm"); +constexpr OUStringLiteral gsLocale(u"Locale"); XMLIndexBibliographyConfigurationContext::XMLIndexBibliographyConfigurationContext( SvXMLImport& rImport) : diff --git a/xmloff/source/text/XMLLineNumberingImportContext.cxx b/xmloff/source/text/XMLLineNumberingImportContext.cxx index 7df8c1917c1e..fde276850f9c 100644 --- a/xmloff/source/text/XMLLineNumberingImportContext.cxx +++ b/xmloff/source/text/XMLLineNumberingImportContext.cxx @@ -44,17 +44,17 @@ using ::com::sun::star::xml::sax::XFastAttributeList; using ::com::sun::star::text::XLineNumberingProperties; -const OUStringLiteral gsCharStyleName(u"CharStyleName"); -const OUStringLiteral gsCountEmptyLines(u"CountEmptyLines"); -const OUStringLiteral gsCountLinesInFrames(u"CountLinesInFrames"); -const OUStringLiteral gsDistance(u"Distance"); -const OUStringLiteral gsInterval(u"Interval"); -const OUStringLiteral gsSeparatorText(u"SeparatorText"); -const OUStringLiteral gsNumberPosition(u"NumberPosition"); -const OUStringLiteral gsNumberingType(u"NumberingType"); -const OUStringLiteral gsIsOn(u"IsOn"); -const OUStringLiteral gsRestartAtEachPage(u"RestartAtEachPage"); -const OUStringLiteral gsSeparatorInterval(u"SeparatorInterval"); +constexpr OUStringLiteral gsCharStyleName(u"CharStyleName"); +constexpr OUStringLiteral gsCountEmptyLines(u"CountEmptyLines"); +constexpr OUStringLiteral gsCountLinesInFrames(u"CountLinesInFrames"); +constexpr OUStringLiteral gsDistance(u"Distance"); +constexpr OUStringLiteral gsInterval(u"Interval"); +constexpr OUStringLiteral gsSeparatorText(u"SeparatorText"); +constexpr OUStringLiteral gsNumberPosition(u"NumberPosition"); +constexpr OUStringLiteral gsNumberingType(u"NumberingType"); +constexpr OUStringLiteral gsIsOn(u"IsOn"); +constexpr OUStringLiteral gsRestartAtEachPage(u"RestartAtEachPage"); +constexpr OUStringLiteral gsSeparatorInterval(u"SeparatorInterval"); XMLLineNumberingImportContext::XMLLineNumberingImportContext( SvXMLImport& rImport) diff --git a/xmloff/source/text/XMLTextColumnsContext.cxx b/xmloff/source/text/XMLTextColumnsContext.cxx index e6b0a54fa917..6c5bc01077d3 100644 --- a/xmloff/source/text/XMLTextColumnsContext.cxx +++ b/xmloff/source/text/XMLTextColumnsContext.cxx @@ -210,13 +210,13 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl( } } -const OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); -const OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); -const OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); -const OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); -const OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); -const OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); -const OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); +constexpr OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); +constexpr OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); +constexpr OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); +constexpr OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); +constexpr OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); +constexpr OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); +constexpr OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); XMLTextColumnsContext::XMLTextColumnsContext( SvXMLImport& rImport, sal_Int32 nElement, diff --git a/xmloff/source/text/XMLTextColumnsExport.cxx b/xmloff/source/text/XMLTextColumnsExport.cxx index 85f0009a9639..13f06fde36e6 100644 --- a/xmloff/source/text/XMLTextColumnsExport.cxx +++ b/xmloff/source/text/XMLTextColumnsExport.cxx @@ -43,14 +43,14 @@ using namespace ::com::sun::star::beans; using namespace ::xmloff::token; -const OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); -const OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); -const OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); -const OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); -const OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); -const OUStringLiteral gsIsAutomatic(u"IsAutomatic"); -const OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); -const OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); +constexpr OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); +constexpr OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); +constexpr OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); +constexpr OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); +constexpr OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); +constexpr OUStringLiteral gsIsAutomatic(u"IsAutomatic"); +constexpr OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); +constexpr OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); XMLTextColumnsExport::XMLTextColumnsExport( SvXMLExport& rExp ) : rExport( rExp ) diff --git a/xmloff/source/text/XMLTextMasterPageContext.cxx b/xmloff/source/text/XMLTextMasterPageContext.cxx index 9a0350db0974..5803ec5790a8 100644 --- a/xmloff/source/text/XMLTextMasterPageContext.cxx +++ b/xmloff/source/text/XMLTextMasterPageContext.cxx @@ -65,7 +65,7 @@ Reference < XStyle > XMLTextMasterPageContext::Create() return xNewStyle; } -const OUStringLiteral gsFollowStyle( u"FollowStyle" ); +constexpr OUStringLiteral gsFollowStyle( u"FollowStyle" ); XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, sal_Int32 /*nElement*/, diff --git a/xmloff/source/text/XMLTextMasterPageExport.cxx b/xmloff/source/text/XMLTextMasterPageExport.cxx index 13851617d8a7..87490a0df2ee 100644 --- a/xmloff/source/text/XMLTextMasterPageExport.cxx +++ b/xmloff/source/text/XMLTextMasterPageExport.cxx @@ -32,17 +32,17 @@ using namespace ::com::sun::star::text; using namespace ::com::sun::star::beans; using namespace ::xmloff::token; -const OUStringLiteral gsHeaderText( u"HeaderText" ); -const OUStringLiteral gsHeaderOn( u"HeaderIsOn" ); -const OUStringLiteral gsHeaderShareContent( u"HeaderIsShared" ); -const OUStringLiteral gsHeaderTextFirst( u"HeaderTextFirst" ); -const OUStringLiteral gsHeaderTextLeft( u"HeaderTextLeft" ); -const OUStringLiteral gsFirstShareContent( u"FirstIsShared" ); -const OUStringLiteral gsFooterText( u"FooterText" ); -const OUStringLiteral gsFooterOn( u"FooterIsOn" ); -const OUStringLiteral gsFooterShareContent( u"FooterIsShared" ); -const OUStringLiteral gsFooterTextFirst( u"FooterTextFirst" ); -const OUStringLiteral gsFooterTextLeft( u"FooterTextLeft" ); +constexpr OUStringLiteral gsHeaderText( u"HeaderText" ); +constexpr OUStringLiteral gsHeaderOn( u"HeaderIsOn" ); +constexpr OUStringLiteral gsHeaderShareContent( u"HeaderIsShared" ); +constexpr OUStringLiteral gsHeaderTextFirst( u"HeaderTextFirst" ); +constexpr OUStringLiteral gsHeaderTextLeft( u"HeaderTextLeft" ); +constexpr OUStringLiteral gsFirstShareContent( u"FirstIsShared" ); +constexpr OUStringLiteral gsFooterText( u"FooterText" ); +constexpr OUStringLiteral gsFooterOn( u"FooterIsOn" ); +constexpr OUStringLiteral gsFooterShareContent( u"FooterIsShared" ); +constexpr OUStringLiteral gsFooterTextFirst( u"FooterTextFirst" ); +constexpr OUStringLiteral gsFooterTextLeft( u"FooterTextLeft" ); XMLTextMasterPageExport::XMLTextMasterPageExport( SvXMLExport& rExp ) : XMLPageExport( rExp ) diff --git a/xmloff/source/text/XMLTextShapeImportHelper.cxx b/xmloff/source/text/XMLTextShapeImportHelper.cxx index 78488da2099b..506ad146e4ff 100644 --- a/xmloff/source/text/XMLTextShapeImportHelper.cxx +++ b/xmloff/source/text/XMLTextShapeImportHelper.cxx @@ -41,9 +41,9 @@ using namespace ::com::sun::star::text; using namespace ::com::sun::star::container; using namespace ::com::sun::star::xml::sax; -const OUStringLiteral gsAnchorType(u"AnchorType"); -const OUStringLiteral gsAnchorPageNo(u"AnchorPageNo"); -const OUStringLiteral gsVertOrientPosition(u"VertOrientPosition"); +constexpr OUStringLiteral gsAnchorType(u"AnchorType"); +constexpr OUStringLiteral gsAnchorPageNo(u"AnchorPageNo"); +constexpr OUStringLiteral gsVertOrientPosition(u"VertOrientPosition"); XMLTextShapeImportHelper::XMLTextShapeImportHelper( SvXMLImport& rImp ) : diff --git a/xmloff/source/text/XMLTextShapeStyleContext.cxx b/xmloff/source/text/XMLTextShapeStyleContext.cxx index a7c7049c025d..27accc1ed1c2 100644 --- a/xmloff/source/text/XMLTextShapeStyleContext.cxx +++ b/xmloff/source/text/XMLTextShapeStyleContext.cxx @@ -134,7 +134,7 @@ void XMLTextShapeStyleContext::SetAttribute( sal_uInt16 nPrefixKey, } -const OUStringLiteral gsIsAutoUpdate( u"IsAutoUpdate" ); +constexpr OUStringLiteral gsIsAutoUpdate( u"IsAutoUpdate" ); XMLTextShapeStyleContext::XMLTextShapeStyleContext( SvXMLImport& rImport, SvXMLStylesContext& rStyles, XmlStyleFamily nFamily ) : diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index fa4c6541d00a..f4d32a263144 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -295,78 +295,78 @@ static Sequence<OUString> GetStringSequenceProperty( // service names -const OUStringLiteral gsServicePrefix(u"com.sun.star.text.textfield."); -const OUStringLiteral gsFieldMasterPrefix(u"com.sun.star.text.FieldMaster."); -const OUStringLiteral gsPresentationServicePrefix(u"com.sun.star.presentation.TextField."); +constexpr OUStringLiteral gsServicePrefix(u"com.sun.star.text.textfield."); +constexpr OUStringLiteral gsFieldMasterPrefix(u"com.sun.star.text.FieldMaster."); +constexpr OUStringLiteral gsPresentationServicePrefix(u"com.sun.star.presentation.TextField."); // property names -const OUStringLiteral gsPropertyAdjust(u"Adjust"); -const OUStringLiteral gsPropertyAuthor(u"Author"); -const OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); -const OUStringLiteral gsPropertyChapterNumberingLevel(u"ChapterNumberingLevel"); -const OUStringLiteral gsPropertyCharStyleNames(u"CharStyleNames"); -const OUStringLiteral gsPropertyCondition(u"Condition"); -const OUStringLiteral gsPropertyContent(u"Content"); -const OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); -const OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); -const OUStringLiteral gsPropertyDataColumnName(u"DataColumnName"); -const OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); -const OUStringLiteral gsPropertyDataTableName(u"DataTableName"); -const OUStringLiteral gsPropertyDateTime(u"DateTime"); -const OUStringLiteral gsPropertyDateTimeValue(u"DateTimeValue"); -const OUStringLiteral gsPropertyDDECommandElement(u"DDECommandElement"); -const OUStringLiteral gsPropertyDDECommandFile(u"DDECommandFile"); -const OUStringLiteral gsPropertyDDECommandType(u"DDECommandType"); -const OUStringLiteral gsPropertyDependentTextFields(u"DependentTextFields"); -const OUStringLiteral gsPropertyFalseContent(u"FalseContent"); -const OUStringLiteral gsPropertyFields(u"Fields"); -const OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); -const OUStringLiteral gsPropertyFileFormat(u"FileFormat"); -const OUStringLiteral gsPropertyFullName(u"FullName"); -const OUStringLiteral gsPropertyHint(u"Hint"); -const OUStringLiteral gsPropertyInitials(u"Initials"); -const OUStringLiteral gsPropertyInstanceName(u"InstanceName"); -const OUStringLiteral gsPropertyIsAutomaticUpdate(u"IsAutomaticUpdate"); -const OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); -const OUStringLiteral gsPropertyIsDataBaseFormat(u"DataBaseFormat"); -const OUStringLiteral gsPropertyIsDate(u"IsDate"); -const OUStringLiteral gsPropertyIsExpression(u"IsExpression"); -const OUStringLiteral gsPropertyIsFixed(u"IsFixed"); -const OUStringLiteral gsPropertyIsFixedLanguage(u"IsFixedLanguage"); -const OUStringLiteral gsPropertyIsHidden(u"IsHidden"); -const OUStringLiteral gsPropertyIsInput(u"Input"); -const OUStringLiteral gsPropertyIsShowFormula(u"IsShowFormula"); -const OUStringLiteral gsPropertyIsVisible(u"IsVisible"); -const OUStringLiteral gsPropertyItems(u"Items"); -const OUStringLiteral gsPropertyLevel(u"Level"); -const OUStringLiteral gsPropertyMeasureKind(u"Kind"); -const OUStringLiteral gsPropertyName(u"Name"); -const OUStringLiteral gsPropertyNumberFormat(u"NumberFormat"); -const OUStringLiteral gsPropertyNumberingSeparator(u"NumberingSeparator"); -const OUStringLiteral gsPropertyNumberingType(u"NumberingType"); -const OUStringLiteral gsPropertyOffset(u"Offset"); -const OUStringLiteral gsPropertyOn(u"On"); -const OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); -const OUStringLiteral gsPropertyReferenceFieldPart(u"ReferenceFieldPart"); -const OUStringLiteral gsPropertyReferenceFieldSource(u"ReferenceFieldSource"); -const OUStringLiteral gsPropertyReferenceFieldLanguage(u"ReferenceFieldLanguage"); -const OUStringLiteral gsPropertyScriptType(u"ScriptType"); -const OUStringLiteral gsPropertySelectedItem(u"SelectedItem"); -const OUStringLiteral gsPropertySequenceNumber(u"SequenceNumber"); -const OUStringLiteral gsPropertySequenceValue(u"SequenceValue"); -const OUStringLiteral gsPropertySetNumber(u"SetNumber"); -const OUStringLiteral gsPropertySourceName(u"SourceName"); -const OUStringLiteral gsPropertySubType(u"SubType"); -const OUStringLiteral gsPropertyTargetFrame(u"TargetFrame"); -const OUStringLiteral gsPropertyTrueContent(u"TrueContent"); -const OUStringLiteral gsPropertyURL(u"URL"); -const OUStringLiteral gsPropertyURLContent(u"URLContent"); -const OUStringLiteral gsPropertyUserText(u"UserText"); -const OUStringLiteral gsPropertyValue(u"Value"); -const OUStringLiteral gsPropertyVariableName(u"VariableName"); -const OUStringLiteral gsPropertyHelp(u"Help"); -const OUStringLiteral gsPropertyTooltip(u"Tooltip"); -const OUStringLiteral gsPropertyTextRange(u"TextRange"); +constexpr OUStringLiteral gsPropertyAdjust(u"Adjust"); +constexpr OUStringLiteral gsPropertyAuthor(u"Author"); +constexpr OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); +constexpr OUStringLiteral gsPropertyChapterNumberingLevel(u"ChapterNumberingLevel"); +constexpr OUStringLiteral gsPropertyCharStyleNames(u"CharStyleNames"); +constexpr OUStringLiteral gsPropertyCondition(u"Condition"); +constexpr OUStringLiteral gsPropertyContent(u"Content"); +constexpr OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); +constexpr OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); +constexpr OUStringLiteral gsPropertyDataColumnName(u"DataColumnName"); +constexpr OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); +constexpr OUStringLiteral gsPropertyDataTableName(u"DataTableName"); +constexpr OUStringLiteral gsPropertyDateTime(u"DateTime"); +constexpr OUStringLiteral gsPropertyDateTimeValue(u"DateTimeValue"); +constexpr OUStringLiteral gsPropertyDDECommandElement(u"DDECommandElement"); +constexpr OUStringLiteral gsPropertyDDECommandFile(u"DDECommandFile"); +constexpr OUStringLiteral gsPropertyDDECommandType(u"DDECommandType"); +constexpr OUStringLiteral gsPropertyDependentTextFields(u"DependentTextFields"); +constexpr OUStringLiteral gsPropertyFalseContent(u"FalseContent"); +constexpr OUStringLiteral gsPropertyFields(u"Fields"); +constexpr OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); +constexpr OUStringLiteral gsPropertyFileFormat(u"FileFormat"); +constexpr OUStringLiteral gsPropertyFullName(u"FullName"); +constexpr OUStringLiteral gsPropertyHint(u"Hint"); +constexpr OUStringLiteral gsPropertyInitials(u"Initials"); +constexpr OUStringLiteral gsPropertyInstanceName(u"InstanceName"); +constexpr OUStringLiteral gsPropertyIsAutomaticUpdate(u"IsAutomaticUpdate"); +constexpr OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); +constexpr OUStringLiteral gsPropertyIsDataBaseFormat(u"DataBaseFormat"); +constexpr OUStringLiteral gsPropertyIsDate(u"IsDate"); +constexpr OUStringLiteral gsPropertyIsExpression(u"IsExpression"); +constexpr OUStringLiteral gsPropertyIsFixed(u"IsFixed"); +constexpr OUStringLiteral gsPropertyIsFixedLanguage(u"IsFixedLanguage"); +constexpr OUStringLiteral gsPropertyIsHidden(u"IsHidden"); +constexpr OUStringLiteral gsPropertyIsInput(u"Input"); +constexpr OUStringLiteral gsPropertyIsShowFormula(u"IsShowFormula"); +constexpr OUStringLiteral gsPropertyIsVisible(u"IsVisible"); +constexpr OUStringLiteral gsPropertyItems(u"Items"); +constexpr OUStringLiteral gsPropertyLevel(u"Level"); +constexpr OUStringLiteral gsPropertyMeasureKind(u"Kind"); +constexpr OUStringLiteral gsPropertyName(u"Name"); +constexpr OUStringLiteral gsPropertyNumberFormat(u"NumberFormat"); +constexpr OUStringLiteral gsPropertyNumberingSeparator(u"NumberingSeparator"); +constexpr OUStringLiteral gsPropertyNumberingType(u"NumberingType"); +constexpr OUStringLiteral gsPropertyOffset(u"Offset"); +constexpr OUStringLiteral gsPropertyOn(u"On"); +constexpr OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); +constexpr OUStringLiteral gsPropertyReferenceFieldPart(u"ReferenceFieldPart"); +constexpr OUStringLiteral gsPropertyReferenceFieldSource(u"ReferenceFieldSource"); +constexpr OUStringLiteral gsPropertyReferenceFieldLanguage(u"ReferenceFieldLanguage"); +constexpr OUStringLiteral gsPropertyScriptType(u"ScriptType"); +constexpr OUStringLiteral gsPropertySelectedItem(u"SelectedItem"); +constexpr OUStringLiteral gsPropertySequenceNumber(u"SequenceNumber"); +constexpr OUStringLiteral gsPropertySequenceValue(u"SequenceValue"); +constexpr OUStringLiteral gsPropertySetNumber(u"SetNumber"); +constexpr OUStringLiteral gsPropertySourceName(u"SourceName"); +constexpr OUStringLiteral gsPropertySubType(u"SubType"); +constexpr OUStringLiteral gsPropertyTargetFrame(u"TargetFrame"); +constexpr OUStringLiteral gsPropertyTrueContent(u"TrueContent"); +constexpr OUStringLiteral gsPropertyURL(u"URL"); +constexpr OUStringLiteral gsPropertyURLContent(u"URLContent"); +constexpr OUStringLiteral gsPropertyUserText(u"UserText"); +constexpr OUStringLiteral gsPropertyValue(u"Value"); +constexpr OUStringLiteral gsPropertyVariableName(u"VariableName"); +constexpr OUStringLiteral gsPropertyHelp(u"Help"); +constexpr OUStringLiteral gsPropertyTooltip(u"Tooltip"); +constexpr OUStringLiteral gsPropertyTextRange(u"TextRange"); XMLTextFieldExport::XMLTextFieldExport( SvXMLExport& rExp, std::unique_ptr<XMLPropertyState> pCombinedCharState) diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 958ebd6b4a92..ff54d40bc0f9 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -535,7 +535,7 @@ void XMLTextFieldImportContext::ForceUpdate( // XMLSenderFieldImportContext -const OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); +constexpr OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); XMLSenderFieldImportContext::XMLSenderFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -654,7 +654,7 @@ void XMLSenderFieldImportContext::PrepareField( // XMLAuthorFieldImportContext -const OUStringLiteral gsPropertyAuthorFullName(u"FullName"); +constexpr OUStringLiteral gsPropertyAuthorFullName(u"FullName"); XMLAuthorFieldImportContext::XMLAuthorFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -727,7 +727,7 @@ SvXMLEnumMapEntry<PageNumberType> const lcl_aSelectPageAttrMap[] = { XML_TOKEN_INVALID, PageNumberType(0) }, }; -const OUStringLiteral gsPropertyUserText(u"UserText"); +constexpr OUStringLiteral gsPropertyUserText(u"UserText"); XMLPageContinuationImportContext::XMLPageContinuationImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, sal_uInt16 nPrfx, @@ -878,8 +878,8 @@ void XMLPageNumberImportContext::PrepareField( // Placeholder -const OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); -const OUStringLiteral gsPropertyPlaceholder(u"PlaceHolder"); +constexpr OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); +constexpr OUStringLiteral gsPropertyPlaceholder(u"PlaceHolder"); XMLPlaceholderFieldImportContext::XMLPlaceholderFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -960,7 +960,7 @@ void XMLPlaceholderFieldImportContext::PrepareField( // time field -const OUStringLiteral gsPropertyAdjust(u"Adjust"); +constexpr OUStringLiteral gsPropertyAdjust(u"Adjust"); XMLTimeFieldImportContext::XMLTimeFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -1136,11 +1136,11 @@ void XMLDateFieldImportContext::ProcessAttribute( // database field superclass -const OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); -const OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); -const OUStringLiteral gsPropertyTableName(u"DataTableName"); -const OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); -const OUStringLiteral gsPropertyIsVisible(u"IsVisible"); +constexpr OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); +constexpr OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); +constexpr OUStringLiteral gsPropertyTableName(u"DataTableName"); +constexpr OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); +constexpr OUStringLiteral gsPropertyIsVisible(u"IsVisible"); XMLDatabaseFieldImportContext::XMLDatabaseFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -1604,7 +1604,7 @@ const char* XMLSimpleDocInfoImportContext::MapTokenToServiceName( // revision field -const OUStringLiteral sPropertyRevision(u"Revision"); +constexpr OUStringLiteral sPropertyRevision(u"Revision"); XMLRevisionDocInfoImportContext::XMLRevisionDocInfoImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, sal_uInt16 nPrfx, @@ -1874,9 +1874,9 @@ void XMLHiddenParagraphImportContext::PrepareField( // import conditional text (<text:conditional-text>) -const OUStringLiteral gsPropertyTrueContent(u"TrueContent"); -const OUStringLiteral gsPropertyFalseContent(u"FalseContent"); -const OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); +constexpr OUStringLiteral gsPropertyTrueContent(u"TrueContent"); +constexpr OUStringLiteral gsPropertyFalseContent(u"FalseContent"); +constexpr OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); XMLConditionalTextImportContext::XMLConditionalTextImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -2159,8 +2159,8 @@ const SvXMLEnumMapEntry<sal_uInt16> aChapterDisplayMap[] = { XML_TOKEN_INVALID, 0 } }; -const OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); -const OUStringLiteral gsPropertyLevel(u"Level"); +constexpr OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); +constexpr OUStringLiteral gsPropertyLevel(u"Level"); XMLChapterImportContext::XMLChapterImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, |