]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
better lib building
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file FormPrint.h
4  * Copyright 1999-2001 Allan Rae
5  * This file is part of LyX, the document processor.
6  * Licence details can be found in the file COPYING.
7  *
8  * \author Allan Rae
9  * \author Angus Leeming
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 #ifndef FORMPRINT_H
15 #define FORMPRINT_H
16
17
18
19 #include "FormBase.h"
20 #include "RadioButtonGroup.h"
21
22 class ControlPrint;
23 struct FD_print;
24
25 /** This class provides an XForms implementation of the FormPrint Dialog.
26     The print dialog allows users to print their documents.
27  */
28 class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
29 public:
30         ///
31         FormPrint();
32 private:
33         /// Apply from dialog
34         virtual void apply();
35         /// Build the dialog
36         virtual void build();
37         /// Update the dialog.
38         virtual void update();
39
40         /// Filter the inputs on callback from xforms
41         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
42
43         /// print target
44         RadioButtonGroup target_;
45         /// all pages or from/to
46         RadioButtonGroup all_pages_;
47 };
48
49 #endif // FORMPRINT_H