X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.h;h=0f9f69dda1bdcec3c1bfd4928fbf79bb894aa739;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=1d9a568b420b97259202fa0d16b8de4baf9e6a20;hpb=9062ce972e562477eb64c294769747ebf386fa6c;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.h b/src/frontends/xforms/FormPrint.h index 1d9a568b42..0f9f69dda1 100644 --- a/src/frontends/xforms/FormPrint.h +++ b/src/frontends/xforms/FormPrint.h @@ -17,8 +17,8 @@ #ifndef FORMPRINT_H #define FORMPRINT_H -#include "DialogBase.h" -#include "support/utility.hpp" +#include "FormBase.h" +#include "RadioButtonGroup.h" #ifdef __GNUG__ #pragma interface @@ -28,57 +28,39 @@ class LyXView; class Dialogs; struct FD_form_print; -#ifdef SIGC_CXX_NAMESPACES -using SigC::Connection; -#endif - /** This class provides an XForms implementation of the FormPrint Dialog. The print dialog allows users to print their documents. */ -class FormPrint : public DialogBase, public noncopyable { +class FormPrint : public FormBaseBD { public: - /// #FormPrint x(LyXFunc ..., Dialogs ...);# + /// #FormPrint x(LyXView ..., Dialogs ...);# FormPrint(LyXView *, Dialogs *); /// ~FormPrint(); - /// - 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: - /// Create the dialog if necessary, update it and display it. - void show(); - /// Hide the dialog. - void hide(); /// Update the dialog. - void update(); - + 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(); - + /// 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