kpresenter

KPrFindReplace.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 2001, Laurent Montel <lmontel@mandrakesoft.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef searchdia_h
00022 #define searchdia_h
00023 
00024 #include "KPrTextObject.h"
00025 #include <KoSearchDia.h>
00026 
00027 class KPrCanvas;
00028 class KMacroCommand;
00029 class KPrTextView;
00030 class KoTextObject;
00031 class KoFindReplace;
00032 class KoReplaceDia;
00033 class KoSearchDia;
00034 class KPrTextView;
00035 class KPrFindReplace;
00036 class KCommand;
00042 class KPrFindReplace : public KoFindReplace
00043 {
00044     Q_OBJECT
00045 public:
00050     KPrFindReplace( QWidget* parent, KPrCanvas * canvas, KoSearchDia * dialog,
00051                     const QValueList<KoTextObject *> & lstObjects, KPrTextView *textView );
00052     KPrFindReplace( QWidget* parent, KPrCanvas * canvas, KoReplaceDia * dialog,
00053                     const QValueList<KoTextObject *> & lstObjects, KPrTextView *textView );
00054     ~KPrFindReplace();
00055 
00056     virtual void emitNewCommand(KCommand *);
00057     virtual void highlightPortion(KoTextParag * parag, int index, int length, KoTextDocument *textdoc, KDialogBase* dialog);
00058 
00059 private:
00060     KPrCanvas *m_canvas;
00061 };
00062 
00063 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys