]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
1f05383e69466a24ecc45a70e543a9dd4c0c8485
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/FormPrint.h
4  * Copyright 1999-2001 Allan Rae
5  * Read the file COPYING
6  *
7  * \author Allan Rae
8  * \author Angus Leeming 
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef FORMPRINT_H
14 #define FORMPRINT_H
15
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "FormBase.h"
22 #include "RadioButtonGroup.h"
23
24 class ControlPrint;
25 struct FD_print;
26
27 /** This class provides an XForms implementation of the FormPrint Dialog.
28     The print dialog allows users to print their documents.
29  */
30 class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
31 public:
32         ///
33         FormPrint();
34 private:
35         /// Apply from dialog
36         virtual void apply();
37         /// Build the dialog
38         virtual void build();
39         /// Update the dialog.
40         virtual void update();
41         /// Filter the inputs on callback from xforms
42         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
43
44         /// print target
45         RadioButtonGroup target_;
46         /// page order
47         RadioButtonGroup order_;
48         /// which pages
49         RadioButtonGroup which_;
50 };
51
52 #endif // FORMPRINT_H