]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormPrint.h
837520d46d261dcc3dd0843c424923d354f89964
[features.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_form_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_form_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         /// Fdesign generated method
45         FD_form_print * build_print();
46
47         /// print target
48         RadioButtonGroup target_;
49         /// page order
50         RadioButtonGroup order_;
51         /// which pages
52         RadioButtonGroup which_;
53 };
54
55 #endif // FORMPRINT_H