summaryrefslogtreecommitdiff
path: root/svtools/source/edit/xtextedt.cxx
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2000-11-20 13:05:50 +0000
committerMalte Timmermann <mt@openoffice.org>2000-11-20 13:05:50 +0000
commit10891268ac4092d373378e5d9519641489026bb1 (patch)
tree25f90d958c095f5e97af6e1db5e4318278339d9e /svtools/source/edit/xtextedt.cxx
parent3f033cae582db136e298e95ff475507a929adf1a (diff)
MUST changes TextSearch
Diffstat (limited to 'svtools/source/edit/xtextedt.cxx')
-rw-r--r--svtools/source/edit/xtextedt.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/edit/xtextedt.cxx b/svtools/source/edit/xtextedt.cxx
index 0203f0727f02..1295f134330c 100644
--- a/svtools/source/edit/xtextedt.cxx
+++ b/svtools/source/edit/xtextedt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xtextedt.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:58:58 $
+ * last change: $Author: mt $ $Date: 2000-11-20 14:05:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -60,8 +60,8 @@
************************************************************************/
#include <xtextedt.hxx>
-#include <txtcmp.hxx>
#include <vcl/svapp.hxx> // International
+#include <unotools/textsearch.hxx>
// -------------------------------------------------------------------------
// class ExtTextEngine
@@ -173,7 +173,7 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const
return aSel;
}
-BOOL ExtTextEngine::Search( TextSelection& rSel, const SearchParam& rSearchParam, BOOL bForward )
+BOOL ExtTextEngine::Search( TextSelection& rSel, const utl::SearchParam& rSearchParam, BOOL bForward )
{
TextSelection aSel( rSel );
aSel.Justify();
@@ -195,7 +195,7 @@ BOOL ExtTextEngine::Search( TextSelection& rSel, const SearchParam& rSearchParam
nEndNode = bForward ? (GetParagraphCount()-1) : 0;
nStartNode = aStartPaM.GetPara();
- SearchText aSearcher( rSearchParam, Application::GetAppInternational() );
+ utl::TextSearch aSearcher( rSearchParam, Application::GetAppInternational().GetLanguage() );
// ueber die Absaetze iterieren...
for ( ULONG nNode = nStartNode;
@@ -290,7 +290,7 @@ BOOL ExtTextView::MatchGroup()
return aMatchSel.HasRange() ? TRUE : FALSE;
}
-BOOL ExtTextView::Search( const SearchParam& rSearchParam, BOOL bForward )
+BOOL ExtTextView::Search( const utl::SearchParam& rSearchParam, BOOL bForward )
{
BOOL bFound = FALSE;
TextSelection aSel( GetSelection() );
@@ -313,7 +313,7 @@ BOOL ExtTextView::Search( const SearchParam& rSearchParam, BOOL bForward )
return bFound;
}
-USHORT ExtTextView::Replace( const SearchParam& rSearchParam, BOOL bAll, BOOL bForward )
+USHORT ExtTextView::Replace( const utl::SearchParam& rSearchParam, BOOL bAll, BOOL bForward )
{
USHORT nFound = 0;