10 #include FORMS_H_LOCATION
16 The comments below are most likely not valied anymore since
17 the rewrite of LyXFindReplace0 and LyXFindReplace1. (Lgb)
21 This is a virtual base class. It does not handle text specific
22 items. It only manages the Find & Replace form and the variables.
26 - Confirm replace lightbutton (checkbox)
28 - A history list for search and replace strings.
29 These 2 stringlists should match, so that you can replay previous replaces.
30 If you select another search string, then the first choice should be the
31 replace string you have typed before.
33 - regex searches (I'm working on that -- dnaber, 1999-02-24)
45 bool CaseSensitive() const {
46 return fl_get_button(search_form->btnCaseSensitive);
50 bool MatchWord() const {
51 return fl_get_button(search_form->btnMatchWord);
55 string SearchString() const {
56 return fl_get_input(search_form->input_search);
59 /// Initialize internal variables and dialog
60 void StartSearch(LyXFindReplace *);
63 void replaceEnabled(bool fEnabled);
65 bool replaceEnabled() const { return fReplaceEnabled; }
67 // Callbacks from form
69 void SearchCancelCB();
73 void SetSearchString(string const & ls);
75 string ReplaceString() const;
78 bool ValidSearchData() const { return !(SearchString().empty()); }
81 FD_form_search * search_form;
82 /// replace buttons enabled?