10 #include FORMS_H_LOCATION
12 #include <sigc++/signal_system.h>
16 #ifdef SIGC_CXX_NAMESPACES
18 using SigC::Connection;
22 The comments below are most likely not valied anymore since
23 the rewrite of LyXFindReplace0 and LyXFindReplace1. (Lgb)
27 This is a virtual base class. It does not handle text specific
28 items. It only manages the Find & Replace form and the variables.
32 - Confirm replace lightbutton (checkbox)
34 - A history list for search and replace strings.
35 These 2 stringlists should match, so that you can replay previous replaces.
36 If you select another search string, then the first choice should be the
37 replace string you have typed before.
39 - regex searches (I'm working on that -- dnaber, 1999-02-24)
42 class SearchForm : public Object {
50 bool CaseSensitive() const {
51 return fl_get_button(search_form->btnCaseSensitive);
55 bool MatchWord() const {
56 return fl_get_button(search_form->btnMatchWord);
60 string const SearchString() const {
61 return fl_get_input(search_form->input_search);
64 /// Initialize internal variables and dialog
65 void StartSearch(LyXFindReplace *);
68 void replaceEnabled(bool fEnabled);
70 bool replaceEnabled() const { return fReplaceEnabled; }
72 // Callbacks from form
74 void SearchCancelCB();
78 void SetSearchString(string const & ls);
80 string const ReplaceString() const;
83 bool ValidSearchData() const { return !(SearchString().empty()); }
85 /** Redraw the form (on receipt of a Signal indicating, for example,
86 that the xform colors have been re-mapped).
90 FD_form_search * search_form;
91 /// replace buttons enabled?
93 /// Redraw connection.