X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.h;h=5a499b5366abd68d027be6f268878e0b7e6e8a5c;hb=0c0c43b8eb42b4a895e12c774a9b12f2c5bc6c03;hp=1d9a568b420b97259202fa0d16b8de4baf9e6a20;hpb=9062ce972e562477eb64c294769747ebf386fa6c;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.h b/src/frontends/xforms/FormPrint.h index 1d9a568b42..5a499b5366 100644 --- a/src/frontends/xforms/FormPrint.h +++ b/src/frontends/xforms/FormPrint.h @@ -1,84 +1,53 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. +/** + * \file FormPrint.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * This file copyright 1999-2000 - * Allan Rae - *======================================================*/ -/* FormPrint.h - * FormPrint Interface Class + * \author Allan Rae + * \author Angus Leeming + * + * Full author contact details are available in file CREDITS. */ #ifndef FORMPRINT_H #define FORMPRINT_H -#include "DialogBase.h" -#include "support/utility.hpp" - -#ifdef __GNUG__ -#pragma interface -#endif +#include "FormDialogView.h" +#include "RadioButtonGroup.h" -class LyXView; -class Dialogs; -struct FD_form_print; +namespace lyx { +namespace frontend { -#ifdef SIGC_CXX_NAMESPACES -using SigC::Connection; -#endif +class ControlPrint; +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 DialogBase, public noncopyable { +class FormPrint + : public FormController > { public: - /// #FormPrint x(LyXFunc ..., 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); + FormPrint(Dialog &); private: - /// Create the dialog if necessary, update it and display it. - void show(); - /// Hide the dialog. - void hide(); - /// Update the dialog. - void update(); - /// Apply from dialog - void apply(); - /// Filter the inputs - void input(); + virtual void apply(); /// Build the dialog - void build(); - /// - FD_form_print * build_print(); + virtual void build(); + /// Update the dialog. + virtual void update(); - /// 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_; + /// Filter the inputs on callback from xforms + virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); + + /// print target + RadioButtonGroup target_; + /// all pages or from/to + RadioButtonGroup all_pages_; }; -#endif +} // namespace frontend +} // namespace lyx + +#endif // FORMPRINT_H