9 #include FORMS_H_LOCATION
16 This class implements Find & Replace in LyXText texts. It is based on
17 LyXFindReplace0, which implements the form related stuff. (see lyxfr0.h)
19 class LyXFindReplace1 : public LyXFindReplace0 {
22 LyXFindReplace1() : LyXFindReplace0() {};
24 ~LyXFindReplace1() {};
26 /// Initialize internal variables and search form
27 virtual void StartSearch();
30 virtual bool SearchCB(bool fForward);
32 virtual void SearchReplaceCB();
34 virtual void SearchReplaceAllCB();
36 /// Set by IsSearchStringInText:
39 /// Direction we are searching:
43 bool SearchForward(LyXText *lt);
45 bool SearchBackward(LyXText *lt);
47 /** Compares 2 char values.
50 \item > 0 if ch1 > ch2
51 \item = 0 if ch1 == ch2
52 \item < 0 if ch1 < ch2
55 int CompareChars(char chSearch, char chText);
57 /// returns true if the specified string is at the specified position
58 bool IsSearchStringInText(LyXParagraph *par, int pos);