diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-09-03 18:29:30 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-04 09:57:11 +0000 |
commit | 9a0d753b84aed53083bed3ed460308b771f432a8 (patch) | |
tree | c4c27c8f8eb8c1a08df3f6e87e230918a1784eb1 /editeng/source/uno/unoforou.cxx | |
parent | ed87e4c4b09d0f623c350528a4f6a6d049735bd1 (diff) |
String to OUString
Change-Id: I8c51db8fce8c5eea1ac7bd5751aa7f3212ef1166
Reviewed-on: https://gerrit.libreoffice.org/5790
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng/source/uno/unoforou.cxx')
-rw-r--r-- | editeng/source/uno/unoforou.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/uno/unoforou.cxx b/editeng/source/uno/unoforou.cxx index 669cd20fcd6b..d07c68a97a3a 100644 --- a/editeng/source/uno/unoforou.cxx +++ b/editeng/source/uno/unoforou.cxx @@ -63,7 +63,7 @@ sal_uInt16 SvxOutlinerForwarder::GetTextLen( sal_Int32 nParagraph ) const return rOutliner.GetEditEngine().GetTextLen( nParagraph ); } -String SvxOutlinerForwarder::GetText( const ESelection& rSel ) const +OUString SvxOutlinerForwarder::GetText( const ESelection& rSel ) const { //! GetText (ESelection) should probably also be in the Outliner // in the time beeing use as the hack for the EditEngine: @@ -195,10 +195,10 @@ void SvxOutlinerForwarder::GetPortions( sal_Int32 nPara, std::vector<sal_uInt16> ((EditEngine&)rOutliner.GetEditEngine()).GetPortions( nPara, rList ); } -void SvxOutlinerForwarder::QuickInsertText( const String& rText, const ESelection& rSel ) +void SvxOutlinerForwarder::QuickInsertText( const OUString& rText, const ESelection& rSel ) { flushCache(); - if( rText.Len() == 0 ) + if( rText.isEmpty() ) { rOutliner.QuickDelete( rSel ); } @@ -444,7 +444,7 @@ sal_Bool SvxOutlinerForwarder::Delete( const ESelection& rSelection ) return sal_True; } -sal_Bool SvxOutlinerForwarder::InsertText( const String& rStr, const ESelection& rSelection ) +sal_Bool SvxOutlinerForwarder::InsertText( const OUString& rStr, const ESelection& rSelection ) { flushCache(); rOutliner.QuickInsertText( rStr, rSelection ); @@ -551,9 +551,9 @@ void SvxOutlinerForwarder::AppendParagraph() rEditEngine.InsertParagraph( rEditEngine.GetParagraphCount(), String::EmptyString() ); } -xub_StrLen SvxOutlinerForwarder::AppendTextPortion( sal_Int32 nPara, const String &rText, const SfxItemSet & /*rSet*/ ) +sal_uInt16 SvxOutlinerForwarder::AppendTextPortion( sal_Int32 nPara, const OUString &rText, const SfxItemSet & /*rSet*/ ) { - xub_StrLen nLen = 0; + sal_uInt16 nLen = 0; EditEngine& rEditEngine = const_cast< EditEngine& >( rOutliner.GetEditEngine() ); sal_Int32 nParaCount = rEditEngine.GetParagraphCount(); |