]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormPrint.h
index 8a25cfdd036fa5a6920af7b6cef5346b8990354e..9016a91f472e44e366ac4af662c8701e7bf18d12 100644 (file)
@@ -1,68 +1,51 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
- *      
- *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
+/**
+ * \file xforms/FormPrint.h
+ * Copyright 1999-2001 Allan Rae
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *         This file copyright 1999-2000
- *         Allan Rae
- *======================================================*/
-/* FormPrint.h
- * FormPrint Interface Class
+ * \author Allan Rae
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef FORMPRINT_H
 #define FORMPRINT_H
 
-#include "FormBase.h"
-#include "RadioButtonGroup.h"
 
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-class LyXView;
-class Dialogs;
-struct FD_form_print;
+#include "FormBase.h"
+#include "RadioButtonGroup.h"
+
+class ControlPrint;
+struct FD_print;
 
 /** This class provides an XForms implementation of the FormPrint Dialog.
     The print dialog allows users to print their documents.
  */
-class FormPrint : public FormBase {
+class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
 public:
-       /// #FormPrint x(LyXView ..., Dialogs ...);#
-       FormPrint(LyXView *, Dialogs *);
        ///
-       ~FormPrint();
-
+       FormPrint();
 private:
-       /// Update the dialog.
-       virtual void update();
        /// Apply from dialog
        virtual void apply();
-       /// Filter the inputs
-       virtual bool input(long);
-       ///
-       virtual void connect();
-       /// Pointer to the actual instantiation of the xform's form
-       virtual FL_FORM * form() const;
        /// Build the dialog
        virtual void build();
+       /// Update the dialog.
+       virtual void update();
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
-       ///
-       FD_form_print * build_print();
-       
-       /// Real GUI implementation.
-       FD_form_print * dialog_;
        /// print target
        RadioButtonGroup target_;
-       /// page order
-       RadioButtonGroup order_;
        /// which pages
-       RadioButtonGroup which_;
+       RadioButtonGroup which_pages_;
 };
 
-#endif
+#endif // FORMPRINT_H