]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBibtex.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormBibtex.h
index 7ba90f284e0ce78c332a51172ae7d54bce6e7846..ed050bf1d1ad55b0ab330750b456caac3fc75d54 100644 (file)
@@ -1,61 +1,40 @@
 // -*- C++ -*-
 /**
  * \file FormBibtex.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
  * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMBIBTEX_H
 #define FORMBIBTEX_H
 
-#include <boost/smart_ptr.hpp>
-
-#include "FormInset.h"
-#include "xformsBC.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "FormDialogView.h"
 
-struct FD_form_bibtex;
+class ControlBibtex;
+struct FD_bibtex;
 
 /**
  * For bibtex database setting
  */
-class FormBibtex : public FormCommand {
+class FormBibtex : public FormController<ControlBibtex, FormView<FD_bibtex> > {
 public:
        ///
-       FormBibtex(LyXView *, Dialogs *);
+       FormBibtex(Dialog &);
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
-       /// Connect signals etc. Set form's max size.
-       virtual void connect();
-       /// Build the dialog
+       /// Set the Params variable for the Controller.
+       virtual void apply();
+       /// Build the dialog.
        virtual void build();
-       /// Update dialog before showing it
+       /// Update dialog before/whilst showing it.
        virtual void update();
-       /// input handler
-       virtual bool input(FL_OBJECT *, long);
-       /// Apply from dialog (modify or create inset)
-       virtual void apply();
-       /// Pointer to the actual instantiation of the xforms form
-       virtual FL_FORM * form() const;
-       ///
-       FD_form_bibtex * build_bibtex();
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_bibtex> dialog_;
-       /// The ButtonController
-       ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 };
 
-
-inline
-xformsBC & FormBibtex::bc()
-{
-  return bc_;
-}
 #endif // FORMBIBTEX_H