10 #include FORMS_H_LOCATION
12 #include <sigc++/signal_system.h>
16 #ifdef SIGC_CXX_NAMESPACES
21 The comments below are most likely not valied anymore since
22 the rewrite of LyXFindReplace0 and LyXFindReplace1. (Lgb)
26 This is a virtual base class. It does not handle text specific
27 items. It only manages the Find & Replace form and the variables.
31 - Confirm replace lightbutton (checkbox)
33 - A history list for search and replace strings.
34 These 2 stringlists should match, so that you can replay previous replaces.
35 If you select another search string, then the first choice should be the
36 replace string you have typed before.
38 - regex searches (I'm working on that -- dnaber, 1999-02-24)
41 class SearchForm : public Object {
49 bool CaseSensitive() const {
50 return fl_get_button(search_form->btnCaseSensitive);
54 bool MatchWord() const {
55 return fl_get_button(search_form->btnMatchWord);
59 string const SearchString() const {
60 return fl_get_input(search_form->input_search);
63 /// Initialize internal variables and dialog
64 void StartSearch(LyXFindReplace *);
67 void replaceEnabled(bool fEnabled);
69 bool replaceEnabled() const { return fReplaceEnabled; }
71 // Callbacks from form
73 void SearchCancelCB();
77 void SetSearchString(string const & ls);
79 string const ReplaceString() const;
82 bool ValidSearchData() const { return !(SearchString().empty()); }
84 /** Redraw the form (on receipt of a Signal indicating, for example,
85 that the xform colors have been re-mapped).
89 FD_form_search * search_form;
90 /// replace buttons enabled?
92 /// Redraw connection.