]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.h
merge booktabs branch
[lyx.git] / src / frontends / xforms / FormPrint.h
index 837520d46d261dcc3dd0843c424923d354f89964..5a499b5366abd68d027be6f268878e0b7e6e8a5c 100644 (file)
@@ -1,36 +1,35 @@
 // -*- C++ -*-
 /**
- * \file xforms/FormPrint.h
- * Copyright 2002 the LyX Team
- * Copyright 1999-2001 Allan Rae
- * Read the file COPYING
+ * \file FormPrint.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Allan Rae, rae@lyx.org
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Allan Rae
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMPRINT_H
 #define FORMPRINT_H
 
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "FormBase.h"
+#include "FormDialogView.h"
 #include "RadioButtonGroup.h"
 
+namespace lyx {
+namespace frontend {
+
 class ControlPrint;
-struct FD_form_print;
+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 FormCB<ControlPrint, FormDB<FD_form_print> > {
+class FormPrint
+       : public FormController<ControlPrint, FormView<FD_print> > {
 public:
        ///
-       FormPrint(ControlPrint &);
-
+       FormPrint(Dialog &);
 private:
        /// Apply from dialog
        virtual void apply();
@@ -38,18 +37,17 @@ private:
        virtual void build();
        /// 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();
-
        /// print target
        RadioButtonGroup target_;
-       /// page order
-       RadioButtonGroup order_;
-       /// which pages
-       RadioButtonGroup which_;
+       /// all pages or from/to
+       RadioButtonGroup all_pages_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // FORMPRINT_H