9 #include FORMS_H_LOCATION
15 This is a virtual base class. It does not handle text specific
16 items. It only manages the Find & Replace form and the variables.
20 - Confirm replace lightbutton (checkbox)
22 - A history list for search and replace strings.
23 These 2 stringlists should match, so that you can replay previous replaces.
24 If you select another search string, then the first choice should be the
25 replace string you have typed before.
27 - regex searches (I'm working on that -- dnaber, 1999-02-24)
30 class LyXFindReplace0 {
35 virtual ~LyXFindReplace0() {};
37 /// Initialize internal variables and dialog
38 virtual void StartSearch();
40 // Callbacks from form
42 virtual void SearchCancelCB();
44 virtual bool SearchCB(bool fForward) = 0;
46 virtual void SearchReplaceCB() = 0;
48 virtual void SearchReplaceAllCB() = 0;
52 /// Match complete word only.
54 /// replace buttons enabled?
60 void SetReplaceEnabled(bool fEnabled);
62 bool ReplaceEnabled() { return fReplaceEnabled; }
64 /// Initialize search variables from Find & Replace form
65 virtual void ReInitFromForm();
69 bool CaseSensitive() { return fCaseSensitive; }
71 bool MatchWord() { return fMatchWord; }
73 LString const SearchString() { return lsSearch; }
75 void SetSearchString(LString const &ls);
77 LString const ReplaceString();
80 bool ValidSearchData() { return !lsSearch.empty(); }