X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.h;h=0f9f69dda1bdcec3c1bfd4928fbf79bb894aa739;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=bba61cd3cbaf4db450825eea36c64788bd9c51ca;hpb=6d678c927c0fdce6ec54192829fa5eb06befc704;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.h b/src/frontends/xforms/FormPrint.h index bba61cd3cb..0f9f69dda1 100644 --- a/src/frontends/xforms/FormPrint.h +++ b/src/frontends/xforms/FormPrint.h @@ -17,77 +17,50 @@ #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