]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfr0.h
Dekels tabular/textinset patches
[lyx.git] / src / lyxfr0.h
index bf549062dbec6bd5fccd81c058e1ec637e89056d..e30e4f25ad14c80167e92a5ee96b4dd7aaa83131 100644 (file)
@@ -9,9 +9,15 @@
 #include "LString.h"
 #include FORMS_H_LOCATION
 #include "form1.h"
+#include <sigc++/signal_system.h>
 
 class LyXFindReplace;
 
+#ifdef SIGC_CXX_NAMESPACES
+using SigC::Object;
+using SigC::Connection;
+#endif
+
 /**
    The comments below are most likely not valied anymore since
    the rewrite of LyXFindReplace0 and LyXFindReplace1. (Lgb)
@@ -33,7 +39,7 @@ class LyXFindReplace;
   - regex searches (I'm working on that -- dnaber, 1999-02-24)
 
 */
-class SearchForm {
+class SearchForm : public Object {
 public:
        ///
        SearchForm();
@@ -51,7 +57,7 @@ public:
        }
 
        ///
-       string SearchString() const {
+       string const SearchString() const {
                return fl_get_input(search_form->input_search);
        }
 
@@ -71,15 +77,21 @@ public:
        ///
        void SetSearchString(string const & ls);
        ///
-       string ReplaceString() const;
+       string const ReplaceString() const;
 
        ///
        bool ValidSearchData() const { return !(SearchString().empty()); }
 private:
+       /** Redraw the form (on receipt of a Signal indicating, for example,
+           that the xform colors have been re-mapped).
+       */
+       void redraw();
        ///
        FD_form_search * search_form;
        /// replace buttons enabled?
        bool fReplaceEnabled;
+       /// Redraw connection.
+       Connection r_;
 };
 
 #endif