]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
2002-07-02 Lars Gullik Bj�nnes <larsbj@birdstep.com>
[lyx.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_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_print> > {
30 public:
31         ///
32         FormPrint(ControlPrint &, Dialogs &);
33 private:
34         /// Apply from dialog
35         virtual void apply();
36         /// Build the dialog
37         virtual void build();
38         /// Update the dialog.
39         virtual void update();
40         /// Filter the inputs on callback from xforms
41         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
42
43         /// print target
44         RadioButtonGroup target_;
45         /// page order
46         RadioButtonGroup order_;
47         /// which pages
48         RadioButtonGroup which_;
49 };
50
51 #endif // FORMPRINT_H