summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/app/docsh2.cxx4
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx10
-rw-r--r--sw/source/ui/dbui/mmoutputpage.cxx4
-rw-r--r--sw/source/ui/docvw/srcedtw.cxx4
-rw-r--r--sw/source/ui/fldui/fldmgr.cxx10
-rw-r--r--sw/source/ui/shells/annotsh.cxx2
-rw-r--r--sw/source/ui/shells/drwtxtsh.cxx2
-rw-r--r--sw/source/ui/shells/textsh1.cxx2
-rw-r--r--sw/source/ui/table/chartins.cxx8
-rw-r--r--sw/source/ui/uiview/viewling.cxx2
-rw-r--r--sw/source/ui/uno/SwXDocumentSettings.cxx6
-rw-r--r--sw/source/ui/uno/swdetect.cxx18
-rw-r--r--sw/source/ui/uno/unoatxt.cxx4
-rw-r--r--sw/source/ui/uno/unomodule.cxx2
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx32
-rw-r--r--sw/source/ui/utlui/unotools.cxx4
-rw-r--r--sw/source/ui/vba/vbaaddin.cxx2
-rw-r--r--sw/source/ui/vba/vbaaddins.cxx2
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx2
-rw-r--r--sw/source/ui/vba/vbaautotextentry.cxx6
-rw-r--r--sw/source/ui/vba/vbabookmark.cxx2
-rw-r--r--sw/source/ui/vba/vbabookmarks.cxx2
-rw-r--r--sw/source/ui/vba/vbaborders.cxx4
-rw-r--r--sw/source/ui/vba/vbacell.cxx2
-rw-r--r--sw/source/ui/vba/vbacells.cxx2
-rw-r--r--sw/source/ui/vba/vbacolumn.cxx2
-rw-r--r--sw/source/ui/vba/vbacolumns.cxx2
-rw-r--r--sw/source/ui/vba/vbadialog.cxx2
-rw-r--r--sw/source/ui/vba/vbadialogs.cxx2
-rw-r--r--sw/source/ui/vba/vbadocument.cxx6
-rw-r--r--sw/source/ui/vba/vbadocumentproperties.cxx4
-rw-r--r--sw/source/ui/vba/vbadocuments.cxx2
-rw-r--r--sw/source/ui/vba/vbafield.cxx6
-rw-r--r--sw/source/ui/vba/vbafind.cxx2
-rw-r--r--sw/source/ui/vba/vbafont.cxx2
-rw-r--r--sw/source/ui/vba/vbaformfield.cxx2
-rw-r--r--sw/source/ui/vba/vbaformfields.cxx2
-rw-r--r--sw/source/ui/vba/vbaframe.cxx2
-rw-r--r--sw/source/ui/vba/vbaframes.cxx2
-rw-r--r--sw/source/ui/vba/vbaglobals.cxx4
-rw-r--r--sw/source/ui/vba/vbaheaderfooter.cxx6
-rw-r--r--sw/source/ui/vba/vbaheaderfooterhelper.cxx16
-rw-r--r--sw/source/ui/vba/vbaheadersfooters.cxx2
-rw-r--r--sw/source/ui/vba/vbalistformat.cxx2
-rw-r--r--sw/source/ui/vba/vbalistgalleries.cxx2
-rw-r--r--sw/source/ui/vba/vbalistgallery.cxx2
-rw-r--r--sw/source/ui/vba/vbalistlevel.cxx2
-rw-r--r--sw/source/ui/vba/vbalistlevels.cxx2
-rw-r--r--sw/source/ui/vba/vbalisttemplate.cxx2
-rw-r--r--sw/source/ui/vba/vbalisttemplates.cxx2
-rw-r--r--sw/source/ui/vba/vbaoptions.cxx16
-rw-r--r--sw/source/ui/vba/vbapagesetup.cxx6
-rw-r--r--sw/source/ui/vba/vbapane.cxx4
-rw-r--r--sw/source/ui/vba/vbapanes.cxx2
-rw-r--r--sw/source/ui/vba/vbaparagraph.cxx4
-rw-r--r--sw/source/ui/vba/vbaparagraphformat.cxx4
-rw-r--r--sw/source/ui/vba/vbarange.cxx6
-rw-r--r--sw/source/ui/vba/vbareplacement.cxx2
-rw-r--r--sw/source/ui/vba/vbarevision.cxx2
-rw-r--r--sw/source/ui/vba/vbarevisions.cxx2
-rw-r--r--sw/source/ui/vba/vbarow.cxx2
-rw-r--r--sw/source/ui/vba/vbarows.cxx2
-rw-r--r--sw/source/ui/vba/vbasection.cxx2
-rw-r--r--sw/source/ui/vba/vbasections.cxx2
-rw-r--r--sw/source/ui/vba/vbaselection.cxx12
-rw-r--r--sw/source/ui/vba/vbastyle.cxx2
-rw-r--r--sw/source/ui/vba/vbastyles.cxx8
-rw-r--r--sw/source/ui/vba/vbasystem.cxx2
-rw-r--r--sw/source/ui/vba/vbatable.cxx2
-rw-r--r--sw/source/ui/vba/vbatableofcontents.cxx2
-rw-r--r--sw/source/ui/vba/vbatables.cxx2
-rw-r--r--sw/source/ui/vba/vbatablesofcontents.cxx2
-rw-r--r--sw/source/ui/vba/vbatabstop.cxx2
-rw-r--r--sw/source/ui/vba/vbatabstops.cxx2
-rw-r--r--sw/source/ui/vba/vbatemplate.cxx2
-rw-r--r--sw/source/ui/vba/vbavariable.cxx2
-rw-r--r--sw/source/ui/vba/vbavariables.cxx2
-rw-r--r--sw/source/ui/vba/vbaview.cxx18
-rw-r--r--sw/source/ui/vba/vbawindow.cxx2
-rw-r--r--sw/source/ui/vba/vbawrapformat.cxx2
80 files changed, 167 insertions, 171 deletions
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
index 1afff5892a25..05bbbafb7573 100644
--- a/sw/source/ui/app/docsh2.cxx
+++ b/sw/source/ui/app/docsh2.cxx
@@ -725,7 +725,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
aLockBytes.ReadAt( 0, aSeq.getArray(), nLen, &nRead );
uno::Sequence< beans::PropertyValue > aArgs(1);
- aArgs[0].Name = OUString("RtfOutline");
+ aArgs[0].Name = "RtfOutline";
aArgs[0].Value <<= aSeq;
xHelper->executeDispatch( xProv, aCmd, OUString(), 0, aArgs );
}
@@ -792,7 +792,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
aLockBytes.ReadAt( 0, aSeq.getArray(), nLen, &nRead );
uno::Sequence< beans::PropertyValue > aArgs(1);
- aArgs[0].Name = OUString("RtfOutline");
+ aArgs[0].Name = "RtfOutline";
aArgs[0].Value <<= aSeq;
xHelper->executeDispatch( xProv, aCmd, OUString(), 0, aArgs );
}
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
index cacedeb9b8fd..6b54023923b4 100644
--- a/sw/source/ui/dbui/dbmgr.cxx
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -840,7 +840,7 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
xMailDispatcher.set( new MailDispatcher(rMergeDescriptor.xSmtpServer));
if(!rMergeDescriptor.bSendAsAttachment && rMergeDescriptor.bSendAsHTML)
{
- sBodyMimeType = OUString("text/html; charset=");
+ sBodyMimeType = "text/html; charset=";
sBodyMimeType += OUString::createFromAscii(
rtl_getBestMimeCharsetFromTextEncoding( eEncoding ));
SvxHtmlOptions& rHtmlOptions = SvxHtmlOptions::Get();
@@ -1195,7 +1195,7 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
while ( bDone )
{
sBody += OStringToOUString(sLine, eEncoding);
- sBody += OUString('\n');
+ sBody += "\n";
bDone = pInStream->ReadLine( sLine );
}
}
@@ -1291,7 +1291,7 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
uno::Sequence< beans::PropertyValue > aOptions( rMergeDescriptor.aPrintOptions );
aOptions.realloc( 1 );
- aOptions[ 0 ].Name = OUString("Wait");
+ aOptions[ 0 ].Name = "Wait";
aOptions[ 0 ].Value <<= sal_True ;
// move print options
const beans::PropertyValue* pPrintOptions = rMergeDescriptor.aPrintOptions.getConstArray();
@@ -1810,7 +1810,7 @@ sal_Bool SwNewDBMgr::GetMergeColumnCnt(const OUString& rColumnName, sal_uInt1
{
if(!pImpl->pMergeData || !pImpl->pMergeData->xResultSet.is() || pImpl->pMergeData->bAfterSelection )
{
- rResult = OUString();
+ rResult = "";
return sal_False;
}
@@ -2337,7 +2337,7 @@ OUString SwNewDBMgr::LoadAndRegisterDataSource()
Reference<XDocumentDataSource> xDS(xNewInstance, UNO_QUERY_THROW);
Reference<XStorable> xStore(xDS->getDatabaseDocument(), UNO_QUERY_THROW);
- OUString sOutputExt = OUString(".odb");
+ OUString sOutputExt = ".odb";
OUString sTmpName;
{
utl::TempFile aTempFile(sNewName , &sOutputExt, &sHomePath);
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx
index 3f4ae03b8ce5..eb15e73d1592 100644
--- a/sw/source/ui/dbui/mmoutputpage.cxx
+++ b/sw/source/ui/dbui/mmoutputpage.cxx
@@ -856,9 +856,9 @@ IMPL_LINK_NOARG(SwMailMergeOutputPage, PrintHdl_Impl)
m_pWizard->enableButtons(WZB_CANCEL, sal_False);
uno::Sequence < beans::PropertyValue > aProps( 2 );
- aProps[0]. Name = OUString("MonitorVisible");
+ aProps[0]. Name = "MonitorVisible";
aProps[0].Value <<= sal_True;
- aProps[1]. Name = OUString("Pages");
+ aProps[1]. Name = "Pages";
aProps[1]. Value <<= sPages;
pTargetView->ExecPrint( aProps, false, true );
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx
index 46435dbb4741..d1b2ee77e0a7 100644
--- a/sw/source/ui/docvw/srcedtw.cxx
+++ b/sw/source/ui/docvw/srcedtw.cxx
@@ -263,8 +263,8 @@ SwSrcEditWindow::SwSrcEditWindow( Window* pParent, SwSrcView* pParentView ) :
notifier_ = n;
}
css::uno::Sequence< OUString > s(2);
- s[0] = OUString("FontHeight");
- s[1] = OUString("FontName");
+ s[0] = "FontHeight";
+ s[1] = "FontName";
n->addPropertiesChangeListener(s, listener_.get());
}
diff --git a/sw/source/ui/fldui/fldmgr.cxx b/sw/source/ui/fldui/fldmgr.cxx
index 64c5801ff3e3..ab91a25dbd80 100644
--- a/sw/source/ui/fldui/fldmgr.cxx
+++ b/sw/source/ui/fldui/fldmgr.cxx
@@ -311,9 +311,9 @@ SwField* SwFldMgr::GetCurFld()
pCurFld = NULL;
// initialise strings and format
- aCurPar1 = OUString();
- aCurPar2 = OUString();
- sCurFrame = OUString();
+ aCurPar1 = "";
+ aCurPar2 = "";
+ sCurFrame = "";
nCurFmt = 0;
if(!pCurFld)
@@ -1468,7 +1468,7 @@ void SwFldMgr::UpdateCurFld(sal_uLong nFormat,
if( SVX_NUM_CHAR_SPECIAL == nFormat )
{
((SwPageNumberField*)pCurFld)->SetUserString( sPar2 );
- sPar2 = OUString('1');
+ sPar2 = "1";
}
else
{
@@ -1484,7 +1484,7 @@ void SwFldMgr::UpdateCurFld(sal_uLong nFormat,
if( SVX_NUM_CHAR_SPECIAL == nFormat )
{
((SwPageNumberField*)pCurFld)->SetUserString( sPar2 );
- sPar2 = OUString("-1");
+ sPar2 = "-1";
}
else
{
diff --git a/sw/source/ui/shells/annotsh.cxx b/sw/source/ui/shells/annotsh.cxx
index 69916e6b1be7..40bb4b81eab3 100644
--- a/sw/source/ui/shells/annotsh.cxx
+++ b/sw/source/ui/shells/annotsh.cxx
@@ -1238,7 +1238,7 @@ void SwAnnotationShell::ExecLingu(SfxRequest &rReq)
Sequence<Any> aSeq(1);
Any* pArray = aSeq.getArray();
PropertyValue aParam;
- aParam.Name = OUString("ParentWindow");
+ aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
xInit->initialize( aSeq );
diff --git a/sw/source/ui/shells/drwtxtsh.cxx b/sw/source/ui/shells/drwtxtsh.cxx
index acba5599fa90..6d410e576692 100644
--- a/sw/source/ui/shells/drwtxtsh.cxx
+++ b/sw/source/ui/shells/drwtxtsh.cxx
@@ -315,7 +315,7 @@ void SwDrawTextShell::ExecDrawLingu(SfxRequest &rReq)
Sequence<Any> aSeq(1);
Any* pArray = aSeq.getArray();
PropertyValue aParam;
- aParam.Name = OUString("ParentWindow");
+ aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
xInit->initialize( aSeq );
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 8a4d454bbcf1..c8e3c94ab190 100644
--- a/sw/source/ui/shells/textsh1.cxx
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -1349,7 +1349,7 @@ void SwTextShell::GetState( SfxItemSet &rSet )
aKeyboardLang = aLangTable.GetString( nLang );
// get the language that is in use
- OUString aCurrentLang = OUString("*");
+ OUString aCurrentLang = "*";
nLang = SwLangHelper::GetCurrentLanguage( rSh );
if (nLang != LANGUAGE_DONTKNOW)
aCurrentLang = aLangTable.GetString( nLang );
diff --git a/sw/source/ui/table/chartins.cxx b/sw/source/ui/table/chartins.cxx
index 19fd3b99ce17..a2654e21a1eb 100644
--- a/sw/source/ui/table/chartins.cxx
+++ b/sw/source/ui/table/chartins.cxx
@@ -157,9 +157,7 @@ void SwInsertChart(Window* pParent, SfxBindings* pBindings )
if( ! rWrtShell.IsTblComplexForChart())
{
SwFrmFmt* pTblFmt = rWrtShell.GetTableFmt();
- aRangeString = pTblFmt->GetName();
- aRangeString += OUString( sal_Unicode('.') );
- aRangeString += rWrtShell.GetBoxNms();
+ aRangeString = pTblFmt->GetName() + "." + rWrtShell.GetBoxNms();
// get table data provider
xDataProvider.set( pView->GetDocShell()->getIDocumentChartDataProviderAccess()->GetChartDataProvider( true ) );
@@ -190,10 +188,10 @@ void SwInsertChart(Window* pParent, SfxBindings* pBindings )
uno::Sequence<uno::Any> aSeq(2);
uno::Any* pArray = aSeq.getArray();
beans::PropertyValue aParam1;
- aParam1.Name = OUString("ParentWindow");
+ aParam1.Name = "ParentWindow";
aParam1.Value <<= uno::makeAny(xDialogParentWindow);
beans::PropertyValue aParam2;
- aParam2.Name = OUString("ChartModel");
+ aParam2.Name = "ChartModel";
aParam2.Value <<= uno::makeAny(xChartModel);
pArray[0] <<= uno::makeAny(aParam1);
pArray[1] <<= uno::makeAny(aParam2);
diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx
index 05fa81f48fb0..b0dcfd387326 100644
--- a/sw/source/ui/uiview/viewling.cxx
+++ b/sw/source/ui/uiview/viewling.cxx
@@ -129,7 +129,7 @@ void SwView::ExecLingu(SfxRequest &rReq)
Sequence<Any> aSeq(1);
Any* pArray = aSeq.getArray();
PropertyValue aParam;
- aParam.Name = OUString("ParentWindow");
+ aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam);
xInit->initialize( aSeq );
diff --git a/sw/source/ui/uno/SwXDocumentSettings.cxx b/sw/source/ui/uno/SwXDocumentSettings.cxx
index 11d18599c46a..c10ddfd5812c 100644
--- a/sw/source/ui/uno/SwXDocumentSettings.cxx
+++ b/sw/source/ui/uno/SwXDocumentSettings.cxx
@@ -1254,9 +1254,9 @@ Sequence< OUString > SAL_CALL SwXDocumentSettings::getSupportedServiceNames( )
throw(RuntimeException)
{
Sequence< OUString > aSeq( 3 );
- aSeq[0] = OUString("com.sun.star.document.Settings");
- aSeq[1] = OUString("com.sun.star.text.DocumentSettings");
- aSeq[2] = OUString("com.sun.star.text.PrintSettings");
+ aSeq[0] = "com.sun.star.document.Settings";
+ aSeq[1] = "com.sun.star.text.DocumentSettings";
+ aSeq[2] = "com.sun.star.text.PrintSettings";
return aSeq;
}
diff --git a/sw/source/ui/uno/swdetect.cxx b/sw/source/ui/uno/swdetect.cxx
index c3b694807349..117a0c0cb257 100644
--- a/sw/source/ui/uno/swdetect.cxx
+++ b/sw/source/ui/uno/swdetect.cxx
@@ -349,7 +349,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
{
// if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
lDescriptor.realloc( nPropertyCount + 1 );
- lDescriptor[nPropertyCount].Name = OUString("InputStream");
+ lDescriptor[nPropertyCount].Name = "InputStream";
lDescriptor[nPropertyCount].Value <<= xStream;
nPropertyCount++;
}
@@ -358,7 +358,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
{
// if input stream wasn't part of the descriptor, now it should be, otherwise the content would be opend twice
lDescriptor.realloc( nPropertyCount + 1 );
- lDescriptor[nPropertyCount].Name = OUString("UCBContent");
+ lDescriptor[nPropertyCount].Name = "UCBContent";
lDescriptor[nPropertyCount].Value <<= xContent;
nPropertyCount++;
}
@@ -368,7 +368,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
if ( nIndexOfReadOnlyFlag == -1 )
{
lDescriptor.realloc( nPropertyCount + 1 );
- lDescriptor[nPropertyCount].Name = OUString("ReadOnly");
+ lDescriptor[nPropertyCount].Name = "ReadOnly";
lDescriptor[nPropertyCount].Value <<= bReadOnly;
nPropertyCount++;
}
@@ -379,7 +379,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
if ( !bRepairPackage && bRepairAllowed )
{
lDescriptor.realloc( nPropertyCount + 1 );
- lDescriptor[nPropertyCount].Name = OUString("RepairPackage");
+ lDescriptor[nPropertyCount].Name = "RepairPackage";
lDescriptor[nPropertyCount].Value <<= bRepairAllowed;
nPropertyCount++;
bOpenAsTemplate = sal_True;
@@ -391,7 +391,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
if ( nIndexOfTemplateFlag == -1 )
{
lDescriptor.realloc( nPropertyCount + 1 );
- lDescriptor[nPropertyCount].Name = OUString("AsTemplate");
+ lDescriptor[nPropertyCount].Name = "AsTemplate";
lDescriptor[nPropertyCount].Value <<= bOpenAsTemplate;
nPropertyCount++;
}
@@ -405,7 +405,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
if ( nIndexOfDocumentTitle == -1 )
{
lDescriptor.realloc( nPropertyCount + 1 );
- lDescriptor[nPropertyCount].Name = OUString("DocumentTitle");
+ lDescriptor[nPropertyCount].Name = "DocumentTitle";
lDescriptor[nPropertyCount].Value <<= aDocumentTitle;
nPropertyCount++;
}
@@ -448,9 +448,9 @@ Sequence< OUString > SAL_CALL SwFilterDetect::getSupportedServiceNames() throw(
Sequence< OUString > SwFilterDetect::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 3 );
- seqServiceNames.getArray() [0] = OUString("com.sun.star.frame.ExtendedTypeDetection" );
- seqServiceNames.getArray() [1] = OUString("com.sun.star.text.FormatDetector" );
- seqServiceNames.getArray() [2] = OUString("com.sun.star.text.W4WFormatDetector" );
+ seqServiceNames.getArray() [0] = "com.sun.star.frame.ExtendedTypeDetection";
+ seqServiceNames.getArray() [1] = "com.sun.star.text.FormatDetector";
+ seqServiceNames.getArray() [2] = "com.sun.star.text.W4WFormatDetector";
return seqServiceNames ;
}
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx
index 5ad584626976..a74cda6362e9 100644
--- a/sw/source/ui/uno/unoatxt.cxx
+++ b/sw/source/ui/uno/unoatxt.cxx
@@ -716,14 +716,14 @@ OUString SwXAutoTextGroup::getImplementationName(void) throw( uno::RuntimeExcept
sal_Bool SwXAutoTextGroup::supportsService(const OUString& rServiceName) throw( uno::RuntimeException )
{
- return OUString("com.sun.star.text.AutoTextGroup") == rServiceName;
+ return "com.sun.star.text.AutoTextGroup" == rServiceName;
}
uno::Sequence< OUString > SwXAutoTextGroup::getSupportedServiceNames(void) throw( uno::RuntimeException )
{
uno::Sequence< OUString > aRet(1);
OUString* pArray = aRet.getArray();
- pArray[0] = OUString("com.sun.star.text.AutoTextGroup");
+ pArray[0] = "com.sun.star.text.AutoTextGroup";
return aRet;
}
diff --git a/sw/source/ui/uno/unomodule.cxx b/sw/source/ui/uno/unomodule.cxx
index 815a2bb82cc2..13a2238ab707 100644
--- a/sw/source/ui/uno/unomodule.cxx
+++ b/sw/source/ui/uno/unomodule.cxx
@@ -39,7 +39,7 @@ OUString SAL_CALL SwUnoModule_getImplementationName() throw( uno::RuntimeExcepti
uno::Sequence< OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() throw( uno::RuntimeException )
{
uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = OUString("com.sun.star.text.ModuleDispatcher");
+ aSeq[0] = "com.sun.star.text.ModuleDispatcher";
return aSeq;
}
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 3ca1c8b6d804..fcf1246eb57b 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -1710,9 +1710,9 @@ Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServic
// Thus, a temporary service name is introduced to make this possible.
OUString aTmpServiceName( rServiceName );
if ( bShape &&
- rServiceName.compareToAscii( "com.sun.star.drawing.temporaryForXMLImportOLE2Shape" ) == 0 )
+ rServiceName.equalsAscii( "com.sun.star.drawing.temporaryForXMLImportOLE2Shape" ) )
{
- aTmpServiceName = OUString("com.sun.star.drawing.OLE2Shape");
+ aTmpServiceName = "com.sun.star.drawing.OLE2Shape";
}
//here search for the draw service
Reference< XInterface > xTmp = SvxFmMSFactory::createInstance(aTmpServiceName);
@@ -2138,7 +2138,7 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
case WID_DOC_VBA_DOCOBJ:
{
beans::PropertyValue aProp;
- aProp.Name = OUString("ThisWordDoc");
+ aProp.Name = "ThisWordDoc";
aProp.Value <<= pDocShell->GetModel();
aAny <<= aProp;
}
@@ -2814,22 +2814,22 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer(
sal_Int32 nLen = 2;
aRenderer.realloc(2);
- aRenderer[0].Name = OUString( "PageSize" );
+ aRenderer[0].Name = "PageSize";
aRenderer[0].Value <<= aPageSize;
- aRenderer[1].Name = OUString( "PageIncludesNonprintableArea" );
+ aRenderer[1].Name = "PageIncludesNonprintableArea";
aRenderer[1].Value <<= sal_True;
if (aPreferredPageSize.Width && aPreferredPageSize.Height)
{
++nLen;
aRenderer.realloc( nLen );
- aRenderer[ nLen - 1 ].Name = OUString( "PreferredPageSize" );
+ aRenderer[ nLen - 1 ].Name = "PreferredPageSize";
aRenderer[ nLen - 1 ].Value <<= aPreferredPageSize;
}
if (nPrinterPaperTray >= 0)
{
++nLen;
aRenderer.realloc( nLen );
- aRenderer[ nLen - 1 ].Name = OUString( "PrinterPaperTray" );
+ aRenderer[ nLen - 1 ].Name = "PrinterPaperTray";
aRenderer[ nLen - 1 ].Value <<= nPrinterPaperTray;
}
}
@@ -2850,22 +2850,22 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer(
aRenderer.realloc( nLen );
// put page print settings attribute into render data
const sal_Int32 nRow = pPagePrintSettings->GetRow();
- aRenderer[ nRenderDataIdxStart + 0 ].Name = OUString( "NUpRows" );
+ aRenderer[ nRenderDataIdxStart + 0 ].Name = "NUpRows";
aRenderer[ nRenderDataIdxStart + 0 ].Value <<= ( nRow > 1 ? nRow : 1 );
const sal_Int32 nCol = pPagePrintSettings->GetCol();
- aRenderer[ nRenderDataIdxStart + 1 ].Name = OUString( "NUpColumns" );
+ aRenderer[ nRenderDataIdxStart + 1 ].Name = "NUpColumns";
aRenderer[ nRenderDataIdxStart + 1 ].Value <<= ( nCol > 1 ? nCol : 1 );
- aRenderer[ nRenderDataIdxStart + 2 ].Name = OUString( "NUpPageMarginLeft" );
+ aRenderer[ nRenderDataIdxStart + 2 ].Name = "NUpPageMarginLeft";
aRenderer[ nRenderDataIdxStart + 2 ].Value <<= pPagePrintSettings->GetLeftSpace();
- aRenderer[ nRenderDataIdxStart + 3 ].Name = OUString( "NUpPageMarginRight" );
+ aRenderer[ nRenderDataIdxStart + 3 ].Name = "NUpPageMarginRight";
aRenderer[ nRenderDataIdxStart + 3 ].Value <<= pPagePrintSettings->GetRightSpace();
- aRenderer[ nRenderDataIdxStart + 4 ].Name = OUString( "NUpPageMarginTop" );
+ aRenderer[ nRenderDataIdxStart + 4 ].Name = "NUpPageMarginTop";
aRenderer[ nRenderDataIdxStart + 4 ].Value <<= pPagePrintSettings->GetTopSpace();
- aRenderer[ nRenderDataIdxStart + 5 ].Name = OUString( "NUpPageMarginBottom" );
+ aRenderer[ nRenderDataIdxStart + 5 ].Name = "NUpPageMarginBottom";
aRenderer[ nRenderDataIdxStart + 5 ].Value <<= pPagePrintSettings->GetBottomSpace();
- aRenderer[ nRenderDataIdxStart + 6 ].Name = OUString( "NUpHorizontalSpacing" );
+ aRenderer[ nRenderDataIdxStart + 6 ].Name = "NUpHorizontalSpacing";
aRenderer[ nRenderDataIdxStart + 6 ].Value <<= pPagePrintSettings->GetHorzSpace();
- aRenderer[ nRenderDataIdxStart + 7 ].Name = OUString( "NUpVerticalSpacing" );
+ aRenderer[ nRenderDataIdxStart + 7 ].Name = "NUpVerticalSpacing";
aRenderer[ nRenderDataIdxStart + 7 ].Value <<= pPagePrintSettings->GetVertSpace();
{
Printer* pPrinter = pDocShell->GetDoc()->getPrinter( false );
@@ -2881,7 +2881,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer(
{
aNewPageSize = awt::Size( aPageSize.Height(), aPageSize.Width() );
}
- aRenderer[ nRenderDataIdxStart + 8 ].Name = OUString( "NUpPaperSize" );
+ aRenderer[ nRenderDataIdxStart + 8 ].Name = "NUpPaperSize";
aRenderer[ nRenderDataIdxStart + 8 ].Value <<= aNewPageSize;
}
}
diff --git a/sw/source/ui/utlui/unotools.cxx b/sw/source/ui/utlui/unotools.cxx
index ed6a5bda5d20..e25deec000cc 100644
--- a/sw/source/ui/utlui/unotools.cxx
+++ b/sw/source/ui/utlui/unotools.cxx
@@ -472,9 +472,7 @@ void SwOneExampleFrame::CreatePopup(const Point& rPt)
for (sal_uInt16 i = 0;
i < (sizeof(nZoomValues)/sizeof(nZoomValues[0])); ++i)
{
- OUString sTemp;
- sTemp = OUString::number(nZoomValues[i]);
- sTemp += " %";
+ OUString sTemp = OUString::number(nZoomValues[i]) + " %";
aSubPop1.InsertItem( ITEM_ZOOM + i + 1, sTemp);
if(nZoom == nZoomValues[i])
aSubPop1.CheckItem(ITEM_ZOOM + i + 1);
diff --git a/sw/source/ui/vba/vbaaddin.cxx b/sw/source/ui/vba/vbaaddin.cxx
index 336b953bf953..93c0a64a4a63 100644
--- a/sw/source/ui/vba/vbaaddin.cxx
+++ b/sw/source/ui/vba/vbaaddin.cxx
@@ -87,7 +87,7 @@ SwVbaAddin::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Addin" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Addin";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaaddins.cxx b/sw/source/ui/vba/vbaaddins.cxx
index 6956f9384d0a..ab62eed64c3c 100644
--- a/sw/source/ui/vba/vbaaddins.cxx
+++ b/sw/source/ui/vba/vbaaddins.cxx
@@ -92,7 +92,7 @@ SwVbaAddins::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Addins");
+ sNames[0] = "ooo.vba.word.Addins";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 35e6d6ec60c2..ac67ee0760aa 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -184,7 +184,7 @@ SwVbaApplication::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Application" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Application";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaautotextentry.cxx b/sw/source/ui/vba/vbaautotextentry.cxx
index d55358bd333b..9ac6382fbbba 100644
--- a/sw/source/ui/vba/vbaautotextentry.cxx
+++ b/sw/source/ui/vba/vbaautotextentry.cxx
@@ -63,7 +63,7 @@ uno::Reference< word::XRange > SAL_CALL SwVbaAutoTextEntry::Insert( const uno::R
uno::Reference< text::XTextViewCursor > xTVCursor = word::getXTextViewCursor( xModel );
uno::Reference< text::XTextRange > xCurrentRange( xTC->getEnd(), uno::UNO_QUERY_THROW );
xTVCursor->gotoRange( xCurrentRange, sal_False );
- OUString url = OUString( ".uno:Delete");
+ OUString url = ".uno:Delete";
dispatchRequests( xModel,url );
xTVCursor->gotoRange( xEndMarker->getEnd(), sal_False );
}
@@ -88,7 +88,7 @@ SwVbaAutoTextEntry::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.AutoTextEntry" );
+ aServiceNames[ 0 ] = "ooo.vba.word.AutoTextEntry";
}
return aServiceNames;
}
@@ -130,7 +130,7 @@ SwVbaAutoTextEntries::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.AutoTextEntries");
+ sNames[0] = "ooo.vba.word.AutoTextEntries";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbabookmark.cxx b/sw/source/ui/vba/vbabookmark.cxx
index 4aac8ef39484..bde45edaa4c8 100644
--- a/sw/source/ui/vba/vbabookmark.cxx
+++ b/sw/source/ui/vba/vbabookmark.cxx
@@ -96,7 +96,7 @@ SwVbaBookmark::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Bookmark" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Bookmark";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbabookmarks.cxx b/sw/source/ui/vba/vbabookmarks.cxx
index da372179f2e3..1479a64ac277 100644
--- a/sw/source/ui/vba/vbabookmarks.cxx
+++ b/sw/source/ui/vba/vbabookmarks.cxx
@@ -217,7 +217,7 @@ SwVbaBookmarks::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Bookmarks");
+ sNames[0] = "ooo.vba.word.Bookmarks";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaborders.cxx b/sw/source/ui/vba/vbaborders.cxx
index 1e2d8ff7e690..2559f3e4e868 100644
--- a/sw/source/ui/vba/vbaborders.cxx
+++ b/sw/source/ui/vba/vbaborders.cxx
@@ -148,7 +148,7 @@ protected:
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Border" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Border";
}
return aServiceNames;
}
@@ -361,7 +361,7 @@ SwVbaBorders::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Borders" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Borders";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbacell.cxx b/sw/source/ui/vba/vbacell.cxx
index 7756099e6423..2752a4249682 100644
--- a/sw/source/ui/vba/vbacell.cxx
+++ b/sw/source/ui/vba/vbacell.cxx
@@ -101,7 +101,7 @@ SwVbaCell::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Cell" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Cell";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbacells.cxx b/sw/source/ui/vba/vbacells.cxx
index 37028bfd6a16..fe5b050508ad 100644
--- a/sw/source/ui/vba/vbacells.cxx
+++ b/sw/source/ui/vba/vbacells.cxx
@@ -205,7 +205,7 @@ SwVbaCells::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Cells");
+ sNames[0] = "ooo.vba.word.Cells";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbacolumn.cxx b/sw/source/ui/vba/vbacolumn.cxx
index 2093e4b9aae2..946fde9400b6 100644
--- a/sw/source/ui/vba/vbacolumn.cxx
+++ b/sw/source/ui/vba/vbacolumn.cxx
@@ -90,7 +90,7 @@ SwVbaColumn::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Column" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Column";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbacolumns.cxx b/sw/source/ui/vba/vbacolumns.cxx
index f21c742ef449..344dbb6a03c0 100644
--- a/sw/source/ui/vba/vbacolumns.cxx
+++ b/sw/source/ui/vba/vbacolumns.cxx
@@ -142,7 +142,7 @@ SwVbaColumns::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Columns");
+ sNames[0] = "ooo.vba.word.Columns";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbadialog.cxx b/sw/source/ui/vba/vbadialog.cxx
index 73397041d631..1c8de59a088a 100644
--- a/sw/source/ui/vba/vbadialog.cxx
+++ b/sw/source/ui/vba/vbadialog.cxx
@@ -63,7 +63,7 @@ SwVbaDialog::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Dialog" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Dialog";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbadialogs.cxx b/sw/source/ui/vba/vbadialogs.cxx
index db1f53019836..35707c0d3935 100644
--- a/sw/source/ui/vba/vbadialogs.cxx
+++ b/sw/source/ui/vba/vbadialogs.cxx
@@ -45,7 +45,7 @@ SwVbaDialogs::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Dialogs" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Dialogs";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx
index cb06a1e5e8e7..9752dde5c088 100644
--- a/sw/source/ui/vba/vbadocument.cxx
+++ b/sw/source/ui/vba/vbadocument.cxx
@@ -377,13 +377,13 @@ void SAL_CALL SwVbaDocument::PrintOut( const uno::Any& /*Background*/, const uno
void SAL_CALL SwVbaDocument::PrintPreview( ) throw (uno::RuntimeException)
{
- OUString url = OUString( ".uno:PrintPreview");
+ OUString url = ".uno:PrintPreview";
dispatchRequests( mxModel,url );
}
void SAL_CALL SwVbaDocument::ClosePrintPreview( ) throw (uno::RuntimeException)
{
- OUString url = OUString( ".uno:ClosePreview");
+ OUString url = ".uno:ClosePreview";
dispatchRequests( mxModel,url );
}
@@ -506,7 +506,7 @@ SwVbaDocument::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Document" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Document";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbadocumentproperties.cxx b/sw/source/ui/vba/vbadocumentproperties.cxx
index 9a3701a033c8..613b08b69e50 100644
--- a/sw/source/ui/vba/vbadocumentproperties.cxx
+++ b/sw/source/ui/vba/vbadocumentproperties.cxx
@@ -632,7 +632,7 @@ SwVbaBuiltInDocumentProperty::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.DocumentProperty" );
+ aServiceNames[ 0 ] = "ooo.vba.word.DocumentProperty";
}
return aServiceNames;
}
@@ -786,7 +786,7 @@ SwVbaBuiltinDocumentProperties::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.DocumentProperties" );
+ aServiceNames[ 0 ] = "ooo.vba.word.DocumentProperties";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbadocuments.cxx b/sw/source/ui/vba/vbadocuments.cxx
index e4fa861fd885..f79edda3baf5 100644
--- a/sw/source/ui/vba/vbadocuments.cxx
+++ b/sw/source/ui/vba/vbadocuments.cxx
@@ -163,7 +163,7 @@ SwVbaDocuments::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Documents");
+ sNames[0] = "ooo.vba.word.Documents";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx
index 2a903040d95b..b2c34d08036f 100644
--- a/sw/source/ui/vba/vbafield.cxx
+++ b/sw/source/ui/vba/vbafield.cxx
@@ -62,7 +62,7 @@ SwVbaField::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Field" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Field";
}
return aServiceNames;
}
@@ -459,7 +459,7 @@ uno::Reference< text::XTextField > SwVbaFields::Create_Field_DocProperty( const
if( bCustom )
{
- sFieldService = OUString( "com.sun.star.text.textfield.docinfo.Custom" );
+ sFieldService = "com.sun.star.text.textfield.docinfo.Custom";
}
else if( sFieldService.isEmpty() )
{
@@ -530,7 +530,7 @@ SwVbaFields::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Fields" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Fields";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbafind.cxx b/sw/source/ui/vba/vbafind.cxx
index 060ce939f0a1..52c32a9355d9 100644
--- a/sw/source/ui/vba/vbafind.cxx
+++ b/sw/source/ui/vba/vbafind.cxx
@@ -405,7 +405,7 @@ SwVbaFind::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Find" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Find";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbafont.cxx b/sw/source/ui/vba/vbafont.cxx
index 7866611bed55..96b935d35fd3 100644
--- a/sw/source/ui/vba/vbafont.cxx
+++ b/sw/source/ui/vba/vbafont.cxx
@@ -227,7 +227,7 @@ SwVbaFont::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Font" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Font";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaformfield.cxx b/sw/source/ui/vba/vbaformfield.cxx
index f8e86c210594..969187a29349 100644
--- a/sw/source/ui/vba/vbaformfield.cxx
+++ b/sw/source/ui/vba/vbaformfield.cxx
@@ -120,7 +120,7 @@ SwVbaFormField::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.FormField" );
+ aServiceNames[ 0 ] = "ooo.vba.word.FormField";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaformfields.cxx b/sw/source/ui/vba/vbaformfields.cxx
index ba554fb07fd4..3a963f0c5472 100644
--- a/sw/source/ui/vba/vbaformfields.cxx
+++ b/sw/source/ui/vba/vbaformfields.cxx
@@ -187,7 +187,7 @@ SwVbaFormFields::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.FormFields");
+ sNames[0] = "ooo.vba.word.FormFields";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaframe.cxx b/sw/source/ui/vba/vbaframe.cxx
index 4b1564dde8f1..ca37cde4c81c 100644
--- a/sw/source/ui/vba/vbaframe.cxx
+++ b/sw/source/ui/vba/vbaframe.cxx
@@ -56,7 +56,7 @@ SwVbaFrame::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Frame" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Frame";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaframes.cxx b/sw/source/ui/vba/vbaframes.cxx
index 84863a268cd0..26316a1e643d 100644
--- a/sw/source/ui/vba/vbaframes.cxx
+++ b/sw/source/ui/vba/vbaframes.cxx
@@ -91,7 +91,7 @@ SwVbaFrames::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Frames");
+ sNames[0] = "ooo.vba.word.Frames";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaglobals.cxx b/sw/source/ui/vba/vbaglobals.cxx
index 6772cd5384ff..94152662614b 100644
--- a/sw/source/ui/vba/vbaglobals.cxx
+++ b/sw/source/ui/vba/vbaglobals.cxx
@@ -41,7 +41,7 @@ SwVbaGlobals::SwVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Refere
{
OSL_TRACE("SwVbaGlobals::SwVbaGlobals()");
uno::Sequence< beans::PropertyValue > aInitArgs( 2 );
- aInitArgs[ 0 ].Name = OUString("Application");
+ aInitArgs[ 0 ].Name = "Application";
aInitArgs[ 0 ].Value = uno::makeAny( getApplication() );
aInitArgs[ 1 ].Name = sDocCtxName;
aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) );
@@ -151,7 +151,7 @@ SwVbaGlobals::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Globals" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Globals";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaheaderfooter.cxx b/sw/source/ui/vba/vbaheaderfooter.cxx
index 9714e7623616..0b66b7c0e3d8 100644
--- a/sw/source/ui/vba/vbaheaderfooter.cxx
+++ b/sw/source/ui/vba/vbaheaderfooter.cxx
@@ -54,11 +54,11 @@ uno::Reference< word::XRange > SAL_CALL SwVbaHeaderFooter::getRange() throw (uno
OUString sPropsNameText;
if( mbHeader )
{
- sPropsNameText = OUString("HeaderText");
+ sPropsNameText = "HeaderText";
}
else
{
- sPropsNameText = OUString("FooterText");
+ sPropsNameText = "FooterText";
}
if( mnIndex == word::WdHeaderFooterIndex::wdHeaderFooterEvenPages )
{
@@ -96,7 +96,7 @@ SwVbaHeaderFooter::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Pane" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Pane";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbaheaderfooterhelper.cxx b/sw/source/ui/vba/vbaheaderfooterhelper.cxx
index 4072b16ba56e..d68162cdf5f7 100644
--- a/sw/source/ui/vba/vbaheaderfooterhelper.cxx
+++ b/sw/source/ui/vba/vbaheaderfooterhelper.cxx
@@ -54,8 +54,8 @@ sal_Bool HeaderFooterHelper::isHeader( const uno::Reference< frame::XModel >& xM
if( !isHeaderFooter( xCurrentText ) )
return sal_False;
- OUString aPropIsShared = OUString("HeaderIsShared");
- OUString aPropText = OUString("HeaderText");
+ OUString aPropIsShared = "HeaderIsShared";
+ OUString aPropText = "HeaderText";
uno::Reference< style::XStyle > xPageStyle = word::getCurrentPageStyle( xModel );
uno::Reference< beans::XPropertySet > xPageProps( xPageStyle, uno::UNO_QUERY_THROW );
sal_Bool isShared = sal_True;
@@ -64,9 +64,9 @@ sal_Bool HeaderFooterHelper::isHeader( const uno::Reference< frame::XModel >& xM
{
uno::Reference< text::XPageCursor > xPageCursor( word::getXTextViewCursor( xModel ), uno::UNO_QUERY_THROW );
if( 0 == xPageCursor->getPage() % 2 )
- aPropText = OUString("HeaderTextLeft");
+ aPropText = "HeaderTextLeft";
else
- aPropText = OUString("HeaderTextRight");
+ aPropText = "HeaderTextRight";
}
uno::Reference< text::XText > xHeaderText( xPageProps->getPropertyValue( aPropText ), uno::UNO_QUERY_THROW );
@@ -120,8 +120,8 @@ sal_Bool HeaderFooterHelper::isFooter( const uno::Reference< frame::XModel >& xM
if( !isHeaderFooter( xCurrentText ) )
return sal_False;
- OUString aPropIsShared = OUString("FooterIsShared");
- OUString aPropText = OUString("FooterText");
+ OUString aPropIsShared = "FooterIsShared";
+ OUString aPropText = "FooterText";
uno::Reference< style::XStyle > xPageStyle = word::getCurrentPageStyle( xModel );
uno::Reference< beans::XPropertySet > xPageProps( xPageStyle, uno::UNO_QUERY_THROW );
sal_Bool isShared = sal_True;
@@ -130,9 +130,9 @@ sal_Bool HeaderFooterHelper::isFooter( const uno::Reference< frame::XModel >& xM
{
uno::Reference< text::XPageCursor > xPageCursor( word::getXTextViewCursor( xModel ), uno::UNO_QUERY_THROW );
if( 0 == xPageCursor->getPage() % 2 )
- aPropText = OUString("FooterTextLeft");
+ aPropText = "FooterTextLeft";
else
- aPropText = OUString("FooterTextRight");
+ aPropText = "FooterTextRight";
}
uno::Reference< text::XText > xFooterText( xPageProps->getPropertyValue( aPropText ), uno::UNO_QUERY_THROW );
diff --git a/sw/source/ui/vba/vbaheadersfooters.cxx b/sw/source/ui/vba/vbaheadersfooters.cxx
index b85be8af0fc8..69fa3f942d0f 100644
--- a/sw/source/ui/vba/vbaheadersfooters.cxx
+++ b/sw/source/ui/vba/vbaheadersfooters.cxx
@@ -132,7 +132,7 @@ SwVbaHeadersFooters::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.HeadersFooters");
+ sNames[0] = "ooo.vba.word.HeadersFooters";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbalistformat.cxx b/sw/source/ui/vba/vbalistformat.cxx
index 9cd8f49ea24d..25db7bf3add3 100644
--- a/sw/source/ui/vba/vbalistformat.cxx
+++ b/sw/source/ui/vba/vbalistformat.cxx
@@ -102,7 +102,7 @@ SwVbaListFormat::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.ListFormat" );
+ aServiceNames[ 0 ] = "ooo.vba.word.ListFormat";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbalistgalleries.cxx b/sw/source/ui/vba/vbalistgalleries.cxx
index 8d05b7f20028..5178e49b32d4 100644
--- a/sw/source/ui/vba/vbalistgalleries.cxx
+++ b/sw/source/ui/vba/vbalistgalleries.cxx
@@ -97,7 +97,7 @@ SwVbaListGalleries::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.ListGalleries");
+ sNames[0] = "ooo.vba.word.ListGalleries";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbalistgallery.cxx b/sw/source/ui/vba/vbalistgallery.cxx
index 812e930d73cb..e767c9b1f264 100644
--- a/sw/source/ui/vba/vbalistgallery.cxx
+++ b/sw/source/ui/vba/vbalistgallery.cxx
@@ -54,7 +54,7 @@ SwVbaListGallery::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.ListGallery" );
+ aServiceNames[ 0 ] = "ooo.vba.word.ListGallery";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbalistlevel.cxx b/sw/source/ui/vba/vbalistlevel.cxx
index 72ea2fb902d4..030ae9a90ae4 100644
--- a/sw/source/ui/vba/vbalistlevel.cxx
+++ b/sw/source/ui/vba/vbalistlevel.cxx
@@ -381,7 +381,7 @@ SwVbaListLevel::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.ListLevel" );
+ aServiceNames[ 0 ] = "ooo.vba.word.ListLevel";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbalistlevels.cxx b/sw/source/ui/vba/vbalistlevels.cxx
index a53b6db6a975..edefd64f3ddd 100644
--- a/sw/source/ui/vba/vbalistlevels.cxx
+++ b/sw/source/ui/vba/vbalistlevels.cxx
@@ -100,7 +100,7 @@ SwVbaListLevels::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.ListLevels");
+ sNames[0] = "ooo.vba.word.ListLevels";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbalisttemplate.cxx b/sw/source/ui/vba/vbalisttemplate.cxx
index d62f5962e8f9..1188f2297ad7 100644
--- a/sw/source/ui/vba/vbalisttemplate.cxx
+++ b/sw/source/ui/vba/vbalisttemplate.cxx
@@ -61,7 +61,7 @@ SwVbaListTemplate::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.ListTemplate" );
+ aServiceNames[ 0 ] = "ooo.vba.word.ListTemplate";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbalisttemplates.cxx b/sw/source/ui/vba/vbalisttemplates.cxx
index d2db3e81cfa1..749d92f644c5 100644
--- a/sw/source/ui/vba/vbalisttemplates.cxx
+++ b/sw/source/ui/vba/vbalisttemplates.cxx
@@ -94,7 +94,7 @@ SwVbaListTemplates::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.ListTemplates");
+ sNames[0] = "ooo.vba.word.ListTemplates";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx
index bdbcfb2d5812..0dcd5df92b06 100644
--- a/sw/source/ui/vba/vbaoptions.cxx
+++ b/sw/source/ui/vba/vbaoptions.cxx
@@ -45,39 +45,39 @@ SwVbaOptions::DefaultFilePath( sal_Int32 _path ) throw ( uno::RuntimeException )
{
case word::WdDefaultFilePath::wdDocumentsPath:
{
- msDefaultFilePath = OUString("Work");
+ msDefaultFilePath = "Work";
break;
}
case word::WdDefaultFilePath::wdPicturesPath:
{
- msDefaultFilePath = OUString("Gallery");
+ msDefaultFilePath = "Gallery";
break;
}
case word::WdDefaultFilePath::wdUserTemplatesPath:
case word::WdDefaultFilePath::wdWorkgroupTemplatesPath:
{
- msDefaultFilePath = OUString("Template");
+ msDefaultFilePath = "Template";
break;
}
case word::WdDefaultFilePath::wdStartupPath:
{
- msDefaultFilePath = OUString("Addin");
+ msDefaultFilePath = "Addin";
break;
}
case word::WdDefaultFilePath::wdUserOptionsPath:
{
- msDefaultFilePath = OUString("UserConfig");
+ msDefaultFilePath = "UserConfig";
break;
}
case word::WdDefaultFilePath::wdToolsPath:
case word::WdDefaultFilePath::wdProgramPath:
{
- msDefaultFilePath = OUString("Module");
+ msDefaultFilePath = "Module";
break;
}
case word::WdDefaultFilePath::wdTempFilePath:
{
- msDefaultFilePath = OUString("Temp");
+ msDefaultFilePath = "Temp";
break;
}
default:
@@ -268,7 +268,7 @@ SwVbaOptions::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Options" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Options";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbapagesetup.cxx b/sw/source/ui/vba/vbapagesetup.cxx
index 190d12298e9f..eb734294342a 100644
--- a/sw/source/ui/vba/vbapagesetup.cxx
+++ b/sw/source/ui/vba/vbapagesetup.cxx
@@ -149,9 +149,9 @@ void SAL_CALL SwVbaPageSetup::setDifferentFirstPageHeaderFooter( sal_Bool status
OUString newStyle;
if( status )
- newStyle = OUString("First Page");
+ newStyle = "First Page";
else
- newStyle = OUString("Standard");
+ newStyle = "Standard";
uno::Reference< beans::XPropertySet > xStyleProps( word::getCurrentPageStyle( mxModel ), uno::UNO_QUERY_THROW );
sal_Int32 nTopMargin = 0;
@@ -256,7 +256,7 @@ SwVbaPageSetup::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.PageSetup" );
+ aServiceNames[ 0 ] = "ooo.vba.word.PageSetup";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbapane.cxx b/sw/source/ui/vba/vbapane.cxx
index 40b9e163c485..bf5d6c36a682 100644
--- a/sw/source/ui/vba/vbapane.cxx
+++ b/sw/source/ui/vba/vbapane.cxx
@@ -43,7 +43,7 @@ SwVbaPane::View() throw ( css::uno::RuntimeException )
void SAL_CALL
SwVbaPane::Close( ) throw ( css::uno::RuntimeException )
{
- OUString url = OUString( ".uno:CloseWin");
+ OUString url = ".uno:CloseWin";
dispatchRequests( mxModel,url );
}
@@ -60,7 +60,7 @@ SwVbaPane::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Pane" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Pane";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbapanes.cxx b/sw/source/ui/vba/vbapanes.cxx
index f7971f784260..8bf6b45ab87f 100644
--- a/sw/source/ui/vba/vbapanes.cxx
+++ b/sw/source/ui/vba/vbapanes.cxx
@@ -109,7 +109,7 @@ SwVbaPanes::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Panes");
+ sNames[0] = "ooo.vba.word.Panes";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaparagraph.cxx b/sw/source/ui/vba/vbaparagraph.cxx
index abcb5484caba..c7547ef92eae 100644
--- a/sw/source/ui/vba/vbaparagraph.cxx
+++ b/sw/source/ui/vba/vbaparagraph.cxx
@@ -67,7 +67,7 @@ SwVbaParagraph::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Paragraph" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Paragraph";
}
return aServiceNames;
}
@@ -170,7 +170,7 @@ SwVbaParagraphs::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Paragraphs");
+ sNames[0] = "ooo.vba.word.Paragraphs";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx
index e47ddcc153f1..2bd8ed34aac9 100644
--- a/sw/source/ui/vba/vbaparagraphformat.cxx
+++ b/sw/source/ui/vba/vbaparagraphformat.cxx
@@ -183,7 +183,7 @@ sal_Int32 SAL_CALL SwVbaParagraphFormat::getOutlineLevel() throw (uno::RuntimeEx
{
sal_Int32 nLevel = word::WdOutlineLevel::wdOutlineLevelBodyText;
OUString aHeading;
- const OUString HEADING = OUString("Heading");
+ const OUString HEADING = "Heading";
mxParaProps->getPropertyValue("ParaStyleName") >>= aHeading;
if( aHeading.startsWith( HEADING ) )
{
@@ -560,7 +560,7 @@ SwVbaParagraphFormat::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.ParagraphFormat" );
+ aServiceNames[ 0 ] = "ooo.vba.word.ParagraphFormat";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx
index 86bbf607bb1e..c575567490fc 100644
--- a/sw/source/ui/vba/vbarange.cxx
+++ b/sw/source/ui/vba/vbarange.cxx
@@ -260,11 +260,11 @@ void SwVbaRange::GetStyleInfo(OUString& aStyleName, OUString& aStyleType ) throw
uno::Reference< beans::XPropertySet > xProp( mxTextCursor, uno::UNO_QUERY_THROW );
if( ( xProp->getPropertyValue("CharStyleName") >>= aStyleName ) && !aStyleName.isEmpty() )
{
- aStyleType = OUString("CharacterStyles");
+ aStyleType = "CharacterStyles";
}
else if( ( xProp->getPropertyValue("ParaStyleName") >>= aStyleName ) && !aStyleName.isEmpty() )
{
- aStyleType = OUString("ParagraphStyles");
+ aStyleType = "ParagraphStyles";
}
if( aStyleType.isEmpty() )
{
@@ -420,7 +420,7 @@ SwVbaRange::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Range" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Range";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbareplacement.cxx b/sw/source/ui/vba/vbareplacement.cxx
index 13ace911d77f..f899020e426f 100644
--- a/sw/source/ui/vba/vbareplacement.cxx
+++ b/sw/source/ui/vba/vbareplacement.cxx
@@ -61,7 +61,7 @@ SwVbaReplacement::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Replacement" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Replacement";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbarevision.cxx b/sw/source/ui/vba/vbarevision.cxx
index ae45f7473408..b98d4207b3ff 100644
--- a/sw/source/ui/vba/vbarevision.cxx
+++ b/sw/source/ui/vba/vbarevision.cxx
@@ -86,7 +86,7 @@ SwVbaRevision::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Revision" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Revision";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbarevisions.cxx b/sw/source/ui/vba/vbarevisions.cxx
index 8ad58e83468e..98bde2b12215 100644
--- a/sw/source/ui/vba/vbarevisions.cxx
+++ b/sw/source/ui/vba/vbarevisions.cxx
@@ -170,7 +170,7 @@ SwVbaRevisions::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Revisions");
+ sNames[0] = "ooo.vba.word.Revisions";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbarow.cxx b/sw/source/ui/vba/vbarow.cxx
index 19868dd7eeaa..fd3008ae22a7 100644
--- a/sw/source/ui/vba/vbarow.cxx
+++ b/sw/source/ui/vba/vbarow.cxx
@@ -117,7 +117,7 @@ SwVbaRow::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Row" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Row";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx
index 4b51ffb1b72f..2600ac2efc15 100644
--- a/sw/source/ui/vba/vbarows.cxx
+++ b/sw/source/ui/vba/vbarows.cxx
@@ -361,7 +361,7 @@ SwVbaRows::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Rows");
+ sNames[0] = "ooo.vba.word.Rows";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbasection.cxx b/sw/source/ui/vba/vbasection.cxx
index 5fb2aff82661..95032bf4b3e1 100644
--- a/sw/source/ui/vba/vbasection.cxx
+++ b/sw/source/ui/vba/vbasection.cxx
@@ -78,7 +78,7 @@ SwVbaSection::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Section" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Section";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbasections.cxx b/sw/source/ui/vba/vbasections.cxx
index 18ef74a5812e..aa4d7bb72d4f 100644
--- a/sw/source/ui/vba/vbasections.cxx
+++ b/sw/source/ui/vba/vbasections.cxx
@@ -184,7 +184,7 @@ SwVbaSections::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Sections");
+ sNames[0] = "ooo.vba.word.Sections";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx
index fc30b2479ea3..676baf762c9f 100644
--- a/sw/source/ui/vba/vbaselection.cxx
+++ b/sw/source/ui/vba/vbaselection.cxx
@@ -219,7 +219,7 @@ SwVbaSelection::Delete( const uno::Any& _unit, const uno::Any& _count ) throw (
}
}
}
- OUString url = OUString( ".uno:Delete");
+ OUString url = ".uno:Delete";
dispatchRequests( mxModel,url );
}
@@ -548,7 +548,7 @@ SwVbaSelection::getFont() throw ( uno::RuntimeException )
void SAL_CALL
SwVbaSelection::TypeBackspace() throw ( uno::RuntimeException )
{
- OUString url = OUString( ".uno:SwBackspace");
+ OUString url = ".uno:SwBackspace";
dispatchRequests( mxModel,url );
}
@@ -1041,7 +1041,7 @@ uno::Any SAL_CALL SwVbaSelection::Cells( const uno::Any& index ) throw (uno::Run
void SAL_CALL SwVbaSelection::Copy( ) throw (uno::RuntimeException)
{
- OUString url = OUString( ".uno:Copy");
+ OUString url = ".uno:Copy";
dispatchRequests( mxModel,url );
}
@@ -1053,7 +1053,7 @@ void SAL_CALL SwVbaSelection::CopyAsPicture( ) throw (uno::RuntimeException)
void SAL_CALL SwVbaSelection::Paste( ) throw (uno::RuntimeException)
{
- OUString url = OUString( ".uno:Paste");
+ OUString url = ".uno:Paste";
dispatchRequests( mxModel,url );
}
@@ -1101,7 +1101,7 @@ void SAL_CALL SwVbaSelection::WholeStory( ) throw (uno::RuntimeException)
// insert an empty line
uno::Reference< text::XTextRange > xFirstCellRange = word::getFirstObjectPosition( xText );
mxTextViewCursor->gotoRange( xFirstCellRange, sal_False );
- OUString url = OUString( ".uno:InsertPara");
+ OUString url = ".uno:InsertPara";
dispatchRequests( mxModel,url );
}
}
@@ -1175,7 +1175,7 @@ SwVbaSelection::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Selection" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Selection";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbastyle.cxx b/sw/source/ui/vba/vbastyle.cxx
index b96dc992028b..53409662f52e 100644
--- a/sw/source/ui/vba/vbastyle.cxx
+++ b/sw/source/ui/vba/vbastyle.cxx
@@ -232,7 +232,7 @@ SwVbaStyle::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.XStyle" );
+ aServiceNames[ 0 ] = "ooo.vba.word.XStyle";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx
index 728dcea48965..6a39e8ca7791 100644
--- a/sw/source/ui/vba/vbastyles.cxx
+++ b/sw/source/ui/vba/vbastyles.cxx
@@ -310,18 +310,18 @@ SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 ) throw (uno::
case word::WdStyleType::wdStyleTypeParagraph:
case word::WdStyleType::wdStyleTypeTable:
{
- aStyleType = OUString("ParagraphStyles");
+ aStyleType = "ParagraphStyles";
break;
}
case word::WdStyleType::wdStyleTypeCharacter:
{
- aStyleType = OUString("CharacterStyles");
+ aStyleType = "CharacterStyles";
break;
}
case word::WdStyleType::wdStyleTypeList:
{
// should use Paragraph style and set the property "NumberingStyleName"
- aStyleType = OUString("ParagraphStyles");
+ aStyleType = "ParagraphStyles";
break;
}
default:
@@ -361,7 +361,7 @@ SwVbaStyles::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.XStyles" );
+ aServiceNames[ 0 ] = "ooo.vba.word.XStyles";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbasystem.cxx b/sw/source/ui/vba/vbasystem.cxx
index f521227caee5..6ca213bce526 100644
--- a/sw/source/ui/vba/vbasystem.cxx
+++ b/sw/source/ui/vba/vbasystem.cxx
@@ -277,7 +277,7 @@ SwVbaSystem::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.System" );
+ aServiceNames[ 0 ] = "ooo.vba.word.System";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbatable.cxx b/sw/source/ui/vba/vbatable.cxx
index 7b425c67b245..398422adcd5a 100644
--- a/sw/source/ui/vba/vbatable.cxx
+++ b/sw/source/ui/vba/vbatable.cxx
@@ -130,7 +130,7 @@ SwVbaTable::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Table" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Table";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbatableofcontents.cxx b/sw/source/ui/vba/vbatableofcontents.cxx
index fda2e0e95acf..49731cfea8be 100644
--- a/sw/source/ui/vba/vbatableofcontents.cxx
+++ b/sw/source/ui/vba/vbatableofcontents.cxx
@@ -106,7 +106,7 @@ SwVbaTableOfContents::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.TableOfContents" );
+ aServiceNames[ 0 ] = "ooo.vba.word.TableOfContents";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbatables.cxx b/sw/source/ui/vba/vbatables.cxx
index f08b965044bd..1dc799b5fb87 100644
--- a/sw/source/ui/vba/vbatables.cxx
+++ b/sw/source/ui/vba/vbatables.cxx
@@ -228,7 +228,7 @@ SwVbaTables::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Tables" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Tables";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbatablesofcontents.cxx b/sw/source/ui/vba/vbatablesofcontents.cxx
index cf6e36d4961f..755d2a2cfdba 100644
--- a/sw/source/ui/vba/vbatablesofcontents.cxx
+++ b/sw/source/ui/vba/vbatablesofcontents.cxx
@@ -177,7 +177,7 @@ SwVbaTablesOfContents::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.TablesOfContents");
+ sNames[0] = "ooo.vba.word.TablesOfContents";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbatabstop.cxx b/sw/source/ui/vba/vbatabstop.cxx
index d780309e6a2c..55b32f6ac1ab 100644
--- a/sw/source/ui/vba/vbatabstop.cxx
+++ b/sw/source/ui/vba/vbatabstop.cxx
@@ -44,7 +44,7 @@ SwVbaTabStop::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.TabStop" );
+ aServiceNames[ 0 ] = "ooo.vba.word.TabStop";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx
index bdacbe2908ff..c4ea6eae7761 100644
--- a/sw/source/ui/vba/vbatabstops.cxx
+++ b/sw/source/ui/vba/vbatabstops.cxx
@@ -262,7 +262,7 @@ SwVbaTabStops::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.TabStops");
+ sNames[0] = "ooo.vba.word.TabStops";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbatemplate.cxx b/sw/source/ui/vba/vbatemplate.cxx
index c641baa9b723..0da51fd934d9 100644
--- a/sw/source/ui/vba/vbatemplate.cxx
+++ b/sw/source/ui/vba/vbatemplate.cxx
@@ -127,7 +127,7 @@ SwVbaTemplate::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Template" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Template";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbavariable.cxx b/sw/source/ui/vba/vbavariable.cxx
index 0f2ef343533a..404fe6cdc5e9 100644
--- a/sw/source/ui/vba/vbavariable.cxx
+++ b/sw/source/ui/vba/vbavariable.cxx
@@ -88,7 +88,7 @@ SwVbaVariable::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Variable" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Variable";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbavariables.cxx b/sw/source/ui/vba/vbavariables.cxx
index c1a4b2d6deb6..ad93d0a188a3 100644
--- a/sw/source/ui/vba/vbavariables.cxx
+++ b/sw/source/ui/vba/vbavariables.cxx
@@ -87,7 +87,7 @@ SwVbaVariables::getServiceNames()
if ( sNames.getLength() == 0 )
{
sNames.realloc( 1 );
- sNames[0] = OUString("ooo.vba.word.Variables");
+ sNames[0] = "ooo.vba.word.Variables";
}
return sNames;
}
diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx
index 6bc0569f4241..a00b1324a9c5 100644
--- a/sw/source/ui/vba/vbaview.cxx
+++ b/sw/source/ui/vba/vbaview.cxx
@@ -256,10 +256,10 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType )
case word::WdSeekView::wdSeekPrimaryFooter:
case word::WdSeekView::wdSeekEvenPagesFooter:
{
- aPropIsOn = OUString("FooterIsOn");
- aPropIsShared = OUString("FooterIsShared");
- aPropBodyDistance = OUString("FooterBodyDistance");
- aPropText = OUString("FooterText");
+ aPropIsOn = "FooterIsOn";
+ aPropIsShared = "FooterIsShared";
+ aPropBodyDistance = "FooterBodyDistance";
+ aPropText = "FooterText";
break;
}
case word::WdSeekView::wdSeekCurrentPageHeader:
@@ -267,10 +267,10 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType )
case word::WdSeekView::wdSeekPrimaryHeader:
case word::WdSeekView::wdSeekEvenPagesHeader:
{
- aPropIsOn = OUString("HeaderIsOn");
- aPropIsShared = OUString("HeaderIsShared");
- aPropBodyDistance = OUString("HeaderBodyDistance");
- aPropText = OUString("HeaderText");
+ aPropIsOn = "HeaderIsOn";
+ aPropIsShared = "HeaderIsShared";
+ aPropBodyDistance = "HeaderBodyDistance";
+ aPropText = "HeaderText";
break;
}
}
@@ -383,7 +383,7 @@ SwVbaView::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.View" );
+ aServiceNames[ 0 ] = "ooo.vba.word.View";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx
index 9649402606f1..f57c329739bf 100644
--- a/sw/source/ui/vba/vbawindow.cxx
+++ b/sw/source/ui/vba/vbawindow.cxx
@@ -141,7 +141,7 @@ SwVbaWindow::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.Window" );
+ aServiceNames[ 0 ] = "ooo.vba.word.Window";
}
return aServiceNames;
}
diff --git a/sw/source/ui/vba/vbawrapformat.cxx b/sw/source/ui/vba/vbawrapformat.cxx
index eabbd835ac00..65e00efe5a1c 100644
--- a/sw/source/ui/vba/vbawrapformat.cxx
+++ b/sw/source/ui/vba/vbawrapformat.cxx
@@ -225,7 +225,7 @@ SwVbaWrapFormat::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString("ooo.vba.word.WrapFormat" );
+ aServiceNames[ 0 ] = "ooo.vba.word.WrapFormat";
}
return aServiceNames;
}