]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSearch.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormSearch.h
index 66ad7acf4682b1228ffe7781cf4c980db3ff9287..24a473ad8cc3fdd004b3a2399876c233fff5ad40 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file FormSearch.h
  * Copyright 2001 The LyX Team.
 #ifndef FORMSEARCH_H
 #define FORMSEARCH_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "FormBase.h"
 
+class ControlSearch;
 struct FD_form_search;
-class LyXView;
-class Dialogs;
 
 /** This class provides an XForms implementation of the FormSearch Dialog.
  */
-class FormSearch : public FormBaseBD {
+class FormSearch : public FormCB<ControlSearch, FormDB<FD_form_search> > {
 public:
-   ///
-   FormSearch(LyXView *, Dialogs *);
-   ///
-   ~FormSearch();
+       ///
+       FormSearch(ControlSearch &);
    
 private:
-   /** Redraw the form (on receipt of a Signal indicating, for example,
-    *  that the xform colours have been re-mapped). 
-    */
-
-   /// Filter the inputs
-   virtual bool input(FL_OBJECT *, long);
+       /// not needed.
+       virtual void apply() {}
+       /// Build the dialog
+       virtual void build();
+       /// not needed.
+       virtual void update() {}
+
+       /// Filter the inputs
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
    
-   /// Build the popup
-   virtual void build();
-
-   /// Update the popup
-   virtual void update();
-
-   /// Searches occurance of string
-   /// if argument=true forward search otherwise backward search
-   void Find(bool const = true);
-   /// if argument=false replace once otherwise replace all
-   /// Replaces occurance of string
-   void Replace(bool const = false);
-   
-   ///
-   virtual FL_FORM * form() const;
-   
-   /// Typedefinitions from the fdesign produced Header file
-   FD_form_search  * build_search();
-   
-   /// Real GUI implementation.
-   FD_form_search  * dialog_;
+       /// Fdesign generated method
+       FD_form_search  * build_search();
 };
 
-#endif
+#endif // FORMSEARCH_H