diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-20 18:43:34 +0200 |
commit | b60b3b5bbcc8db61bb24d3866b48cb4c63eb4f30 (patch) | |
tree | 0435420b4663f607f8a81fd944378cae54ea676a /svx | |
parent | 7c59c59a0b6abee5d2c147139a79051a190939aa (diff) |
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: svx
Change-Id: Ib5028b826a3f62303b9e0502af70ad62c578fbb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158240
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
46 files changed, 207 insertions, 207 deletions
diff --git a/svx/qa/unit/gallery/test_gallery.cxx b/svx/qa/unit/gallery/test_gallery.cxx index 0919a09503eb..6fb033e5f880 100644 --- a/svx/qa/unit/gallery/test_gallery.cxx +++ b/svx/qa/unit/gallery/test_gallery.cxx @@ -68,7 +68,7 @@ void GalleryObjTest::TestCreateTheme() std::unique_ptr<Gallery> pGallery(new Gallery(aGalleryURL)); CPPUNIT_ASSERT_MESSAGE("Could not create gallery instance", (pGallery != nullptr)); - static constexpr OUStringLiteral myThemeName = u"addytesttheme"; + static constexpr OUString myThemeName = u"addytesttheme"_ustr; CPPUNIT_ASSERT_MESSAGE("Could not create theme", pGallery->CreateTheme(myThemeName)); CPPUNIT_ASSERT_MESSAGE("Could not find theme", pGallery->HasTheme(myThemeName)); @@ -93,7 +93,7 @@ void GalleryObjTest::TestDeleteTheme() std::unique_ptr<Gallery> pGallery(new Gallery(aGalleryURL)); CPPUNIT_ASSERT_MESSAGE("Could not create gallery instance", (pGallery != nullptr)); - static constexpr OUStringLiteral myThemeName = u"addytesttheme"; + static constexpr OUString myThemeName = u"addytesttheme"_ustr; CPPUNIT_ASSERT_MESSAGE("Could not create theme", pGallery->CreateTheme(myThemeName)); CPPUNIT_ASSERT_MESSAGE("Could not find theme", pGallery->HasTheme(myThemeName)); @@ -129,12 +129,12 @@ void GalleryObjTest::TestSetThemeName() std::unique_ptr<Gallery> pGallery(new Gallery(aGalleryURL)); CPPUNIT_ASSERT_MESSAGE("Could not create gallery instance", (pGallery != nullptr)); - static constexpr OUStringLiteral myThemeName = u"addytesttheme"; + static constexpr OUString myThemeName = u"addytesttheme"_ustr; CPPUNIT_ASSERT_MESSAGE("Could not create theme", pGallery->CreateTheme(myThemeName)); CPPUNIT_ASSERT_MESSAGE("Could not find theme", pGallery->HasTheme(myThemeName)); // Rename theme - static constexpr OUStringLiteral myNewThemeName = u"addytestthemenew"; + static constexpr OUString myNewThemeName = u"addytestthemenew"_ustr; pGallery->RenameTheme(myThemeName, myNewThemeName); CPPUNIT_ASSERT_MESSAGE("Could not rename theme because old theme name still exists", !pGallery->HasTheme(myThemeName)); @@ -296,7 +296,7 @@ void GalleryObjTest::TestInsertGalleryObject() std::unique_ptr<Gallery> pGallery(new Gallery(aGalleryURL)); CPPUNIT_ASSERT_MESSAGE("Could not create gallery instance", (pGallery != nullptr)); - static constexpr OUStringLiteral myThemeName = u"addytesttheme"; + static constexpr OUString myThemeName = u"addytesttheme"_ustr; CPPUNIT_ASSERT_MESSAGE("Could not create theme", pGallery->CreateTheme(myThemeName)); CPPUNIT_ASSERT_MESSAGE("Could not find theme", pGallery->HasTheme(myThemeName)); @@ -341,7 +341,7 @@ void GalleryObjTest::TestRemoveGalleryObject() std::unique_ptr<Gallery> pGallery(new Gallery(aGalleryURL)); CPPUNIT_ASSERT_MESSAGE("Could not create gallery instance", (pGallery != nullptr)); - static constexpr OUStringLiteral myThemeName = u"addytesttheme"; + static constexpr OUString myThemeName = u"addytesttheme"_ustr; CPPUNIT_ASSERT_MESSAGE("Could not create theme", pGallery->CreateTheme(myThemeName)); CPPUNIT_ASSERT_MESSAGE("Could not find theme", pGallery->HasTheme(myThemeName)); @@ -396,7 +396,7 @@ void GalleryObjTest::TestChangePositionGalleryObject() std::unique_ptr<Gallery> pGallery(new Gallery(aGalleryURL)); CPPUNIT_ASSERT_MESSAGE("Could not create gallery instance", (pGallery != nullptr)); - static constexpr OUStringLiteral myThemeName = u"addytesttheme"; + static constexpr OUString myThemeName = u"addytesttheme"_ustr; CPPUNIT_ASSERT_MESSAGE("Could not create theme", pGallery->CreateTheme(myThemeName)); CPPUNIT_ASSERT_MESSAGE("Could not find theme", pGallery->HasTheme(myThemeName)); diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx index e625beaec508..3a6605fda632 100644 --- a/svx/source/accessibility/AccessibleControlShape.cxx +++ b/svx/source/accessibility/AccessibleControlShape.cxx @@ -61,10 +61,10 @@ using namespace ::com::sun::star::container; namespace { - constexpr OUStringLiteral NAME_PROPERTY_NAME = u"Name"; - constexpr OUStringLiteral DESC_PROPERTY_NAME = u"HelpText"; - constexpr OUStringLiteral LABEL_PROPERTY_NAME = u"Label"; - constexpr OUStringLiteral LABEL_CONTROL_PROPERTY_NAME = u"LabelControl"; + constexpr OUString NAME_PROPERTY_NAME = u"Name"_ustr; + constexpr OUString DESC_PROPERTY_NAME = u"HelpText"_ustr; + constexpr OUString LABEL_PROPERTY_NAME = u"Label"_ustr; + constexpr OUString LABEL_CONTROL_PROPERTY_NAME = u"LabelControl"_ustr; // return the property which should be used as AccessibleName OUString lcl_getPreferredAccNameProperty( const Reference< XPropertySetInfo >& _rxPSI ) diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx index ba8b7fd7f6f8..1edc2c8a2668 100644 --- a/svx/source/accessibility/AccessibleShape.cxx +++ b/svx/source/accessibility/AccessibleShape.cxx @@ -473,8 +473,8 @@ awt::Rectangle SAL_CALL AccessibleShape::getBounds() if ( mxShape.is() ) { - static constexpr OUStringLiteral sBoundRectName = u"BoundRect"; - static constexpr OUStringLiteral sAnchorPositionName = u"AnchorPosition"; + static constexpr OUString sBoundRectName = u"BoundRect"_ustr; + static constexpr OUString sAnchorPositionName = u"AnchorPosition"_ustr; // Get the shape's bounding box in internal coordinates (in 100th of // mm). Use the property BoundRect. Only if that is not supported ask diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index 6bbd898ad24a..7d105d63a728 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -557,7 +557,7 @@ void EnhancedCustomShape2d::ApplyShapeAttributes( const SdrCustomShapeGeometryIt m_nCoordWidthG = std::abs( aViewBox.Width ); m_nCoordHeightG = std::abs( aViewBox.Height); } - static constexpr OUStringLiteral sPath( u"Path" ); + static constexpr OUString sPath( u"Path"_ustr ); static constexpr OUStringLiteral sCoordinates( u"Coordinates" ); static constexpr OUStringLiteral sGluePoints( u"GluePoints" ); static constexpr OUStringLiteral sSegments( u"Segments" ); diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index 8a6c26edda24..78fc83bec15e 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -71,7 +71,7 @@ namespace { constexpr size_t RECENTLY_USED_LIMIT = 5; -constexpr OUStringLiteral constRecentlyUsedFileName(u"recentlyUsed.xml"); +constexpr OUString constRecentlyUsedFileName(u"recentlyUsed.xml"_ustr); OUString lcl_getClassificationUserPath() { diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx index a90e731450dd..1efe3c8f4f69 100644 --- a/svx/source/dialog/imapdlg.cxx +++ b/svx/source/dialog/imapdlg.cxx @@ -47,14 +47,14 @@ #include "dlgunit.hxx" #include <memory> -constexpr OUStringLiteral SELF_TARGET = u"_self"; -constexpr OUStringLiteral IMAP_CERN_FILTER = u"MAP - CERN"; -constexpr OUStringLiteral IMAP_NCSA_FILTER = u"MAP - NCSA"; -constexpr OUStringLiteral IMAP_BINARY_FILTER = u"SIP - StarView ImageMap"; +constexpr OUString SELF_TARGET = u"_self"_ustr; +constexpr OUString IMAP_CERN_FILTER = u"MAP - CERN"_ustr; +constexpr OUString IMAP_NCSA_FILTER = u"MAP - NCSA"_ustr; +constexpr OUString IMAP_BINARY_FILTER = u"SIP - StarView ImageMap"_ustr; constexpr OUStringLiteral IMAP_ALL_TYPE = u"*.*"; -constexpr OUStringLiteral IMAP_BINARY_TYPE = u"*.sip"; -constexpr OUStringLiteral IMAP_CERN_TYPE = u"*.map"; -constexpr OUStringLiteral IMAP_NCSA_TYPE = u"*.map"; +constexpr OUString IMAP_BINARY_TYPE = u"*.sip"_ustr; +constexpr OUString IMAP_CERN_TYPE = u"*.map"_ustr; +constexpr OUString IMAP_NCSA_TYPE = u"*.map"_ustr; SFX_IMPL_MODELESSDIALOGCONTOLLER_WITHID( SvxIMapDlgChildWindow, SID_IMAP ); diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index 44ae2b72fdbd..0802c302b75a 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -57,11 +57,11 @@ SFX_IMPL_CHILDWINDOW(SvxRubyChildWindow, SID_RUBY_DIALOG); namespace { -constexpr OUStringLiteral cRubyBaseText = u"RubyBaseText"; -constexpr OUStringLiteral cRubyText = u"RubyText"; -constexpr OUStringLiteral cRubyAdjust = u"RubyAdjust"; -constexpr OUStringLiteral cRubyPosition = u"RubyPosition"; -constexpr OUStringLiteral cRubyCharStyleName = u"RubyCharStyleName"; +constexpr OUString cRubyBaseText = u"RubyBaseText"_ustr; +constexpr OUString cRubyText = u"RubyText"_ustr; +constexpr OUString cRubyAdjust = u"RubyAdjust"_ustr; +constexpr OUString cRubyPosition = u"RubyPosition"_ustr; +constexpr OUString cRubyCharStyleName = u"RubyCharStyleName"_ustr; } // end anonymous namespace diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx index a90780a5bf15..29475f6f39c6 100644 --- a/svx/source/dialog/swframeexample.cxx +++ b/svx/source/dialog/swframeexample.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star::text; #define FLYINFLY_BORDER 3 -constexpr OUStringLiteral DEMOTEXT = u"Ij"; +constexpr OUString DEMOTEXT = u"Ij"_ustr; namespace { @@ -684,7 +684,7 @@ void SwFrameExample::Paint(vcl::RenderContext& rRenderContext, const tools::Rect } else { - rRenderContext.DrawText(aParaPrtArea, OUString(DEMOTEXT)); + rRenderContext.DrawText(aParaPrtArea, DEMOTEXT); DrawRect_Impl(rRenderContext, aDrawObj, m_aBlankCol, m_aBlankFrameCol ); } diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index 8e86ca7ee858..aa26e412a416 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -1706,7 +1706,7 @@ void FmGridControl::InitColumnByField( } // the control type is determined by the ColumnServiceName - static constexpr OUStringLiteral s_sPropColumnServiceName = u"ColumnServiceName"; + static constexpr OUString s_sPropColumnServiceName = u"ColumnServiceName"_ustr; if ( !::comphelper::hasProperty( s_sPropColumnServiceName, _rxColumnModel ) ) return; diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 7e9dfb35bff7..aafa8a161a88 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -84,8 +84,8 @@ using namespace ::dbtools; using ::com::sun::star::util::XNumberFormatter; -constexpr OUStringLiteral INVALIDTEXT = u"###"; -constexpr OUStringLiteral OBJECTTEXT = u"<OBJECT>"; +constexpr OUString INVALIDTEXT = u"###"_ustr; +constexpr OUString OBJECTTEXT = u"<OBJECT>"_ustr; //= helper @@ -458,7 +458,7 @@ void DbGridColumn::Paint(OutputDevice& rDev, if ( !bEnabled ) nStyle |= DrawTextFlags::Disable; - rDev.DrawText(rRect, OUString(INVALIDTEXT), nStyle); + rDev.DrawText(rRect, INVALIDTEXT, nStyle); } else if (m_bAutoValue && pRow->IsNew()) { @@ -493,14 +493,14 @@ void DbGridColumn::Paint(OutputDevice& rDev, if ( !bEnabled ) nStyle |= DrawTextFlags::Disable; - rDev.DrawText(rRect, OUString(INVALIDTEXT), nStyle); + rDev.DrawText(rRect, INVALIDTEXT, nStyle); } else if (pRow->HasField(m_nFieldPos) && m_bObject) { DrawTextFlags nStyle = DrawTextFlags::Clip | DrawTextFlags::Center; if ( !bEnabled ) nStyle |= DrawTextFlags::Disable; - rDev.DrawText(rRect, OUString(OBJECTTEXT), nStyle); + rDev.DrawText(rRect, OBJECTTEXT, nStyle); } } else if ( auto pFilterCell = dynamic_cast<FmXFilterCell*>( m_pCell.get() ) ) diff --git a/svx/source/fmcomp/gridcols.cxx b/svx/source/fmcomp/gridcols.cxx index 1e06a8e1b6c3..42b9a7637968 100644 --- a/svx/source/fmcomp/gridcols.cxx +++ b/svx/source/fmcomp/gridcols.cxx @@ -76,8 +76,8 @@ namespace sal_Int32 getColumnTypeByModelName(const OUString& aModelName) { - static constexpr OUStringLiteral aModelPrefix(u"com.sun.star.form.component."); - static constexpr OUStringLiteral aCompatibleModelPrefix(u"stardiv.one.form.component."); + static constexpr OUString aModelPrefix(u"com.sun.star.form.component."_ustr); + static constexpr OUString aCompatibleModelPrefix(u"stardiv.one.form.component."_ustr); sal_Int32 nTypeId = -1; if (aModelName == FM_COMPONENT_EDIT) diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index a00747cd2633..e73d3b46d7ac 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -59,9 +59,9 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xml::dom::events; using namespace ::svx; -constexpr OUStringLiteral CFGNAME_DATANAVIGATOR = u"DataNavigator"; -constexpr OUStringLiteral CFGNAME_SHOWDETAILS = u"ShowDetails"; -constexpr OUStringLiteral MSG_VARIABLE = u"%1"; +constexpr OUString CFGNAME_DATANAVIGATOR = u"DataNavigator"_ustr; +constexpr OUString CFGNAME_SHOWDETAILS = u"ShowDetails"_ustr; +constexpr OUString MSG_VARIABLE = u"%1"_ustr; constexpr OUStringLiteral MODELNAME = u"$MODELNAME"; constexpr OUStringLiteral INSTANCENAME = u"$INSTANCENAME"; constexpr OUStringLiteral ELEMENTNAME = u"$ELEMENTNAME"; @@ -75,35 +75,35 @@ namespace svxform // properties of instance constexpr OUStringLiteral PN_INSTANCE_MODEL = u"Instance"; - constexpr OUStringLiteral PN_INSTANCE_ID = u"ID"; + constexpr OUString PN_INSTANCE_ID = u"ID"_ustr; constexpr OUStringLiteral PN_INSTANCE_URL = u"URL"; // properties of binding - constexpr OUStringLiteral PN_BINDING_ID = u"BindingID"; - constexpr OUStringLiteral PN_BINDING_EXPR = u"BindingExpression"; + constexpr OUString PN_BINDING_ID = u"BindingID"_ustr; + constexpr OUString PN_BINDING_EXPR = u"BindingExpression"_ustr; constexpr OUStringLiteral PN_BINDING_MODEL = u"Model"; - constexpr OUStringLiteral PN_BINDING_NAMESPACES = u"ModelNamespaces"; - constexpr OUStringLiteral PN_READONLY_EXPR = u"ReadonlyExpression"; - constexpr OUStringLiteral PN_RELEVANT_EXPR = u"RelevantExpression"; - constexpr OUStringLiteral PN_REQUIRED_EXPR = u"RequiredExpression"; - constexpr OUStringLiteral PN_CONSTRAINT_EXPR = u"ConstraintExpression"; - constexpr OUStringLiteral PN_CALCULATE_EXPR = u"CalculateExpression"; - constexpr OUStringLiteral PN_BINDING_TYPE = u"Type"; + constexpr OUString PN_BINDING_NAMESPACES = u"ModelNamespaces"_ustr; + constexpr OUString PN_READONLY_EXPR = u"ReadonlyExpression"_ustr; + constexpr OUString PN_RELEVANT_EXPR = u"RelevantExpression"_ustr; + constexpr OUString PN_REQUIRED_EXPR = u"RequiredExpression"_ustr; + constexpr OUString PN_CONSTRAINT_EXPR = u"ConstraintExpression"_ustr; + constexpr OUString PN_CALCULATE_EXPR = u"CalculateExpression"_ustr; + constexpr OUString PN_BINDING_TYPE = u"Type"_ustr; // properties of submission - constexpr OUStringLiteral PN_SUBMISSION_ID = u"ID"; - constexpr OUStringLiteral PN_SUBMISSION_BIND = u"Bind"; - constexpr OUStringLiteral PN_SUBMISSION_REF = u"Ref"; - constexpr OUStringLiteral PN_SUBMISSION_ACTION = u"Action"; - constexpr OUStringLiteral PN_SUBMISSION_METHOD = u"Method"; - constexpr OUStringLiteral PN_SUBMISSION_REPLACE = u"Replace"; + constexpr OUString PN_SUBMISSION_ID = u"ID"_ustr; + constexpr OUString PN_SUBMISSION_BIND = u"Bind"_ustr; + constexpr OUString PN_SUBMISSION_REF = u"Ref"_ustr; + constexpr OUString PN_SUBMISSION_ACTION = u"Action"_ustr; + constexpr OUString PN_SUBMISSION_METHOD = u"Method"_ustr; + constexpr OUString PN_SUBMISSION_REPLACE = u"Replace"_ustr; // other const strings - constexpr OUStringLiteral TRUE_VALUE = u"true()"; + constexpr OUString TRUE_VALUE = u"true()"_ustr; constexpr OUStringLiteral NEW_ELEMENT = u"newElement"; constexpr OUStringLiteral NEW_ATTRIBUTE = u"newAttribute"; - constexpr OUStringLiteral EVENTTYPE_CHARDATA = u"DOMCharacterDataModified"; - constexpr OUStringLiteral EVENTTYPE_ATTR = u"DOMAttrModified"; + constexpr OUString EVENTTYPE_CHARDATA = u"DOMCharacterDataModified"_ustr; + constexpr OUString EVENTTYPE_ATTR = u"DOMAttrModified"_ustr; #define MIN_PAGE_COUNT 3 // at least one instance, one submission and one binding page @@ -932,7 +932,7 @@ namespace svxform DBG_ASSERT( pNode->m_xPropSet.is(), "XFormsPage::RemoveEntry(): no propset" ); bool bSubmission = ( DGTSubmission == m_eGroup ); TranslateId pResId = bSubmission ? RID_STR_QRY_REMOVE_SUBMISSION : RID_STR_QRY_REMOVE_BINDING; - OUString sProperty = bSubmission ? OUString(PN_SUBMISSION_ID) : OUString(PN_BINDING_ID); + OUString sProperty = bSubmission ? PN_SUBMISSION_ID : PN_BINDING_ID; OUString sSearch = bSubmission ? OUString(SUBMISSIONNAME) : OUString(BINDINGNAME); OUString sName; try diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 59d8dae0eb92..029b0f37e10a 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -161,7 +161,7 @@ void FmFormObj::impl_checkRefDevice_nothrow( bool _force ) Reference< XPropertySet > xModelProps( GetUnoControlModel(), UNO_QUERY_THROW ); Reference< XPropertySetInfo > xPropertyInfo( xModelProps->getPropertySetInfo(), UNO_SET_THROW ); - static constexpr OUStringLiteral sRefDevicePropName = u"ReferenceDevice"; + static constexpr OUString sRefDevicePropName = u"ReferenceDevice"_ustr; if ( xPropertyInfo->hasPropertyByName( sRefDevicePropName ) ) { rtl::Reference<VCLXDevice> pUnoRefDevice = new VCLXDevice; diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx index e4a50a7ef275..2d3219656774 100644 --- a/svx/source/form/fmundo.cxx +++ b/svx/source/form/fmundo.cxx @@ -676,7 +676,7 @@ void SAL_CALL FmXUndoEnvironment::propertyChange(const PropertyChangeEvent& evt) // TODO: we should cache all those things, else this might be too expensive. // However, this requires we're notified of changes in the value binding - static constexpr OUStringLiteral s_sExternalData = u"ExternalData"; + static constexpr OUString s_sExternalData = u"ExternalData"_ustr; if ( xBindingPropsPSI.is() && xBindingPropsPSI->hasPropertyByName( s_sExternalData ) ) { bool bExternalData = true; diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx index b33b625f3ae4..dc879a084802 100644 --- a/svx/source/form/formcontrolfactory.cxx +++ b/svx/source/form/formcontrolfactory.cxx @@ -433,7 +433,7 @@ namespace svxform case FormComponentType::IMAGEBUTTON: case FormComponentType::IMAGECONTROL: { - static constexpr OUStringLiteral sScaleModeProperty( u"ScaleMode" ); + static constexpr OUString sScaleModeProperty( u"ScaleMode"_ustr ); if ( xPSI->hasPropertyByName( sScaleModeProperty ) ) _rxControlModel->setPropertyValue( sScaleModeProperty, Any( ImageScaleMode::ISOTROPIC ) ); } diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 68e9b1f5274c..4198c5c367ae 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -3540,7 +3540,7 @@ namespace { try { - static constexpr OUStringLiteral s_sFormsCheckRequiredFields = u"FormsCheckRequiredFields"; + static constexpr OUString s_sFormsCheckRequiredFields = u"FormsCheckRequiredFields"_ustr; // first, check whether the form has a property telling us the answer // this allows people to use the XPropertyContainer interface of a form to control diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 8a3d23f3042f..9d4885244fce 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -347,8 +347,8 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, bool& rbDirIsReadO if( xContentAccess.is() ) { - static constexpr OUStringLiteral s_sTitle = u"Title"; - static constexpr OUStringLiteral s_sIsReadOnly = u"IsReadOnly"; + static constexpr OUString s_sTitle = u"Title"_ustr; + static constexpr OUString s_sIsReadOnly = u"IsReadOnly"_ustr; while( xResultSet->next() ) { diff --git a/svx/source/items/statusitem.cxx b/svx/source/items/statusitem.cxx index 3b326f39ebe0..d856775db1f8 100644 --- a/svx/source/items/statusitem.cxx +++ b/svx/source/items/statusitem.cxx @@ -13,8 +13,8 @@ #include <svl/memberid.h> #include <svx/statusitem.hxx> -constexpr OUStringLiteral STATUS_PARAM_VALUE = u"Value"; -constexpr OUStringLiteral STATUS_PARAM_TYPE = u"Type"; +constexpr OUString STATUS_PARAM_VALUE = u"Value"_ustr; +constexpr OUString STATUS_PARAM_TYPE = u"Type"_ustr; constexpr int STATUS_PARAMS = 2; SvxStatusItem::SvxStatusItem(TypedWhichId<SvxStatusItem> nWhich, const OUString& rString, diff --git a/svx/source/items/viewlayoutitem.cxx b/svx/source/items/viewlayoutitem.cxx index d923133a19bc..839f49a3614a 100644 --- a/svx/source/items/viewlayoutitem.cxx +++ b/svx/source/items/viewlayoutitem.cxx @@ -29,8 +29,8 @@ SfxPoolItem* SvxViewLayoutItem::CreateDefault() { return new SvxViewLayoutItem; } -constexpr OUStringLiteral VIEWLAYOUT_PARAM_COLUMNS = u"Columns"; -constexpr OUStringLiteral VIEWLAYOUT_PARAM_BOOKMODE = u"BookMode"; +constexpr OUString VIEWLAYOUT_PARAM_COLUMNS = u"Columns"_ustr; +constexpr OUString VIEWLAYOUT_PARAM_BOOKMODE = u"BookMode"_ustr; #define VIEWLAYOUT_PARAMS 2 diff --git a/svx/source/items/zoomslideritem.cxx b/svx/source/items/zoomslideritem.cxx index 046a0359153c..b59247b00d31 100644 --- a/svx/source/items/zoomslideritem.cxx +++ b/svx/source/items/zoomslideritem.cxx @@ -28,10 +28,10 @@ SfxPoolItem* SvxZoomSliderItem::CreateDefault() { return new SvxZoomSliderItem; } -constexpr OUStringLiteral ZOOMSLIDER_PARAM_CURRENTZOOM = u"Columns"; -constexpr OUStringLiteral ZOOMSLIDER_PARAM_SNAPPINGPOINTS = u"SnappingPoints"; -constexpr OUStringLiteral ZOOMSLIDER_PARAM_MINZOOM = u"MinValue"; -constexpr OUStringLiteral ZOOMSLIDER_PARAM_MAXZOOM = u"MaxValue"; +constexpr OUString ZOOMSLIDER_PARAM_CURRENTZOOM = u"Columns"_ustr; +constexpr OUString ZOOMSLIDER_PARAM_SNAPPINGPOINTS = u"SnappingPoints"_ustr; +constexpr OUString ZOOMSLIDER_PARAM_MINZOOM = u"MinValue"_ustr; +constexpr OUString ZOOMSLIDER_PARAM_MAXZOOM = u"MaxValue"_ustr; #define ZOOMSLIDER_PARAMS 4 diff --git a/svx/source/mnuctrls/smarttagmenu.cxx b/svx/source/mnuctrls/smarttagmenu.cxx index 67edb3ab96a2..f914be7d34e9 100644 --- a/svx/source/mnuctrls/smarttagmenu.cxx +++ b/svx/source/mnuctrls/smarttagmenu.cxx @@ -183,7 +183,7 @@ void SmartTagMenuController::FillMenu() sal_Int16 nItemCount = m_xPopupMenu->getItemCount(); if (nItemCount > 0) { - static constexpr OUStringLiteral aCommand = u".uno:AutoCorrectDlg?OpenSmartTag:bool=true"; + static constexpr OUString aCommand = u".uno:AutoCorrectDlg?OpenSmartTag:bool=true"_ustr; m_xPopupMenu->insertSeparator(nItemCount++); auto aProperties = vcl::CommandInfoProvider::GetCommandProperties(aCommand, m_aModuleName); m_xPopupMenu->insertItem(nMenuId, vcl::CommandInfoProvider::GetPopupLabelForCommand(aProperties), diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index 05f4c100d71c..682b83fc8908 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -37,7 +37,7 @@ using namespace css; using namespace css::uno; -constexpr OUStringLiteral SIDEBARGRADIENT = u"sidebargradient"; +constexpr OUString SIDEBARGRADIENT = u"sidebargradient"_ustr; namespace svx::sidebar { diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx index b065a66f65a5..18fabcbcd996 100644 --- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx +++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx @@ -31,7 +31,7 @@ using namespace css; using namespace css::uno; -constexpr OUStringLiteral SELECTWIDTH = u"SelectWidth"; +constexpr OUString SELECTWIDTH = u"SelectWidth"_ustr; namespace svx::sidebar { diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 0024a41458db..18abfa1160e3 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -52,7 +52,7 @@ using namespace css; using namespace css::uno; -constexpr OUStringLiteral USERITEM_NAME = u"FitItem"; +constexpr OUString USERITEM_NAME = u"FitItem"_ustr; namespace svx::sidebar { diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index aa562e37d616..b455e3063d65 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -386,7 +386,7 @@ uno::Reference<drawing::XCustomShapeEngine> const & SdrObjCustomShape::GetCustom aEngine = sEnhancedCustomShapeEngine; { - static constexpr OUStringLiteral sCustomShape = u"CustomShape"; + static constexpr OUString sCustomShape = u"CustomShape"_ustr; uno::Sequence<beans::PropertyValue> aPropValues{ comphelper::makePropertyValue(sCustomShape, aXShape) }; uno::Sequence<uno::Any> aArgument{ uno::Any(aPropValues) }; @@ -444,7 +444,7 @@ const SdrObject* SdrObjCustomShape::GetSdrObjectShadowFromCustomShape() const bool SdrObjCustomShape::IsTextPath() const { - static constexpr OUStringLiteral sTextPath( u"TextPath" ); + static constexpr OUString sTextPath( u"TextPath"_ustr ); bool bTextPathOn = false; const SdrCustomShapeGeometryItem& rGeometryItem = GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ); const uno::Any* pAny = rGeometryItem.GetPropertyValueByName( sTextPath, sTextPath ); @@ -457,7 +457,7 @@ bool SdrObjCustomShape::UseNoFillStyle() const { bool bRet = false; OUString sShapeType; - static constexpr OUStringLiteral sType( u"Type" ); + static constexpr OUString sType( u"Type"_ustr ); const SdrCustomShapeGeometryItem& rGeometryItem( GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) ); const uno::Any* pAny = rGeometryItem.GetPropertyValueByName( sType ); if ( pAny ) @@ -841,7 +841,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) { beans::PropertyValue aPropVal; OUString sShapeType; - static constexpr OUStringLiteral sType( u"Type" ); + static constexpr OUString sType( u"Type"_ustr ); SdrCustomShapeGeometryItem aGeometryItem( GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ) ); if ( pType && !pType->isEmpty() ) { @@ -873,7 +873,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) // AdjustmentValues - static constexpr OUStringLiteral sAdjustmentValues( u"AdjustmentValues" ); + static constexpr OUString sAdjustmentValues( u"AdjustmentValues"_ustr ); const uno::Any* pAny = aGeometryItem.GetPropertyValueByName( sAdjustmentValues ); if ( pAny ) *pAny >>= seqAdjustmentValues; @@ -908,7 +908,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) // Coordsize - static constexpr OUStringLiteral sViewBox( u"ViewBox" ); + static constexpr OUString sViewBox( u"ViewBox"_ustr ); const uno::Any* pViewBox = aGeometryItem.GetPropertyValueByName( sViewBox ); awt::Rectangle aViewBox; if ( !pViewBox || !(*pViewBox >>= aViewBox ) ) @@ -925,12 +925,12 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } } - static constexpr OUStringLiteral sPath( u"Path" ); + static constexpr OUString sPath( u"Path"_ustr ); // Path/Coordinates - static constexpr OUStringLiteral sCoordinates( u"Coordinates" ); + static constexpr OUString sCoordinates( u"Coordinates"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sPath, sCoordinates ); if ( !pAny && pDefCustomShape && pDefCustomShape->nVertices && pDefCustomShape->pVertices ) { @@ -948,7 +948,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Path/GluePoints - static constexpr OUStringLiteral sGluePoints( u"GluePoints" ); + static constexpr OUString sGluePoints( u"GluePoints"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sPath, sGluePoints ); if ( !pAny && pDefCustomShape && pDefCustomShape->nGluePoints && pDefCustomShape->pGluePoints ) { @@ -966,7 +966,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Path/Segments - static constexpr OUStringLiteral sSegments( u"Segments" ); + static constexpr OUString sSegments( u"Segments"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sPath, sSegments ); if ( !pAny && pDefCustomShape && pDefCustomShape->nElements && pDefCustomShape->pElements ) { @@ -985,7 +985,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Path/StretchX - static constexpr OUStringLiteral sStretchX( u"StretchX" ); + static constexpr OUString sStretchX( u"StretchX"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sPath, sStretchX ); if ( !pAny && pDefCustomShape ) { @@ -999,7 +999,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Path/StretchY - static constexpr OUStringLiteral sStretchY( u"StretchY" ); + static constexpr OUString sStretchY( u"StretchY"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sPath, sStretchY ); if ( !pAny && pDefCustomShape ) { @@ -1013,7 +1013,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Path/TextFrames - static constexpr OUStringLiteral sTextFrames( u"TextFrames" ); + static constexpr OUString sTextFrames( u"TextFrames"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sPath, sTextFrames ); if ( !pAny && pDefCustomShape && pDefCustomShape->nTextRect && pDefCustomShape->pTextRect ) { @@ -1034,7 +1034,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Equations - static constexpr OUStringLiteral sEquations( u"Equations" ); + static constexpr OUString sEquations( u"Equations"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sEquations ); if ( !pAny && pDefCustomShape && pDefCustomShape->nCalculation && pDefCustomShape->pCalculation ) { @@ -1050,7 +1050,7 @@ void SdrObjCustomShape::MergeDefaultAttributes( const OUString* pType ) } // Handles - static constexpr OUStringLiteral sHandles( u"Handles" ); + static constexpr OUString sHandles( u"Handles"_ustr ); pAny = aGeometryItem.GetPropertyValueByName( sHandles ); if ( !pAny && pDefCustomShape && pDefCustomShape->nHandles && pDefCustomShape->pHandles ) { @@ -1126,7 +1126,7 @@ bool SdrObjCustomShape::IsDefaultGeometry( const DefaultType eDefaultType ) cons MSO_SPT eSpType = EnhancedCustomShapeTypeNames::Get( sShapeType ); const mso_CustomShape* pDefCustomShape = GetCustomShapeContent( eSpType ); - static constexpr OUStringLiteral sPath( u"Path" ); + static constexpr OUString sPath( u"Path"_ustr ); switch( eDefaultType ) { case DefaultType::Viewbox : diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 0362d3656b3e..bd7db1a62c06 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -410,7 +410,7 @@ void SAL_CALL SdrLightEmbeddedClient_Impl::deactivatedUI() css::uno::Reference< css::frame::XLayoutManager > xLayoutManager(getLayoutManager()); if ( xLayoutManager.is() ) { - static constexpr OUStringLiteral aMenuBarURL = u"private:resource/menubar/menubar"; + static constexpr OUString aMenuBarURL = u"private:resource/menubar/menubar"_ustr; if ( !xLayoutManager->isElementVisible( aMenuBarURL ) ) xLayoutManager->createElement( aMenuBarURL ); } diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx index fac6d3bf376b..23c7495ad7d7 100644 --- a/svx/source/svdraw/svdtrans.cxx +++ b/svx/source/svdraw/svdtrans.cxx @@ -686,7 +686,7 @@ void SdrFormatter::Undirty() OUString SdrFormatter::GetStr(tools::Long nVal) const { - static constexpr OUStringLiteral aNullCode(u"0"); + static constexpr OUString aNullCode(u"0"_ustr); if(!nVal) { diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index d6a203ae3ccb..27233a6435a6 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -1170,7 +1170,7 @@ PointerStyle SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDe return PointerStyle::Arrow; } -constexpr OUStringLiteral STR_NOTHING = u"nothing"; +constexpr OUString STR_NOTHING = u"nothing"_ustr; OUString SdrView::GetStatusText() { OUString aName; diff --git a/svx/source/table/cellcursor.cxx b/svx/source/table/cellcursor.cxx index 6d3aa8a72f94..78358ca465d5 100644 --- a/svx/source/table/cellcursor.cxx +++ b/svx/source/table/cellcursor.cxx @@ -284,7 +284,7 @@ void CellCursor::split_column( sal_Int32 nCol, sal_Int32 nColumns, std::vector< if( nNewCols > 0 ) { - static constexpr OUStringLiteral sWidth(u"Width"); + static constexpr OUString sWidth(u"Width"_ustr); Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW ); Reference< XPropertySet > xRefColumn( xCols->getByIndex( nCol ), UNO_QUERY_THROW ); sal_Int32 nWidth = 0; @@ -398,7 +398,7 @@ void CellCursor::split_row( sal_Int32 nRow, sal_Int32 nRows, std::vector< sal_In if( nNewRows > 0 ) { - static constexpr OUStringLiteral sHeight(u"Height"); + static constexpr OUString sHeight(u"Height"_ustr); Reference< XTableRows > xRows( mxTable->getRows(), UNO_SET_THROW ); Reference< XPropertySet > xRefRow( xRows->getByIndex( nRow ), UNO_QUERY_THROW ); sal_Int32 nHeight = 0; diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index bb30b64773cd..9398a2c98460 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -537,7 +537,7 @@ void SdrTableObjImpl::DragEdge( bool mbHorizontal, int nEdge, sal_Int32 nOffset try { - static constexpr OUStringLiteral sSize( u"Size" ); + static constexpr OUString sSize( u"Size"_ustr ); if( mbHorizontal ) { if (nEdge <= getRowCount()) diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 5b3ffd156ee0..73c10be946c9 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -563,7 +563,7 @@ void SvxTableController::onInsert( sal_uInt16 nSId, const SfxItemSet* pArgs ) RemoveSelection(); - static constexpr OUStringLiteral sSize( u"Size" ); + static constexpr OUString sSize( u"Size"_ustr ); const bool bUndo(rModel.IsUndoEnabled()); switch( nSId ) diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index 7399687840e9..5a64f209a2ec 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -48,7 +48,7 @@ namespace sdr::table { static SvxBorderLine gEmptyBorder; -constexpr OUStringLiteral gsSize( u"Size" ); +constexpr OUString gsSize( u"Size"_ustr ); TableLayouter::TableLayouter( TableModelRef xTableModel ) : mxTable(std::move( xTableModel )) diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index 6ea3aa22fb67..982153976387 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -980,7 +980,7 @@ void TableModel::optimize() { try { - static constexpr OUStringLiteral sWidth(u"Width"); + static constexpr OUString sWidth(u"Width"_ustr); sal_Int32 nWidth1 = 0, nWidth2 = 0; uno::Reference<beans::XPropertySet> xSet1( static_cast< XCellRange* >( maColumns[nCol].get() ), uno::UNO_QUERY_THROW ); uno::Reference<beans::XPropertySet> xSet2( static_cast< XCellRange* >( maColumns[nCol-1].get() ), uno::UNO_QUERY_THROW ); @@ -1017,7 +1017,7 @@ void TableModel::optimize() { try { - static constexpr OUStringLiteral sHeight(u"Height"); + static constexpr OUString sHeight(u"Height"_ustr); sal_Int32 nHeight1 = 0, nHeight2 = 0; uno::Reference<beans::XPropertySet> xSet1( static_cast< XCellRange* >( maRows[nRow].get() ), uno::UNO_QUERY_THROW ); uno::Reference<beans::XPropertySet> xSet2( static_cast< XCellRange* >( maRows[nRow-1].get() ), uno::UNO_QUERY_THROW ); diff --git a/svx/source/table/tablertfexporter.cxx b/svx/source/table/tablertfexporter.cxx index 6e571bea4e10..447f88cbf3f1 100644 --- a/svx/source/table/tablertfexporter.cxx +++ b/svx/source/table/tablertfexporter.cxx @@ -68,7 +68,7 @@ void ExportAsRTF( SvStream& rStrm, SdrTableObj& rObj ) aEx.Write(); } -constexpr OUStringLiteral gsSize( u"Size" ); +constexpr OUString gsSize( u"Size"_ustr ); SdrTableRtfExporter::SdrTableRtfExporter( SvStream& rStrm, SdrTableObj& rObj ) : mrStrm( rStrm ) diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx index 80258b61df65..12a10a234c85 100644 --- a/svx/source/tbxctrls/extrusioncontrols.cxx +++ b/svx/source/tbxctrls/extrusioncontrols.cxx @@ -43,9 +43,9 @@ namespace svx { const sal_Int32 gSkewList[] = { 135, 90, 45, 180, 0, -360, -135, -90, -45 }; -constexpr OUStringLiteral g_sExtrusionDirection = u".uno:ExtrusionDirection"; -constexpr OUStringLiteral g_sExtrusionProjection = u".uno:ExtrusionProjection"; -constexpr OUStringLiteral EMPTY = u""; +constexpr OUString g_sExtrusionDirection = u".uno:ExtrusionDirection"_ustr; +constexpr OUString g_sExtrusionProjection = u".uno:ExtrusionProjection"_ustr; +constexpr OUString EMPTY = u""_ustr; constexpr OUString aLightOffBmps[] = { @@ -224,7 +224,7 @@ void ExtrusionDirectionWindow::statusChanged( IMPL_LINK_NOARG(ExtrusionDirectionWindow, SelectValueSetHdl, ValueSet*, void) { Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(g_sExtrusionDirection).copy(5), + g_sExtrusionDirection.copy(5), gSkewList[mxDirectionSet->GetSelectedItemId()-1]) }; mxControl->dispatchCommand( g_sExtrusionDirection, aArgs ); @@ -237,7 +237,7 @@ IMPL_LINK_NOARG(ExtrusionDirectionWindow, SelectToolbarMenuHdl, weld::Toggleable int nProjection = mxPerspective->get_active() ? 0 : 1; Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(g_sExtrusionProjection).copy(5), static_cast<sal_Int32>(nProjection)) }; + g_sExtrusionProjection.copy(5), static_cast<sal_Int32>(nProjection)) }; mxControl->dispatchCommand( g_sExtrusionProjection, aArgs ); implSetProjection( nProjection, true ); @@ -324,8 +324,8 @@ double ExtrusionDepthDialog::getDepth() const double const aDepthListInch[] = { 0, 1270,2540,5080,10160 }; double const aDepthListMM[] = { 0, 1000, 2500, 5000, 10000 }; -constexpr OUStringLiteral gsExtrusionDepth( u".uno:ExtrusionDepth" ); -constexpr OUStringLiteral gsMetricUnit( u".uno:MetricUnit" ); +constexpr OUString gsExtrusionDepth( u".uno:ExtrusionDepth"_ustr ); +constexpr OUString gsMetricUnit( u".uno:MetricUnit"_ustr ); ExtrusionDepthWindow::ExtrusionDepthWindow(svt::PopupWindowController* pControl, weld::Widget* pParent) : WeldToolbarPopup(pControl->getFrameInterface(), pParent, "svx/ui/depthwindow.ui", "DepthWindow") @@ -496,7 +496,7 @@ IMPL_LINK(ExtrusionDepthWindow, SelectHdl, weld::Toggleable&, rButton, void) } Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(gsExtrusionDepth).copy(5), fDepth) }; + gsExtrusionDepth.copy(5), fDepth) }; mxControl->dispatchCommand( gsExtrusionDepth, aArgs ); mbCommandDispatched = true; @@ -585,8 +585,8 @@ com_sun_star_comp_svx_ExtrusionDepthController_get_implementation( } -constexpr OUStringLiteral g_sExtrusionLightingDirection = u".uno:ExtrusionLightingDirection"; -constexpr OUStringLiteral g_sExtrusionLightingIntensity = u".uno:ExtrusionLightingIntensity"; +constexpr OUString g_sExtrusionLightingDirection = u".uno:ExtrusionLightingDirection"_ustr; +constexpr OUString g_sExtrusionLightingIntensity = u".uno:ExtrusionLightingIntensity"_ustr; ExtrusionLightingWindow::ExtrusionLightingWindow(svt::PopupWindowController* pControl, weld::Widget* pParent) @@ -726,7 +726,7 @@ IMPL_LINK_NOARG(ExtrusionLightingWindow, SelectValueSetHdl, ValueSet*, void) nDirection--; Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(g_sExtrusionLightingDirection).copy(5), nDirection) }; + g_sExtrusionLightingDirection.copy(5), nDirection) }; mxControl->dispatchCommand( g_sExtrusionLightingDirection, aArgs ); @@ -750,7 +750,7 @@ IMPL_LINK(ExtrusionLightingWindow, SelectToolbarMenuHdl, weld::Toggleable&, rBut nLevel = 2; Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(g_sExtrusionLightingIntensity).copy(5), static_cast<sal_Int32>(nLevel)) }; + g_sExtrusionLightingIntensity.copy(5), static_cast<sal_Int32>(nLevel)) }; mxControl->dispatchCommand( g_sExtrusionLightingIntensity, aArgs ); @@ -818,7 +818,7 @@ com_sun_star_comp_svx_ExtrusionLightingControl_get_implementation( } -constexpr OUStringLiteral g_sExtrusionSurface = u".uno:ExtrusionSurface"; +constexpr OUString g_sExtrusionSurface = u".uno:ExtrusionSurface"_ustr; ExtrusionSurfaceWindow::ExtrusionSurfaceWindow(svt::PopupWindowController* pControl, weld::Widget* pParent) : WeldToolbarPopup(pControl->getFrameInterface(), pParent, "svx/ui/surfacewindow.ui", "SurfaceWindow") @@ -894,7 +894,7 @@ IMPL_LINK(ExtrusionSurfaceWindow, SelectHdl, weld::Toggleable&, rButton, void) nSurface = 4; Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(g_sExtrusionSurface).copy(5), nSurface) }; + g_sExtrusionSurface.copy(5), nSurface) }; mxControl->dispatchCommand( g_sExtrusionSurface, aArgs ); diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx index 9ca978e07331..085d02ebd50b 100644 --- a/svx/source/tbxctrls/fillctrl.cxx +++ b/svx/source/tbxctrls/fillctrl.cxx @@ -28,8 +28,8 @@ #include <svx/svxids.hrc> #include <tools/json_writer.hxx> -constexpr OUStringLiteral TMP_STR_BEGIN = u"["; -constexpr OUStringLiteral TMP_STR_END = u"]"; +constexpr OUString TMP_STR_BEGIN = u"["_ustr; +constexpr OUString TMP_STR_END = u"]"_ustr; #include <svx/drawitem.hxx> #include <svx/xfillit0.hxx> diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 8011aa0c07bf..8b995ce9d473 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -303,7 +303,7 @@ private: } -constexpr OUStringLiteral gsFontworkAlignment(u".uno:FontworkAlignment"); +constexpr OUString gsFontworkAlignment(u".uno:FontworkAlignment"_ustr); FontworkAlignmentWindow::FontworkAlignmentWindow(svt::PopupWindowController* pControl, weld::Widget* pParent) : WeldToolbarPopup(pControl->getFrameInterface(), pParent, "svx/ui/fontworkalignmentcontrol.ui", "FontworkAlignmentControl") @@ -376,7 +376,7 @@ IMPL_LINK(FontworkAlignmentWindow, SelectHdl, weld::Toggleable&, rButton, void) nAlignment = 4; Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(gsFontworkAlignment).copy(5), nAlignment) }; + gsFontworkAlignment.copy(5), nAlignment) }; mxControl->dispatchCommand( gsFontworkAlignment, aArgs ); @@ -498,8 +498,8 @@ private: } -constexpr OUStringLiteral gsFontworkCharacterSpacing(u".uno:FontworkCharacterSpacing"); -constexpr OUStringLiteral gsFontworkKernCharacterPairs(u".uno:FontworkKernCharacterPairs"); +constexpr OUString gsFontworkCharacterSpacing(u".uno:FontworkCharacterSpacing"_ustr); +constexpr OUString gsFontworkKernCharacterPairs(u".uno:FontworkKernCharacterPairs"_ustr); FontworkCharacterSpacingWindow::FontworkCharacterSpacingWindow(svt::PopupWindowController* pControl, weld::Widget* pParent) : WeldToolbarPopup(pControl->getFrameInterface(), pParent, "svx/ui/fontworkcharacterspacingcontrol.ui", "FontworkCharacterSpacingControl") @@ -624,7 +624,7 @@ IMPL_LINK_NOARG(FontworkCharacterSpacingWindow, KernSelectHdl, weld::Toggleable& bool bKernOnOff = mxKernPairs->get_active(); Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(gsFontworkKernCharacterPairs).copy(5), bKernOnOff) }; + gsFontworkKernCharacterPairs.copy(5), bKernOnOff) }; mxControl->dispatchCommand( gsFontworkKernCharacterPairs, aArgs ); mbCommandDispatched = true; @@ -637,7 +637,7 @@ IMPL_LINK_NOARG(FontworkCharacterSpacingWindow, KernSelectHdl, weld::Toggleable& void FontworkCharacterSpacingWindow::DispatchSpacingDialog() { Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(gsFontworkCharacterSpacing).copy(5), mnCharacterSpacing) }; + gsFontworkCharacterSpacing.copy(5), mnCharacterSpacing) }; rtl::Reference<svt::PopupWindowController> xControl(mxControl); xControl->EndPopupMode(); @@ -676,7 +676,7 @@ IMPL_LINK(FontworkCharacterSpacingWindow, SelectHdl, weld::Toggleable&, rButton, nCharacterSpacing = 100; Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString(gsFontworkCharacterSpacing).copy(5), nCharacterSpacing) }; + gsFontworkCharacterSpacing.copy(5), nCharacterSpacing) }; mxControl->dispatchCommand( gsFontworkCharacterSpacing, aArgs ); mbCommandDispatched = true; diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 4a1cd448900e..9595bbe89ca1 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -64,7 +64,7 @@ using namespace ::com::sun::star::util; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; -constexpr OUStringLiteral TOOLBOX_NAME = u"colorbar"; +constexpr OUString TOOLBOX_NAME = u"colorbar"_ustr; #define RID_SVXSTR_UNDO_GRAFCROP RID_SVXSTR_GRAFCROP namespace { @@ -163,7 +163,7 @@ struct CommandToRID static OUString ImplGetRID( std::u16string_view aCommand ) { - static constexpr OUStringLiteral EMPTY = u""; + static constexpr OUString EMPTY = u""_ustr; static constexpr CommandToRID aImplCommandToResMap[] = { { ".uno:GrafRed", RID_SVXBMP_GRAF_RED }, diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 94bfef34f44d..6253d4f4b0d4 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -4188,7 +4188,7 @@ void SvxCurrencyToolBoxControl::inner_GetCurrencySymbols( CollatorWrapper aCollator( ::comphelper::getProcessComponentContext() ); aCollator.loadDefaultCollator( Application::GetSettings().GetLanguageTag().getLocale(), 0 ); - static constexpr OUStringLiteral aTwoSpace(u" "); + static constexpr OUString aTwoSpace(u" "_ustr); // appending "long symbol" list for( sal_uInt16 i = 1; i < nCount; ++i ) diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index aaa7cddb4fd4..e4a0a45e0f07 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -67,12 +67,12 @@ using namespace css; namespace { -constexpr OUStringLiteral COMMAND_FINDTEXT = u".uno:FindText"; -constexpr OUStringLiteral COMMAND_DOWNSEARCH = u".uno:DownSearch"; -constexpr OUStringLiteral COMMAND_UPSEARCH = u".uno:UpSearch"; +constexpr OUString COMMAND_FINDTEXT = u".uno:FindText"_ustr; +constexpr OUString COMMAND_DOWNSEARCH = u".uno:DownSearch"_ustr; +constexpr OUString COMMAND_UPSEARCH = u".uno:UpSearch"_ustr; constexpr OUStringLiteral COMMAND_FINDALL = u".uno:FindAll"; -constexpr OUStringLiteral COMMAND_MATCHCASE = u".uno:MatchCase"; -constexpr OUStringLiteral COMMAND_SEARCHFORMATTED = u".uno:SearchFormattedDisplayString"; +constexpr OUString COMMAND_MATCHCASE = u".uno:MatchCase"_ustr; +constexpr OUString COMMAND_SEARCHFORMATTED = u".uno:SearchFormattedDisplayString"_ustr; class CheckButtonItemWindow final : public InterimItemWindow { @@ -296,7 +296,7 @@ IMPL_LINK(FindTextFieldControl, KeyInputHdl, const KeyEvent&, rKeyEvent, bool) aValue >>= xLayoutManager; if (xLayoutManager.is()) { - static constexpr OUStringLiteral sResourceURL( u"private:resource/toolbar/findbar" ); + static constexpr OUString sResourceURL( u"private:resource/toolbar/findbar"_ustr ); xLayoutManager->hideElement( sResourceURL ); xLayoutManager->destroyElement( sResourceURL ); } @@ -718,7 +718,7 @@ private: UpDownSearchToolboxController::UpDownSearchToolboxController( const css::uno::Reference< css::uno::XComponentContext > & rxContext, Type eType ) : UpDownSearchToolboxController_Base( rxContext, css::uno::Reference< css::frame::XFrame >(), - (eType == UP) ? OUString( COMMAND_UPSEARCH ): OUString( COMMAND_DOWNSEARCH ) ), + (eType == UP) ? COMMAND_UPSEARCH: COMMAND_DOWNSEARCH ), meType( eType ) { } @@ -1126,7 +1126,7 @@ void SAL_CALL ExitSearchToolboxController::execute( sal_Int16 /*KeyModifier*/ ) aValue >>= xLayoutManager; if (xLayoutManager.is()) { - static constexpr OUStringLiteral sResourceURL( u"private:resource/toolbar/findbar" ); + static constexpr OUString sResourceURL( u"private:resource/toolbar/findbar"_ustr ); xLayoutManager->hideElement( sResourceURL ); xLayoutManager->destroyElement( sResourceURL ); } @@ -1371,7 +1371,7 @@ void SAL_CALL FindbarDispatcher::dispatch( const css::util::URL& aURL, const css if (!xLayoutManager.is()) return; - static constexpr OUStringLiteral sResourceURL( u"private:resource/toolbar/findbar" ); + static constexpr OUString sResourceURL( u"private:resource/toolbar/findbar"_ustr ); css::uno::Reference< css::ui::XUIElement > xUIElement = xLayoutManager->getElement(sResourceURL); if (!xUIElement.is()) { diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index 44b13708f879..033008809a22 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -117,8 +117,8 @@ static void getLightingDirectionDefaults( const Direction3D **pLighting1Defaults static void impl_execute( SfxRequest const & rReq, SdrCustomShapeGeometryItem& rGeometryItem, SdrObject* pObj ) { - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; - static constexpr OUStringLiteral sRotateAngle = u"RotateAngle"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; + static constexpr OUString sRotateAngle = u"RotateAngle"_ustr; sal_uInt16 nSID = rReq.GetSlot(); switch( nSID ) @@ -686,7 +686,7 @@ static void getExtrusionDirectionState( SdrView const * pSdrView, SfxItemSet& rS const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const css::uno::Any* pAny; @@ -833,7 +833,7 @@ static void getExtrusionProjectionState( SdrView const * pSdrView, SfxItemSet& r const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const css::uno::Any* pAny; @@ -888,7 +888,7 @@ static void getExtrusionSurfaceState( SdrView const * pSdrView, SfxItemSet& rSet const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const css::uno::Any* pAny; @@ -981,7 +981,7 @@ static void getExtrusionDepthState( SdrView const * pSdrView, SfxItemSet& rSet ) const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const css::uno::Any* pAny; @@ -1058,7 +1058,7 @@ static void getExtrusionLightingDirectionState( SdrView const * pSdrView, SfxIte const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const Direction3D * pLighting1Defaults; const Direction3D * pLighting2Defaults; @@ -1137,7 +1137,7 @@ static void getExtrusionLightingIntensityState( SdrView const * pSdrView, SfxIte const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const css::uno::Any* pAny; @@ -1204,7 +1204,7 @@ static void getExtrusionColorState( SdrView const * pSdrView, SfxItemSet& rSet ) const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const css::uno::Any* pAny; @@ -1273,7 +1273,7 @@ static void getExtrusionColorState( SdrView const * pSdrView, SfxItemSet& rSet ) namespace svx { bool checkForSelectedCustomShapes( SdrView const * pSdrView, bool bOnlyExtruded ) { - static constexpr OUStringLiteral sExtrusion = u"Extrusion"; + static constexpr OUString sExtrusion = u"Extrusion"_ustr; const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); const size_t nCount = rMarkList.GetMarkCount(); diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx index 8b29f3abb532..db26250def81 100644 --- a/svx/source/toolbars/fontworkbar.cxx +++ b/svx/source/toolbars/fontworkbar.cxx @@ -207,7 +207,7 @@ FontworkBar::~FontworkBar() namespace svx { bool checkForFontWork( const SdrObject* pObj ) { - static constexpr OUStringLiteral sTextPath = u"TextPath"; + static constexpr OUString sTextPath = u"TextPath"_ustr; bool bFound = false; if( dynamic_cast<const SdrObjCustomShape*>( pObj) != nullptr ) @@ -305,19 +305,19 @@ static void impl_execute( SfxRequest const & rReq, SdrCustomShapeGeometryItem& r static void GetGeometryForCustomShape( SdrCustomShapeGeometryItem& rGeometryItem, const OUString& rCustomShape ) { - static constexpr OUStringLiteral sType( u"Type" ); + static constexpr OUString sType( u"Type"_ustr ); css::beans::PropertyValue aPropVal; aPropVal.Name = sType; aPropVal.Value <<= rCustomShape; rGeometryItem.SetPropertyValue( aPropVal ); - static constexpr OUStringLiteral sAdjustmentValues( u"AdjustmentValues" ); - static constexpr OUStringLiteral sCoordinateOrigin( u"CoordinateOrigin" ); - static constexpr OUStringLiteral sCoordinateSize( u"CoordinateSize" ); - static constexpr OUStringLiteral sEquations( u"Equations" ); - static constexpr OUStringLiteral sHandles( u"Handles" ); - static constexpr OUStringLiteral sPath( u"Path" ); + static constexpr OUString sAdjustmentValues( u"AdjustmentValues"_ustr ); + static constexpr OUString sCoordinateOrigin( u"CoordinateOrigin"_ustr ); + static constexpr OUString sCoordinateSize( u"CoordinateSize"_ustr ); + static constexpr OUString sEquations( u"Equations"_ustr ); + static constexpr OUString sHandles( u"Handles"_ustr ); + static constexpr OUString sPath( u"Path"_ustr ); rGeometryItem.ClearPropertyValue( sAdjustmentValues ); rGeometryItem.ClearPropertyValue( sCoordinateOrigin ); rGeometryItem.ClearPropertyValue( sCoordinateSize ); diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx index 28f9558ac320..e5927030d133 100644 --- a/svx/source/unodraw/unomod.cxx +++ b/svx/source/unodraw/unomod.cxx @@ -374,7 +374,7 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawingModel::createInstance( c uno::Reference< uno::XInterface > xRet; - static constexpr OUStringLiteral aPackagePrefix( u"com.sun.star.presentation." ); + static constexpr OUString aPackagePrefix( u"com.sun.star.presentation."_ustr ); if( aServiceSpecifier.startsWith( aPackagePrefix ) ) { SvxShape* pShape = nullptr; diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 45d1589728be..2ce0ed35c3e6 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -3126,49 +3126,49 @@ OUString SAL_CALL SvxShape::getImplementationName() return "SvxShape"; } -constexpr OUStringLiteral sUNO_service_style_ParagraphProperties = u"com.sun.star.style.ParagraphProperties"; -constexpr OUStringLiteral sUNO_service_style_ParagraphPropertiesComplex = u"com.sun.star.style.ParagraphPropertiesComplex"; -constexpr OUStringLiteral sUNO_service_style_ParagraphPropertiesAsian = u"com.sun.star.style.ParagraphPropertiesAsian"; -constexpr OUStringLiteral sUNO_service_style_CharacterProperties = u"com.sun.star.style.CharacterProperties"; -constexpr OUStringLiteral sUNO_service_style_CharacterPropertiesComplex = u"com.sun.star.style.CharacterPropertiesComplex"; -constexpr OUStringLiteral sUNO_service_style_CharacterPropertiesAsian = u"com.sun.star.style.CharacterPropertiesAsian"; - -constexpr OUStringLiteral sUNO_service_drawing_FillProperties = u"com.sun.star.drawing.FillProperties"; -constexpr OUStringLiteral sUNO_service_drawing_TextProperties = u"com.sun.star.drawing.TextProperties"; -constexpr OUStringLiteral sUNO_service_drawing_LineProperties = u"com.sun.star.drawing.LineProperties"; -constexpr OUStringLiteral sUNO_service_drawing_ConnectorProperties = u"com.sun.star.drawing.ConnectorProperties"; -constexpr OUStringLiteral sUNO_service_drawing_MeasureProperties = u"com.sun.star.drawing.MeasureProperties"; -constexpr OUStringLiteral sUNO_service_drawing_ShadowProperties = u"com.sun.star.drawing.ShadowProperties"; - -constexpr OUStringLiteral sUNO_service_drawing_RotationDescriptor = u"com.sun.star.drawing.RotationDescriptor"; - -constexpr OUStringLiteral sUNO_service_drawing_Text = u"com.sun.star.drawing.Text"; -constexpr OUStringLiteral sUNO_service_drawing_GroupShape = u"com.sun.star.drawing.GroupShape"; - -constexpr OUStringLiteral sUNO_service_drawing_CustomShapeProperties = u"com.sun.star.drawing.CustomShapeProperties"; -constexpr OUStringLiteral sUNO_service_drawing_CustomShape = u"com.sun.star.drawing.CustomShape"; - -constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonDescriptor = u"com.sun.star.drawing.PolyPolygonDescriptor"; -constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonBezierDescriptor= u"com.sun.star.drawing.PolyPolygonBezierDescriptor"; - -constexpr OUStringLiteral sUNO_service_drawing_LineShape = u"com.sun.star.drawing.LineShape"; -constexpr OUStringLiteral sUNO_service_drawing_Shape = u"com.sun.star.drawing.Shape"; -constexpr OUStringLiteral sUNO_service_drawing_RectangleShape = u"com.sun.star.drawing.RectangleShape"; -constexpr OUStringLiteral sUNO_service_drawing_EllipseShape = u"com.sun.star.drawing.EllipseShape"; -constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonShape = u"com.sun.star.drawing.PolyPolygonShape"; -constexpr OUStringLiteral sUNO_service_drawing_PolyLineShape = u"com.sun.star.drawing.PolyLineShape"; -constexpr OUStringLiteral sUNO_service_drawing_OpenBezierShape = u"com.sun.star.drawing.OpenBezierShape"; -constexpr OUStringLiteral sUNO_service_drawing_ClosedBezierShape = u"com.sun.star.drawing.ClosedBezierShape"; -constexpr OUStringLiteral sUNO_service_drawing_TextShape = u"com.sun.star.drawing.TextShape"; -constexpr OUStringLiteral sUNO_service_drawing_GraphicObjectShape = u"com.sun.star.drawing.GraphicObjectShape"; -constexpr OUStringLiteral sUNO_service_drawing_OLE2Shape = u"com.sun.star.drawing.OLE2Shape"; -constexpr OUStringLiteral sUNO_service_drawing_PageShape = u"com.sun.star.drawing.PageShape"; -constexpr OUStringLiteral sUNO_service_drawing_CaptionShape = u"com.sun.star.drawing.CaptionShape"; -constexpr OUStringLiteral sUNO_service_drawing_MeasureShape = u"com.sun.star.drawing.MeasureShape"; -constexpr OUStringLiteral sUNO_service_drawing_FrameShape = u"com.sun.star.drawing.FrameShape"; -constexpr OUStringLiteral sUNO_service_drawing_ControlShape = u"com.sun.star.drawing.ControlShape"; -constexpr OUStringLiteral sUNO_service_drawing_ConnectorShape = u"com.sun.star.drawing.ConnectorShape"; -constexpr OUStringLiteral sUNO_service_drawing_MediaShape = u"com.sun.star.drawing.MediaShape"; +constexpr OUString sUNO_service_style_ParagraphProperties = u"com.sun.star.style.ParagraphProperties"_ustr; +constexpr OUString sUNO_service_style_ParagraphPropertiesComplex = u"com.sun.star.style.ParagraphPropertiesComplex"_ustr; +constexpr OUString sUNO_service_style_ParagraphPropertiesAsian = u"com.sun.star.style.ParagraphPropertiesAsian"_ustr; +constexpr OUString sUNO_service_style_CharacterProperties = u"com.sun.star.style.CharacterProperties"_ustr; +constexpr OUString sUNO_service_style_CharacterPropertiesComplex = u"com.sun.star.style.CharacterPropertiesComplex"_ustr; +constexpr OUString sUNO_service_style_CharacterPropertiesAsian = u"com.sun.star.style.CharacterPropertiesAsian"_ustr; + +constexpr OUString sUNO_service_drawing_FillProperties = u"com.sun.star.drawing.FillProperties"_ustr; +constexpr OUString sUNO_service_drawing_TextProperties = u"com.sun.star.drawing.TextProperties"_ustr; +constexpr OUString sUNO_service_drawing_LineProperties = u"com.sun.star.drawing.LineProperties"_ustr; +constexpr OUString sUNO_service_drawing_ConnectorProperties = u"com.sun.star.drawing.ConnectorProperties"_ustr; +constexpr OUString sUNO_service_drawing_MeasureProperties = u"com.sun.star.drawing.MeasureProperties"_ustr; +constexpr OUString sUNO_service_drawing_ShadowProperties = u"com.sun.star.drawing.ShadowProperties"_ustr; + +constexpr OUString sUNO_service_drawing_RotationDescriptor = u"com.sun.star.drawing.RotationDescriptor"_ustr; + +constexpr OUString sUNO_service_drawing_Text = u"com.sun.star.drawing.Text"_ustr; +constexpr OUString sUNO_service_drawing_GroupShape = u"com.sun.star.drawing.GroupShape"_ustr; + +constexpr OUString sUNO_service_drawing_CustomShapeProperties = u"com.sun.star.drawing.CustomShapeProperties"_ustr; +constexpr OUString sUNO_service_drawing_CustomShape = u"com.sun.star.drawing.CustomShape"_ustr; + +constexpr OUString sUNO_service_drawing_PolyPolygonDescriptor = u"com.sun.star.drawing.PolyPolygonDescriptor"_ustr; +constexpr OUString sUNO_service_drawing_PolyPolygonBezierDescriptor= u"com.sun.star.drawing.PolyPolygonBezierDescriptor"_ustr; + +constexpr OUString sUNO_service_drawing_LineShape = u"com.sun.star.drawing.LineShape"_ustr; +constexpr OUString sUNO_service_drawing_Shape = u"com.sun.star.drawing.Shape"_ustr; +constexpr OUString sUNO_service_drawing_RectangleShape = u"com.sun.star.drawing.RectangleShape"_ustr; +constexpr OUString sUNO_service_drawing_EllipseShape = u"com.sun.star.drawing.EllipseShape"_ustr; +constexpr OUString sUNO_service_drawing_PolyPolygonShape = u"com.sun.star.drawing.PolyPolygonShape"_ustr; +constexpr OUString sUNO_service_drawing_PolyLineShape = u"com.sun.star.drawing.PolyLineShape"_ustr; +constexpr OUString sUNO_service_drawing_OpenBezierShape = u"com.sun.star.drawing.OpenBezierShape"_ustr; +constexpr OUString sUNO_service_drawing_ClosedBezierShape = u"com.sun.star.drawing.ClosedBezierShape"_ustr; +constexpr OUString sUNO_service_drawing_TextShape = u"com.sun.star.drawing.TextShape"_ustr; +constexpr OUString sUNO_service_drawing_GraphicObjectShape = u"com.sun.star.drawing.GraphicObjectShape"_ustr; +constexpr OUString sUNO_service_drawing_OLE2Shape = u"com.sun.star.drawing.OLE2Shape"_ustr; +constexpr OUString sUNO_service_drawing_PageShape = u"com.sun.star.drawing.PageShape"_ustr; +constexpr OUString sUNO_service_drawing_CaptionShape = u"com.sun.star.drawing.CaptionShape"_ustr; +constexpr OUString sUNO_service_drawing_MeasureShape = u"com.sun.star.drawing.MeasureShape"_ustr; +constexpr OUString sUNO_service_drawing_FrameShape = u"com.sun.star.drawing.FrameShape"_ustr; +constexpr OUString sUNO_service_drawing_ControlShape = u"com.sun.star.drawing.ControlShape"_ustr; +constexpr OUString sUNO_service_drawing_ConnectorShape = u"com.sun.star.drawing.ConnectorShape"_ustr; +constexpr OUString sUNO_service_drawing_MediaShape = u"com.sun.star.drawing.MediaShape"_ustr; uno::Sequence< OUString > SAL_CALL SvxShape::getSupportedServiceNames() diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx index 67a789022d1e..88f3b2ed1aa9 100644 --- a/svx/source/xml/xmleohlp.cxx +++ b/svx/source/xml/xmleohlp.cxx @@ -60,7 +60,7 @@ using namespace ::com::sun::star::lang; constexpr OUStringLiteral XML_CONTAINERSTORAGE_NAME_60 = u"Pictures"; constexpr OUStringLiteral XML_CONTAINERSTORAGE_NAME = u"ObjectReplacements"; -constexpr OUStringLiteral XML_EMBEDDEDOBJECT_URL_BASE = u"vnd.sun.star.EmbeddedObject:"; +constexpr OUString XML_EMBEDDEDOBJECT_URL_BASE = u"vnd.sun.star.EmbeddedObject:"_ustr; constexpr OUStringLiteral XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE = u"vnd.sun.star.GraphicObject:"; diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index 9211b2aafc50..18f574f51b70 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -34,13 +34,13 @@ constexpr OUStringLiteral FORMAT_SVG = u"svg"; constexpr OUStringLiteral FORMAT_WMF = u"wmf"; -constexpr OUStringLiteral FORMAT_EMF = u"emf"; +constexpr OUString FORMAT_EMF = u"emf"_ustr; constexpr OUStringLiteral FORMAT_PDF = u"pdf"; -constexpr OUStringLiteral FORMAT_BMP = u"bmp"; -constexpr OUStringLiteral FORMAT_GIF = u"gif"; +constexpr OUString FORMAT_BMP = u"bmp"_ustr; +constexpr OUString FORMAT_GIF = u"gif"_ustr; constexpr OUStringLiteral FORMAT_JPG = u"jpg"; -constexpr OUStringLiteral FORMAT_PNG = u"png"; +constexpr OUString FORMAT_PNG = u"png"_ustr; constexpr OUStringLiteral FORMAT_TIF = u"tif"; constexpr OUStringLiteral FORMAT_WEBP = u"webp"; |