]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormPrint.h
index 45aeca3cc6a9a7a703cb3a54f63622b3441a5eb3..8f68ba2727fb113392178314bb9a1af516076191 100644 (file)
@@ -5,13 +5,15 @@
  *           LyX, The Document Processor
  *      
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
+ *          Copyright 1995-2001 The LyX Team.
  *
- *         This file copyright 1999-2000
+ *         This file copyright 1999-2001
  *         Allan Rae
- *======================================================*/
-/* FormPrint.h
- * FormPrint Interface Class
+ *======================================================
+ *
+ * \file FormPrint.h
+ * \author Allan Rae, rae@lyx.org
+ * \author Angus Leeming, a.leeming@.ac.uk
  */
 
 #ifndef FORMPRINT_H
 #pragma interface
 #endif
 
-#include "FormBaseDeprecated.h"
+#include "FormBase.h"
 #include "RadioButtonGroup.h"
-#include "xformsBC.h"
 
-class LyXView;
-class Dialogs;
+class ControlPrint;
 struct FD_form_print;
 
 /** This class provides an XForms implementation of the FormPrint Dialog.
     The print dialog allows users to print their documents.
  */
-class FormPrint : public FormBaseBD {
+class FormPrint : public FormCB<ControlPrint, FormDB<FD_form_print> > {
 public:
-       /// #FormPrint x(LyXView ..., Dialogs ...);#
-       FormPrint(LyXView *, Dialogs *);
+       /// 
+       FormPrint(ControlPrint &);
 
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
-       /// Update the dialog.
-       virtual void update();
        /// Apply from dialog
        virtual void apply();
-       /// Filter the inputs
-       virtual bool input(FL_OBJECT *, long);
-       /// Pointer to the actual instantiation of the xforms form
-       virtual FL_FORM * form() const;
        /// Build the dialog
        virtual void build();
-       /// Open the file browse dialog.
-       void browse();
+       /// Update the dialog.
+       virtual void update();
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
-       ///
+       /// Fdesign generated method
        FD_form_print * build_print();
-       
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_print> dialog_;
+
        /// print target
        RadioButtonGroup target_;
        /// page order
        RadioButtonGroup order_;
        /// which pages
        RadioButtonGroup which_;
-       /// The ButtonController
-       ButtonController<OkApplyCancelPolicy, xformsBC> bc_;
 };
 
-
-inline
-xformsBC & FormPrint::bc()
-{
-       return bc_;
-}
-#endif
+#endif // FORMPRINT_H