summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaautotextentry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbaautotextentry.cxx')
-rw-r--r--sw/source/ui/vba/vbaautotextentry.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/ui/vba/vbaautotextentry.cxx b/sw/source/ui/vba/vbaautotextentry.cxx
index dd1f17f16ff4..051943cd1f41 100644
--- a/sw/source/ui/vba/vbaautotextentry.cxx
+++ b/sw/source/ui/vba/vbaautotextentry.cxx
@@ -41,14 +41,14 @@ uno::Reference< word::XRange > SAL_CALL SwVbaAutoTextEntry::Insert( const uno::R
if( pWhere )
{
uno::Reference< text::XTextRange > xTextRange = pWhere->getXTextRange();
- xTextRange->setString( "x" ); // set marker
+ xTextRange->setString( u"x"_ustr ); // set marker
uno::Reference< text::XTextRange > xEndMarker = xTextRange->getEnd();
- xEndMarker->setString( "x" ); // set marker
+ xEndMarker->setString( u"x"_ustr ); // set marker
uno::Reference< text::XText > xText = pWhere->getXText();
mxEntry->applyTo( xEndMarker->getStart() );
uno::Reference< text::XTextCursor > xTC = xText->createTextCursorByRange( xTextRange->getStart() );
xTC->goRight( 1, true );
- xTC->setString( "" ); // remove marker
+ xTC->setString( u""_ustr ); // remove marker
// remove the blank paragraph if it is a rich text
bool bRich = false;
_richtext >>= bRich;
@@ -63,11 +63,11 @@ 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_SET_THROW );
xTVCursor->gotoRange( xCurrentRange, false );
- dispatchRequests( xModel,".uno:Delete" );
+ dispatchRequests( xModel,u".uno:Delete"_ustr );
xTVCursor->gotoRange( xEndMarker->getEnd(), false );
}
}
- xEndMarker->setString( "" ); // remove marker
+ xEndMarker->setString( u""_ustr ); // remove marker
xTC = xText->createTextCursorByRange( xEndMarker->getEnd() );
pWhere->setXTextCursor( xTC );
}
@@ -77,7 +77,7 @@ uno::Reference< word::XRange > SAL_CALL SwVbaAutoTextEntry::Insert( const uno::R
OUString
SwVbaAutoTextEntry::getServiceImplName()
{
- return "SwVbaAutoTextEntry";
+ return u"SwVbaAutoTextEntry"_ustr;
}
uno::Sequence< OUString >
@@ -85,7 +85,7 @@ SwVbaAutoTextEntry::getServiceNames()
{
static uno::Sequence< OUString > const aServiceNames
{
- "ooo.vba.word.AutoTextEntry"
+ u"ooo.vba.word.AutoTextEntry"_ustr
};
return aServiceNames;
}
@@ -103,7 +103,7 @@ SwVbaAutoTextEntries::getElementType()
uno::Reference< container::XEnumeration >
SwVbaAutoTextEntries::createEnumeration()
{
- throw uno::RuntimeException("Not implemented" );
+ throw uno::RuntimeException(u"Not implemented"_ustr );
}
uno::Any
@@ -116,7 +116,7 @@ SwVbaAutoTextEntries::createCollectionObject( const css::uno::Any& aSource )
OUString
SwVbaAutoTextEntries::getServiceImplName()
{
- return "SwVbaAutoTextEntries";
+ return u"SwVbaAutoTextEntries"_ustr;
}
css::uno::Sequence<OUString>
@@ -124,7 +124,7 @@ SwVbaAutoTextEntries::getServiceNames()
{
static uno::Sequence< OUString > const sNames
{
- "ooo.vba.word.AutoTextEntries"
+ u"ooo.vba.word.AutoTextEntries"_ustr
};
return sNames;
}