X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.h;h=0f9f69dda1bdcec3c1bfd4928fbf79bb894aa739;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=5d96a9330419cbc0e90128cd32092976884df823;hpb=0d2e80687d14debf68f82c2282d53577a265b37d;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.h b/src/frontends/xforms/FormPrint.h index 5d96a93304..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,69 +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: - /**@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: - /**@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