OUString conversion in sd in textapi.hxx and related files

Change-Id: Id080ae9aaf08de1b0903ee12dc1082c7e531af0b
Reviewed-on: https://gerrit.libreoffice.org/5114
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
This commit is contained in:
MÁTÉ Gergely 2013-07-25 22:56:53 +02:00 committed by Norbert Thiebaud
parent c02b3f8517
commit 2f9d248979
3 changed files with 8 additions and 8 deletions

View File

@ -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 >& );

View File

@ -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

View File

@ -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") );