summaryrefslogtreecommitdiff
path: root/svx/source/editeng/impedit2.cxx
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-03-09 12:13:53 +0000
committerMalte Timmermann <mt@openoffice.org>2001-03-09 12:13:53 +0000
commit0e107a3fe0e0a697c8be43fc4bd7ec1d14b3262b (patch)
treeb0ce38c2109a3a5931c143ca03372cff90f6c6f5 /svx/source/editeng/impedit2.cxx
parent6836fdd63ae11eceebfbb6303c5f4a6696a3a23d (diff)
GetParaAsString, SearchOptions...
Diffstat (limited to 'svx/source/editeng/impedit2.cxx')
-rw-r--r--svx/source/editeng/impedit2.cxx41
1 files changed, 2 insertions, 39 deletions
diff --git a/svx/source/editeng/impedit2.cxx b/svx/source/editeng/impedit2.cxx
index bfb2a2ee1b17..8955d593e71c 100644
--- a/svx/source/editeng/impedit2.cxx
+++ b/svx/source/editeng/impedit2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: impedit2.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: mt $ $Date: 2001-03-08 09:27:41 $
+ * last change: $Author: mt $ $Date: 2001-03-09 13:13:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -64,10 +64,6 @@
#pragma hdrstop
-#include <srchitem.hxx>
-#ifndef _SFXSTRITEM_HXX //autogen
-#include <svtools/stritem.hxx>
-#endif
#include <lspcitem.hxx>
#include <flditem.hxx>
#include <impedit.hxx>
@@ -765,39 +761,6 @@ EditPaM ImpEditEngine::InsertText( EditSelection aSel, const XubString& rStr )
return aPaM;
}
-BOOL ImpEditEngine::Search( const SvxSearchItem& rSearchItem, EditView* pEditView )
-{
- EditSelection aSel( pEditView->pImpEditView->GetEditSelection() );
-
- aSel.Adjust( aEditDoc );
- EditPaM aStartPaM( aSel.Max() );
- if ( rSearchItem.GetSelection() && !rSearchItem.GetBackward() )
- aStartPaM = aSel.Min();
-
- EditSelection aFoundSel;
- BOOL bFound = ImpSearch( rSearchItem, aSel, aStartPaM, aFoundSel );
- if ( bFound && ( aFoundSel == aSel ) ) // Bei Rueckwaetssuche
- {
- aStartPaM = aSel.Min();
- bFound = ImpSearch( rSearchItem, aSel, aStartPaM, aFoundSel );
- }
-
- pEditView->pImpEditView->DrawSelection();
- if ( bFound )
- {
- // Erstmal das Min einstellen, damit das ganze Wort in den sichtbaren Bereich kommt.
- pEditView->pImpEditView->SetEditSelection( aFoundSel.Min() );
- pEditView->ShowCursor( TRUE, FALSE );
- pEditView->pImpEditView->SetEditSelection( aFoundSel );
- }
- else
- pEditView->pImpEditView->SetEditSelection( aSel.Max() );
-
- pEditView->pImpEditView->DrawSelection();
- pEditView->ShowCursor( TRUE, FALSE );
- return bFound;
-}
-
EditPaM ImpEditEngine::Clear()
{
InitDoc( FALSE );