9 #include "lyxparagraph.h"
14 /** Find and replace in LyXText texts.
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 LyXFindReplace {
26 /// Initialize internal variables and search form
27 void StartSearch(BufferView *);
30 bool SearchCB(bool fForward);
32 void SearchReplaceCB();
34 void SearchReplaceAllCB();
36 /// Set by IsSearchStringInText:
37 mutable int iLenSelected;
39 /// Direction we are searching:
43 bool SearchForward(BufferView *);
45 bool SearchBackward(BufferView *);
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) const;
56 /// returns true if the specified string is at the specified position
57 bool IsSearchStringInText(LyXParagraph * par,
58 LyXParagraph::size_type pos) const;