]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSearch.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormSearch.h
index cf1af9fe3be402796a5d8cadb34f241cd3dafc27..3571508112031887a8c73c7c052c94e9931669b4 100644 (file)
@@ -1,67 +1,39 @@
+// -*- C++ -*-
 /**
  * \file FormSearch.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMSEARCH_H
 #define FORMSEARCH_H
 
-#include <boost/smart_ptr.hpp>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "FormBaseDeprecated.h"
+#include "FormDialogView.h"
 
-struct FD_form_search;
+class ControlSearch;
+struct FD_search;
 
 /** This class provides an XForms implementation of the FormSearch Dialog.
  */
-class FormSearch : public FormBaseBD {
+class FormSearch
+       : public FormController<ControlSearch, FormView<FD_search> > {
 public:
        ///
-       FormSearch(LyXView *, Dialogs *);
-   
+       FormSearch(Dialog &);
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
-
-       /// Filter the inputs
-       virtual bool input(FL_OBJECT *, long);
-   
-       /// Build the popup
+       /// not needed.
+       virtual void apply() {}
+       /// Build the dialog
        virtual void build();
-
-       /// Update the popup
+       /// update the dialog
        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.
-       boost::scoped_ptr<FD_form_search> dialog_;
-       /// The ButtonController
-       ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
+       /// Filter the inputs
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 };
 
-
-inline
-xformsBC & FormSearch::bc()
-{
-       return bc_;
-}
-#endif
+#endif // FORMSEARCH_H