9 #include FORMS_H_LOCATION
10 #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 LyXFindReplace1 : public LyXFindReplace0 {
23 LyXFindReplace1() : LyXFindReplace0() {};
25 ~LyXFindReplace1() {};
27 /// Initialize internal variables and search form
28 virtual void StartSearch();
31 virtual bool SearchCB(bool fForward);
33 virtual void SearchReplaceCB();
35 virtual void SearchReplaceAllCB();
37 /// Set by IsSearchStringInText:
40 /// Direction we are searching:
44 bool SearchForward(LyXText *lt);
46 bool SearchBackward(LyXText *lt);
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);
57 /// returns true if the specified string is at the specified position
58 bool IsSearchStringInText(LyXParagraph * par,
59 LyXParagraph::size_type pos);