]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1995 Matthias Ettrich
8  *          Copyright 1995-2001 The LyX Team.
9  *
10  *          This file copyright 1999-2001
11  *          Allan Rae
12  *======================================================
13  *
14  * \file FormPrint.h
15  * \author Allan Rae, rae@lyx.org
16  * \author Angus Leeming, a.leeming@.ac.uk
17  */
18
19 #ifndef FORMPRINT_H
20 #define FORMPRINT_H
21
22 #include <boost/smart_ptr.hpp>
23
24 #ifdef __GNUG__
25 #pragma interface
26 #endif
27
28 #include "FormBase.h"
29 #include "RadioButtonGroup.h"
30
31 class ControlPrint;
32 struct FD_form_print;
33
34 /** This class provides an XForms implementation of the FormPrint Dialog.
35     The print dialog allows users to print their documents.
36  */
37 class FormPrint : public FormCB<ControlPrint, FormDB<FD_form_print> > {
38 public:
39         /// 
40         FormPrint(ControlPrint &);
41
42 private:
43         /// Apply from dialog
44         virtual void apply();
45         /// Build the dialog
46         virtual void build();
47         /// Update the dialog.
48         virtual void update();
49         /// Filter the inputs on callback from xforms
50         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
51
52         /// Fdesign generated method
53         FD_form_print * build_print();
54
55         /// print target
56         RadioButtonGroup target_;
57         /// page order
58         RadioButtonGroup order_;
59         /// which pages
60         RadioButtonGroup which_;
61 };
62
63 #endif // FORMPRINT_H