#include <KoSearchDia.h>
|
| | KoFindReplace (TQWidget *parent, KoSearchDia *dialog, const TQValueList< KoTextObject * > &lstObject, KoTextView *textView) |
| | KoFindReplace (TQWidget *parent, KoReplaceDia *dialog, const TQValueList< KoTextObject * > &lstObject, KoTextView *textView) |
| 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 TQString &text, int index, int matchedlength) |
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 207 of file KoSearchDia.h.
◆ KoFindReplace() [1/2]
| KoFindReplace::KoFindReplace |
( |
TQWidget * | parent, |
|
|
KoSearchDia * | dialog, |
|
|
const TQValueList< KoTextObject * > & | lstObject, |
|
|
KoTextView * | textView ) |
◆ KoFindReplace() [2/2]
| KoFindReplace::KoFindReplace |
( |
TQWidget * | parent, |
|
|
KoReplaceDia * | dialog, |
|
|
const TQValueList< KoTextObject * > & | lstObject, |
|
|
KoTextView * | textView ) |
◆ ~KoFindReplace()
| KoFindReplace::~KoFindReplace |
( |
| ) |
|
◆ currentParag()
| KoTextParag * KoFindReplace::currentParag |
( |
| ) |
|
|
inline |
◆ dialogClosed
| void KoFindReplace::dialogClosed |
( |
| ) |
|
|
protectedslot |
◆ emitUndoRedo()
| void KoFindReplace::emitUndoRedo |
( |
| ) |
|
Emit undo/redo command for the last replacements made.
Definition at line 232 of file KoSearchDia.cpp.
◆ findNext()
| bool KoFindReplace::findNext |
( |
| ) |
|
Look for the next match.
This whole code should be rewritten at some point: if we want to allow matches across paragraph borders, then we need to send the whole text of a textobject at once, instead of paragraph-after-paragraph.
Returns false if we're finished.
Definition at line 252 of file KoSearchDia.cpp.
◆ findPrevious()
| bool KoFindReplace::findPrevious |
( |
| ) |
|
Look for the previous match.
Returns false if we're finished.
Definition at line 312 of file KoSearchDia.cpp.
◆ highlight
| void KoFindReplace::highlight |
( |
const TQString & | text, |
|
|
int | matchingIndex, |
|
|
int | matchingLength ) |
|
protectedslot |
◆ highlightPortion()
| virtual void KoFindReplace::highlightPortion |
( |
KoTextParag * | parag, |
|
|
int | index, |
|
|
int | length, |
|
|
KoTextDocument * | textdoc, |
|
|
KDialogBase * | dialog ) |
|
pure virtual |
◆ isReplace()
| bool KoFindReplace::isReplace |
( |
| ) |
const |
|
inline |
◆ macroCommand()
◆ needData()
| bool KoFindReplace::needData |
( |
| ) |
const |
|
inlineprotected |
◆ options()
| long KoFindReplace::options |
( |
| ) |
const |
|
protected |
◆ optionsChanged
| void KoFindReplace::optionsChanged |
( |
| ) |
|
|
protectedslot |
◆ removeHighlight()
| void KoFindReplace::removeHighlight |
( |
| ) |
|
|
protected |
◆ replace
| void KoFindReplace::replace |
( |
const TQString & | text, |
|
|
int | replacementIndex, |
|
|
int | replacedLength, |
|
|
int | searchLength ) |
|
protectedslot |
◆ replaceWithAttribut()
| void KoFindReplace::replaceWithAttribut |
( |
KoTextCursor * | cursor, |
|
|
int | index ) |
|
protected |
◆ setActiveWindow()
| void KoFindReplace::setActiveWindow |
( |
| ) |
|
Bring to front (e.g.
when menuitem called twice)
Definition at line 494 of file KoSearchDia.cpp.
◆ setData()
| void KoFindReplace::setData |
( |
const TQString & | data, |
|
|
int | startPos = -1 ) |
|
inlineprotected |
◆ setOptions()
| void KoFindReplace::setOptions |
( |
long | opt | ) |
|
|
protected |
◆ shouldRestart()
| bool KoFindReplace::shouldRestart |
( |
| ) |
|
◆ slotCurrentParagraphModified
| void KoFindReplace::slotCurrentParagraphModified |
( |
int | , |
|
|
int | pos, |
|
|
int | ) |
|
protectedslot |
◆ slotFindNext
| void KoFindReplace::slotFindNext |
( |
| ) |
|
|
protectedslot |
◆ validateMatch()
| bool KoFindReplace::validateMatch |
( |
const TQString & | text, |
|
|
int | index, |
|
|
int | matchedlength ) |
The documentation for this class was generated from the following files:
|