X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.h;h=5a499b5366abd68d027be6f268878e0b7e6e8a5c;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=b101eab159c1884161887cd4731602ee9a256b33;hpb=12bfa2bd34d73b6e5940216f1a914c6253fac110;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.h b/src/frontends/xforms/FormPrint.h index b101eab159..5a499b5366 100644 --- a/src/frontends/xforms/FormPrint.h +++ b/src/frontends/xforms/FormPrint.h @@ -1,43 +1,35 @@ -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. +// -*- C++ -*- +/** + * \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 - *====================================================== + * \author Allan Rae + * \author Angus Leeming * - * \file FormPrint.h - * \author Allan Rae, rae@lyx.org - * \author Angus Leeming, a.leeming@.ac.uk + * Full author contact details are available in file CREDITS. */ #ifndef FORMPRINT_H #define FORMPRINT_H -#include - -#ifdef __GNUG__ -#pragma interface -#endif - -#include "FormBase.h" +#include "FormDialogView.h" #include "RadioButtonGroup.h" +namespace lyx { +namespace frontend { + class ControlPrint; -struct FD_form_print; +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 FormCB > { +class FormPrint + : public FormController > { public: - /// - FormPrint(ControlPrint &); - + /// + FormPrint(Dialog &); private: /// Apply from dialog virtual void apply(); @@ -45,21 +37,17 @@ private: virtual void build(); /// Update the dialog. virtual void update(); + /// Filter the inputs on callback from xforms virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); - /// Open the file browse dialog. - void browse(); - - /// Fdesign generated method - FD_form_print * build_print(); - /// print target RadioButtonGroup target_; - /// page order - RadioButtonGroup order_; - /// which pages - RadioButtonGroup which_; + /// all pages or from/to + RadioButtonGroup all_pages_; }; +} // namespace frontend +} // namespace lyx + #endif // FORMPRINT_H