2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * This file copyright 1999-2000
12 *======================================================*/
14 * FormPrint Interface Class
20 #include <boost/smart_ptr.hpp>
26 #include "FormBaseDeprecated.h"
27 #include "RadioButtonGroup.h"
34 /** This class provides an XForms implementation of the FormPrint Dialog.
35 The print dialog allows users to print their documents.
37 class FormPrint : public FormBaseBD {
39 /// #FormPrint x(LyXView ..., Dialogs ...);#
40 FormPrint(LyXView *, Dialogs *);
43 /// Pointer to the actual instantiation of the ButtonController.
44 virtual xformsBC & bc();
45 /// Update the dialog.
46 virtual void update();
50 virtual bool input(FL_OBJECT *, long);
51 /// Pointer to the actual instantiation of the xforms form
52 virtual FL_FORM * form() const;
55 /// Open the file browse dialog.
59 FD_form_print * build_print();
61 /// Real GUI implementation.
62 boost::scoped_ptr<FD_form_print> dialog_;
64 RadioButtonGroup target_;
66 RadioButtonGroup order_;
68 RadioButtonGroup which_;
69 /// The ButtonController
70 ButtonController<OkApplyCancelPolicy, xformsBC> bc_;
75 xformsBC & FormPrint::bc()