]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
Introduce LFUN_PRINT.
[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 #include "FormDialogView.h"
17 #include "RadioButtonGroup.h"
18
19 class ControlPrint;
20 struct FD_print;
21
22 /** This class provides an XForms implementation of the FormPrint Dialog.
23     The print dialog allows users to print their documents.
24  */
25 class FormPrint
26         : public FormController<ControlPrint, FormView<FD_print> > {
27 public:
28         ///
29         FormPrint(Dialog &);
30 private:
31         /// Apply from dialog
32         virtual void apply();
33         /// Build the dialog
34         virtual void build();
35         /// Update the dialog.
36         virtual void update();
37
38         /// Filter the inputs on callback from xforms
39         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
40
41         /// print target
42         RadioButtonGroup target_;
43         /// all pages or from/to
44         RadioButtonGroup all_pages_;
45 };
46
47 #endif // FORMPRINT_H