kword

KWFindReplace.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3 Copyright (C) 2001, S.R.Haque <srhaque@iee.org>
4 Copyright (C) 2001, David Faure <faure@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef searchdia_h
23#define searchdia_h
24
25#include <tqstring.h>
26#include <tqstringlist.h>
27#include <KoRichText.h>
28#include <KoTextObject.h>
29#include <KoTextView.h>
30#include <KoSearchDia.h>
31
32class KWCanvas;
33class KWTextFrameSet;
34class KMacroCommand;
41class KWFindReplace : public KoFindReplace
42{
43 TQ_OBJECT
44
45public:
46 KWFindReplace( KWCanvas * canvas, KoSearchDia * dialog, const TQValueList<KoTextObject *> & lstObjects, KWTextFrameSetEdit* textView );
47 KWFindReplace( KWCanvas * parent, KoReplaceDia * dialog, const TQValueList<KoTextObject *> & lstObjects, KWTextFrameSetEdit* textView );
49
50 virtual void emitNewCommand(KCommand *);
51 virtual void highlightPortion(KoTextParag * parag, int index, int length, KoTextDocument *textdocument, KDialogBase* dialog);
52
53private:
54 KWCanvas *m_canvas;
55};
56
57#endif
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
Definition KWCanvas.h:61
This class implements the 'find' functionality ( the "search next, prompt" loop ) and the 'replace' f...
Object that is created to edit a Text frame set (KWTextFrameSet).
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.