From 2f9d2489791ee97a169df0cea932ed7f9ba1e66c Mon Sep 17 00:00:00 2001 From: MÁTÉ Gergely Date: Thu, 25 Jul 2013 22:56:53 +0200 Subject: OUString conversion in sd in textapi.hxx and related files Change-Id: Id080ae9aaf08de1b0903ee12dc1082c7e531af0b Reviewed-on: https://gerrit.libreoffice.org/5114 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- sd/inc/textapi.hxx | 2 +- sd/source/core/text/textapi.cxx | 8 ++++---- sd/source/ui/annotations/annotationmanager.cxx | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'sd') 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") ); -- cgit