9 #include "lyxparagraph.h"
17 This class implements Find & Replace in LyXText texts. It is based on
18 LyXFindReplace0, which implements the form related stuff. (see lyxfr0.h)
20 class LyXFindReplace {
27 /// Initialize internal variables and search form
28 void StartSearch(BufferView *);
31 bool SearchCB(bool fForward);
33 void SearchReplaceCB();
35 void SearchReplaceAllCB();
37 /// Set by IsSearchStringInText:
38 mutable int iLenSelected;
40 /// Direction we are searching:
44 bool SearchForward(BufferView *);
46 bool SearchBackward(BufferView *);
48 /** Compares 2 char values.
51 \item > 0 if ch1 > ch2
52 \item = 0 if ch1 == ch2
53 \item < 0 if ch1 < ch2
56 int CompareChars(char chSearch, char chText) const;
57 /// returns true if the specified string is at the specified position
58 bool IsSearchStringInText(LyXParagraph * par,
59 LyXParagraph::size_type pos) const;