]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
sourcedoc-friendly files.
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file 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 #include <boost/smart_ptr.hpp>
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_form_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_form_print> > {
31 public:
32         /// 
33         FormPrint(ControlPrint &);
34
35 private:
36         /// Apply from dialog
37         virtual void apply();
38         /// Build the dialog
39         virtual void build();
40         /// Update the dialog.
41         virtual void update();
42         /// Filter the inputs on callback from xforms
43         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
44
45         /// Fdesign generated method
46         FD_form_print * build_print();
47
48         /// print target
49         RadioButtonGroup target_;
50         /// page order
51         RadioButtonGroup order_;
52         /// which pages
53         RadioButtonGroup which_;
54 };
55
56 #endif // FORMPRINT_H