kpresenter

KPrFindReplace.h
1/* This file is part of the KDE project
2 Copyright (C) 2001, Laurent Montel <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef searchdia_h
21#define searchdia_h
22
23#include "KPrTextObject.h"
24#include <KoSearchDia.h>
25
26class KPrCanvas;
27class KMacroCommand;
28class KPrTextView;
29class KoTextObject;
30class KoFindReplace;
31class KoReplaceDia;
32class KoSearchDia;
33class KPrTextView;
34class KPrFindReplace;
35class KCommand;
41class KPrFindReplace : public KoFindReplace
42{
43 TQ_OBJECT
44
45public:
50 KPrFindReplace( TQWidget* parent, KPrCanvas * canvas, KoSearchDia * dialog,
51 const TQValueList<KoTextObject *> & lstObjects, KPrTextView *textView );
52 KPrFindReplace( TQWidget* parent, KPrCanvas * canvas, KoReplaceDia * dialog,
53 const TQValueList<KoTextObject *> & lstObjects, KPrTextView *textView );
55
56 virtual void emitNewCommand(KCommand *);
57 virtual void highlightPortion(KoTextParag * parag, int index, int length, KoTextDocument *textdoc, KDialogBase* dialog);
58
59private:
60 KPrCanvas *m_canvas;
61};
62
63#endif
Class KPCanvas - There is a single instance of this class for a given view.
Definition KPrCanvas.h:82
This class implements the 'find' functionality ( the "search next, prompt" loop ) and the 'replace' f...
KPrFindReplace(TQWidget *parent, KPrCanvas *canvas, KoSearchDia *dialog, const TQValueList< KoTextObject * > &lstObjects, KPrTextView *textView)
The parent widget can't be the canvas, otherwise the 'find next' dialog scrolls up/down when using th...