diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-01 10:33:48 -0500 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-02 07:31:30 +0000 |
commit | 6a08067902ddc0ec61a7c7b4b0035b303f643a50 (patch) | |
tree | cd49d1824cd169d9d224925b836eaa70de27414e /editeng | |
parent | 82a1d75ee59c46e6bb361b98c520cc4eff2e770c (diff) |
OUString convertion for unotools
Change-Id: Ifae7f344e3827875e32afa3cda23c771f5735707
Reviewed-on: https://gerrit.libreoffice.org/4659
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 7572014e54d8..dedd6b2c1497 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2608,8 +2608,8 @@ sal_Bool ImpEditEngine::ImpSearch( const SvxSearchItem& rSearchItem, ContentNode* pNode = aEditDoc.GetObject( nNode ); - sal_uInt16 nStartPos = 0; - sal_uInt16 nEndPos = pNode->Len(); + sal_Int32 nStartPos = 0; + sal_Int32 nEndPos = pNode->Len(); if ( nNode == nStartNode ) { if ( bBack ) @@ -2626,16 +2626,21 @@ sal_Bool ImpEditEngine::ImpSearch( const SvxSearchItem& rSearchItem, } // Searching ... - XubString aParaStr( GetEditDoc().GetParaAsString( pNode ) ); + OUString aParaStr( GetEditDoc().GetParaAsString( pNode ) ); bool bFound = false; if ( bBack ) { - Swapsal_uIt16s( nStartPos, nEndPos ); - bFound = aSearcher.SearchBkwrd( aParaStr, &nStartPos, &nEndPos); + sal_Int32 nTemp; + nTemp = nStartPos; + nStartPos = nEndPos; + nEndPos = nTemp; + + bFound = aSearcher.SearchBackward( aParaStr, &nStartPos, &nEndPos); } else - bFound = aSearcher.SearchFrwrd( aParaStr, &nStartPos, &nEndPos); - + { + bFound = aSearcher.SearchForward( aParaStr, &nStartPos, &nEndPos); + } if ( bFound ) { rFoundSel.Min().SetNode( pNode ); |