]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
If I ever see another licence blurb again, it'll be too soon...
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file FormPrint.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in 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
18 #include "FormBase.h"
19 #include "RadioButtonGroup.h"
20
21 class ControlPrint;
22 struct FD_print;
23
24 /** This class provides an XForms implementation of the FormPrint Dialog.
25     The print dialog allows users to print their documents.
26  */
27 class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
28 public:
29         ///
30         FormPrint();
31 private:
32         /// Apply from dialog
33         virtual void apply();
34         /// Build the dialog
35         virtual void build();
36         /// Update the dialog.
37         virtual void update();
38
39         /// Filter the inputs on callback from xforms
40         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
41
42         /// print target
43         RadioButtonGroup target_;
44         /// all pages or from/to
45         RadioButtonGroup all_pages_;
46 };
47
48 #endif // FORMPRINT_H