]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.h
Swap two printer related help messages.
[lyx.git] / src / frontends / xforms / FormPrint.h
index bba61cd3cbaf4db450825eea36c64788bd9c51ca..0f9f69dda1bdcec3c1bfd4928fbf79bb894aa739 100644 (file)
 #ifndef FORMPRINT_H
 #define FORMPRINT_H
 
-#include "DialogBase.h"
-#include "form_print.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
+#include "FormBase.h"
+#include "RadioButtonGroup.h"
+
+#ifdef __GNUG__
+#pragma interface
 #endif
 
 class LyXView;
 class Dialogs;
+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 DialogBase {
+class FormPrint : public FormBaseBD {
 public:
-       /**@name Constructors and Destructors */
-       //@{
-       /// #FormPrint x(LyXFunc ..., Dialogs ...);#
+       /// #FormPrint x(LyXView ..., Dialogs ...);#
        FormPrint(LyXView *, Dialogs *);
        ///
        ~FormPrint();
-       //@}
-
-       /**@name Real per-instance Callback Methods */
-       //@{
-       static  int WMHideCB(FL_FORM *, void *);
-       static void OKCB(FL_OBJECT *, long);
-       static void ApplyCB(FL_OBJECT *, long);
-       static void CancelCB(FL_OBJECT *, long);
-       static void InputCB(FL_OBJECT *, long);
-       //@}
 
 private:
-       FormPrint() {}
-       FormPrint(FormPrint &) : DialogBase() {}
-
-       /**@name Slot Methods */
-       //@{
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
        /// Update the dialog.
-       void update();
-       //@}
-
-       /**@name Dialog internal methods */
-       //@{
+       virtual void update();
        /// Apply from dialog
-       void apply();
+       virtual void apply();
        /// Filter the inputs
-       void input();
+       virtual bool input(FL_OBJECT *, long);
+       /// Pointer to the actual instantiation of the xform's form
+       virtual FL_FORM * form() const;
        /// Build the dialog
-       void build();
+       virtual void build();
+
        ///
        FD_form_print * build_print();
-       /// Explicitly free the dialog.
-       void free();
-       //@}
-
-       /**@name Private Data */
-       //@{
+       
        /// Real GUI implementation.
        FD_form_print * dialog_;
-       /// Which LyXView do we belong to?
-       LyXView * lv_;
-       Dialogs * d_;
-       /// Update connection.
-       Connection u_;
-       /// Hide connection.
-       Connection h_;
-       //@}
+       /// print target
+       RadioButtonGroup target_;
+       /// page order
+       RadioButtonGroup order_;
+       /// which pages
+       RadioButtonGroup which_;
 };
 
 #endif