21#include "KPrFindReplace.h"
24#include "KPrDocument.h"
25#include "KPrTextObject.h"
26#include <KoTextObject.h>
28#include <KoSearchDia.h>
29#include "KPrTextDocument.h"
32 const TQValueList<KoTextObject *> & lstObjects, KPrTextView *textView)
33 : KoFindReplace( parent, dialog, lstObjects, textView )
39 const TQValueList<KoTextObject *> & lstObjects, KPrTextView *textView )
40 : KoFindReplace( parent, dialog, lstObjects, textView )
45KPrFindReplace::~KPrFindReplace()
50void KPrFindReplace::emitNewCommand(KCommand *cmd)
52 m_canvas->getView()->kPresenterDoc()->addCommand(cmd);
55void KPrFindReplace::highlightPortion(KoTextParag * parag, int index, int length, KoTextDocument *_textdoc, KDialogBase* dialog)
57 bool repaint = isReplace() ? options() & KReplaceDialog::PromptOnReplace : true;
58 KPrTextDocument *textdoc = static_cast<KPrTextDocument * >(_textdoc);
59 KPrTextObject* textobj = textdoc-> textObject();
60 textobj->highlightPortion( parag, index, length, m_canvas, repaint, dialog );
63#include "KPrFindReplace.moc"
Class KPCanvas - There is a single instance of this class for a given view.
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...
KPrTextObject * textObject() const Return the text object in which this document is.
|