]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
2260f76a0b5ae0f7d362b565cf10aa1701cf944f
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/FormPrint.h
4  * Copyright 2002 the LyX Team
5  * Copyright 1999-2001 Allan Rae
6  * Read the file COPYING
7  *
8  * \author Allan Rae, rae@lyx.org
9  * \author Angus Leeming, a.leeming@ic.ac.uk
10  */
11
12 #ifndef FORMPRINT_H
13 #define FORMPRINT_H
14
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "FormBase.h"
21 #include "RadioButtonGroup.h"
22
23 class ControlPrint;
24 struct FD_print;
25
26 /** This class provides an XForms implementation of the FormPrint Dialog.
27     The print dialog allows users to print their documents.
28  */
29 class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
30 public:
31         ///
32         FormPrint(ControlPrint &);
33
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