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"
31 /** This class provides an XForms implementation of the FormPrint Dialog.
32 The print dialog allows users to print their documents.
34 class FormPrint : public FormBaseBD {
36 /// #FormPrint x(LyXView ..., Dialogs ...);#
37 FormPrint(LyXView *, Dialogs *);
40 /// Pointer to the actual instantiation of the ButtonController.
41 virtual xformsBC & bc();
42 /// Update the dialog.
43 virtual void update();
47 virtual bool input(FL_OBJECT *, long);
48 /// Pointer to the actual instantiation of the xforms form
49 virtual FL_FORM * form() const;
52 /// Open the file browse dialog.
56 FD_form_print * build_print();
58 /// Real GUI implementation.
59 boost::scoped_ptr<FD_form_print> dialog_;
61 RadioButtonGroup target_;
63 RadioButtonGroup order_;
65 RadioButtonGroup which_;
66 /// The ButtonController
67 ButtonController<OkApplyCancelPolicy, xformsBC> bc_;
72 xformsBC & FormPrint::bc()