diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-06 17:21:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-11 09:45:33 +0200 |
commit | 40abee2080d285733a5e8a60f8a084c0643b5e8f (patch) | |
tree | 2a9bbddc3afdfafd7601b72dbe066dcad943628f /editeng | |
parent | convert include/editeng/edtdlg.hxx from String to OUString (diff) | |
download | core-40abee2080d285733a5e8a60f8a084c0643b5e8f.tar.gz core-40abee2080d285733a5e8a60f8a084c0643b5e8f.zip |
convert include/editeng/editview.hxx from String to OUString
Change-Id: I1d21fd48dfaa8cfe4a2807cd6e50e05db4c24e28
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 3f47a36e2cbe..3819cda2334d 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -541,7 +541,7 @@ void EditView::Redo() PIMPE->Redo( this ); } -sal_uLong EditView::Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, sal_Bool bSelect, SvKeyValueIterator* pHTTPHeaderAttrs ) +sal_uLong EditView::Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, sal_Bool bSelect, SvKeyValueIterator* pHTTPHeaderAttrs ) { DBG_CHKTHIS( EditView, 0 ); DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); @@ -1411,7 +1411,7 @@ bool EditView::ChangeFontSize( bool bGrow, SfxItemSet& rSet, const FontList* pFo return bRet; } -String EditView::GetSurroundingText() const +OUString EditView::GetSurroundingText() const { DBG_CHKTHIS( EditView, 0 ); DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); @@ -1421,13 +1421,13 @@ String EditView::GetSurroundingText() const if( HasSelection() ) { - String aStr = PIMPE->GetSelected(aSel); + OUString aStr = PIMPE->GetSelected(aSel); // Stop reconversion if the selected text includes a line break. - if ( aStr.Search( 0x0A ) == STRING_NOTFOUND ) - return aStr; + if ( aStr.indexOf( 0x0A ) == -1 ) + return aStr; else - return String(); + return OUString(); } else { |