diff --git a/sd/inc/textapi.hxx b/sd/inc/textapi.hxx index 12a67be9c879..ceb27cf63a8a 100644 --- a/sd/inc/textapi.hxx +++ b/sd/inc/textapi.hxx @@ -46,7 +46,7 @@ public: OutlinerParaObject* CreateText(); void SetText( OutlinerParaObject& rText ); - String GetText(); + OUString GetText(); static TextApiObject* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >& ); diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx index afe6e80075ff..acd3e8630ff7 100644 --- a/sd/source/core/text/textapi.cxx +++ b/sd/source/core/text/textapi.cxx @@ -108,7 +108,7 @@ public: void Dispose(); void SetText( OutlinerParaObject& rText ); OutlinerParaObject* CreateText(); - String GetText(); + OUString GetText(); SdDrawDocument* GetDoc() { return pImpl->mpDoc; } }; @@ -174,7 +174,7 @@ void TextApiObject::SetText( OutlinerParaObject& rText ) maSelection.nStartPara = EE_PARA_MAX_COUNT; } -String TextApiObject::GetText() +OUString TextApiObject::GetText() { return mpSource->GetText(); } @@ -273,12 +273,12 @@ OutlinerParaObject* TextAPIEditSource::CreateText() return 0; } -String TextAPIEditSource::GetText() +OUString TextAPIEditSource::GetText() { if ( pImpl->mpDoc && pImpl->mpOutliner ) return pImpl->mpOutliner->GetEditEngine().GetText(); else - return String(); + return OUString(); } } // namespace sd diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index 5d95892ceddc..5baa4bae1f2a 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -469,10 +469,10 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest& rReq ) aStr.Append( OUString( getAnnotationDateTimeString( xAnnotation ) ) ); aStr.Append( OUString("): \"") ); - String sQuote( pTextApi->GetText() ); + OUString sQuote( pTextApi->GetText() ); - if( sQuote.Len() == 0 ) - sQuote = OUString( "..." ); + if( sQuote.isEmpty() ) + sQuote = "..."; aStr.Append( sQuote ); aStr.Append( OUString("\"\n") );