lib
KoFindReplace Class Reference
#include <KoSearchDia.h>
Detailed Description
This class implements the 'find' functionality ( the "search next, prompt" loop ) and the 'replace' functionality.Same class, to allow centralizing the findNext() code.
Definition at line 202 of file KoSearchDia.h.
Public Member Functions | |
KoFindReplace (QWidget *parent, KoSearchDia *dialog, const QValueList< KoTextObject * > &lstObject, KoTextView *textView) | |
KoFindReplace (QWidget *parent, KoReplaceDia *dialog, const QValueList< KoTextObject * > &lstObject, KoTextView *textView) | |
~KoFindReplace () | |
KoTextParag * | currentParag () |
bool | isReplace () const |
bool | shouldRestart () |
bool | findNext () |
bool | findPrevious () |
void | setActiveWindow () |
void | emitUndoRedo () |
virtual void | emitNewCommand (KCommand *)=0 |
virtual void | highlightPortion (KoTextParag *parag, int index, int length, KoTextDocument *textdoc, KDialogBase *dialog)=0 |
bool | validateMatch (const QString &text, int index, int matchedlength) |
Protected Slots | |
void | slotFindNext () |
void | optionsChanged () |
void | dialogClosed () |
void | highlight (const QString &text, int matchingIndex, int matchingLength) |
void | replace (const QString &text, int replacementIndex, int replacedLength, int searchLength) |
void | slotCurrentParagraphModified (int, int, int) |
Protected Member Functions | |
void | replaceWithAttribut (KoTextCursor *cursor, int index) |
KMacroCommand * | macroCommand () |
long | options () const |
void | setOptions (long opt) |
void | removeHighlight () |
bool | needData () const |
void | setData (const QString &data, int startPos=-1) |
Member Function Documentation
bool KoFindReplace::findNext | ( | ) |
Look for the next match.
Returns false if we're finished.
Definition at line 252 of file KoSearchDia.cpp.
bool KoFindReplace::findPrevious | ( | ) |
Look for the previous match.
Returns false if we're finished.
Definition at line 312 of file KoSearchDia.cpp.
void KoFindReplace::setActiveWindow | ( | ) |
void KoFindReplace::emitUndoRedo | ( | ) |
Emit undo/redo command for the last replacements made.
Definition at line 232 of file KoSearchDia.cpp.
virtual void KoFindReplace::highlightPortion | ( | KoTextParag * | parag, | |
int | index, | |||
int | length, | |||
KoTextDocument * | textdoc, | |||
KDialogBase * | dialog | |||
) | [pure virtual] |
Highlight a match.
bool KoFindReplace::validateMatch | ( | const QString & | text, | |
int | index, | |||
int | matchedlength | |||
) |
The documentation for this class was generated from the following files: