]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBibtex.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormBibtex.h
index 9c0dfdf58bd3819e74fd5186c3b3230e44f7a943..66a3241e7799a40f8dca76434aadad740f4ed9b1 100644 (file)
 #ifndef FORMBIBTEX_H
 #define FORMBIBTEX_H
 
-#include <boost/smart_ptr.hpp>
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-#include "FormInset.h"
+#include "FormBase.h"
 
+class ControlBibtex;
 struct FD_form_bibtex;
 
 /**
  * For bibtex database setting
  */
-class FormBibtex : public FormCommand {
+class FormBibtex : public FormCB<ControlBibtex, FormDB<FD_form_bibtex> > {
 public:
        ///
-       FormBibtex(LyXView *, Dialogs *);
+       FormBibtex(ControlBibtex &);
+
 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;
-       ///
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
+
+       /// Fdesign generated method
        FD_form_bibtex * build_bibtex();
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_bibtex> dialog_;
-       /// The ButtonController
-       ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
 };
 
-
-inline
-xformsBC & FormBibtex::bc()
-{
-  return bc_;
-}
 #endif // FORMBIBTEX_H