kpresenter

KPrFindReplace Class Reference

#include <KPrFindReplace.h>

Public Member Functions

 KPrFindReplace (TQWidget *parent, KPrCanvas *canvas, KoSearchDia *dialog, const TQValueList< KoTextObject * > &lstObjects, KPrTextView *textView)
 KPrFindReplace (TQWidget *parent, KPrCanvas *canvas, KoReplaceDia *dialog, const TQValueList< KoTextObject * > &lstObjects, KPrTextView *textView)
virtual void emitNewCommand (KCommand *)
virtual void highlightPortion (KoTextParag *parag, int index, int length, KoTextDocument *textdoc, KDialogBase *dialog)

Detailed Description

This class implements the 'find' functionality ( the "search next, prompt" loop ) and the 'replace' functionality.

Same class, to allow centralizing the code that finds the framesets and paragraphs to look into.

Definition at line 41 of file KPrFindReplace.h.

Constructor & Destructor Documentation

◆ KPrFindReplace() [1/2]

KPrFindReplace::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 the scrollbars (hehe, cool effect).

Definition at line 31 of file KPrFindReplace.cpp.

◆ KPrFindReplace() [2/2]

KPrFindReplace::KPrFindReplace ( TQWidget * parent,
KPrCanvas * canvas,
KoReplaceDia * dialog,
const TQValueList< KoTextObject * > & lstObjects,
KPrTextView * textView )

Definition at line 38 of file KPrFindReplace.cpp.

◆ ~KPrFindReplace()

KPrFindReplace::~KPrFindReplace ( )

Definition at line 45 of file KPrFindReplace.cpp.

Member Function Documentation

◆ emitNewCommand()

void KPrFindReplace::emitNewCommand ( KCommand * cmd)
virtual

Definition at line 50 of file KPrFindReplace.cpp.

◆ highlightPortion()

void KPrFindReplace::highlightPortion ( KoTextParag * parag,
int index,
int length,
KoTextDocument * textdoc,
KDialogBase * dialog )
virtual

Definition at line 55 of file KPrFindReplace.cpp.


The documentation for this class was generated from the following files: