X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.h;h=5a499b5366abd68d027be6f268878e0b7e6e8a5c;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=45aeca3cc6a9a7a703cb3a54f63622b3441a5eb3;hpb=9c36dd0f40f2e2e90fce8b2f33519a5d99d9be8b;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.h b/src/frontends/xforms/FormPrint.h index 45aeca3cc6..5a499b5366 100644 --- a/src/frontends/xforms/FormPrint.h +++ b/src/frontends/xforms/FormPrint.h @@ -1,79 +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 - -#ifdef __GNUG__ -#pragma interface -#endif - -#include "FormBaseDeprecated.h" +#include "FormDialogView.h" #include "RadioButtonGroup.h" -#include "xformsBC.h" -class LyXView; -class Dialogs; -struct FD_form_print; +namespace lyx { +namespace frontend { + +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 FormBaseBD { +class FormPrint + : public FormController > { public: - /// #FormPrint x(LyXView ..., Dialogs ...);# - FormPrint(LyXView *, Dialogs *); - + /// + FormPrint(Dialog &); private: - /// Pointer to the actual instantiation of the ButtonController. - virtual xformsBC & bc(); - /// Update the dialog. - virtual void update(); /// Apply from dialog virtual void apply(); - /// Filter the inputs - virtual bool input(FL_OBJECT *, long); - /// Pointer to the actual instantiation of the xforms form - virtual FL_FORM * form() const; /// Build the dialog virtual void build(); - /// Open the file browse dialog. - void browse(); + /// Update the dialog. + virtual void update(); + + /// Filter the inputs on callback from xforms + virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); - /// - FD_form_print * build_print(); - - /// Real GUI implementation. - boost::scoped_ptr dialog_; /// print target RadioButtonGroup target_; - /// page order - RadioButtonGroup order_; - /// which pages - RadioButtonGroup which_; - /// The ButtonController - ButtonController bc_; + /// all pages or from/to + RadioButtonGroup all_pages_; }; +} // namespace frontend +} // namespace lyx -inline -xformsBC & FormPrint::bc() -{ - return bc_; -} -#endif +#endif // FORMPRINT_H