]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
e18837efc9d803da728baf1f9a264f0353ac09f4
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1995 Matthias Ettrich
8  *          Copyright 1995-2000 The LyX Team.
9  *
10  *          This file copyright 1999-2000
11  *          Allan Rae
12  *======================================================*/
13 /* FormPrint.h
14  * FormPrint Interface Class
15  */
16
17 #ifndef FORMPRINT_H
18 #define FORMPRINT_H
19
20 #include "FormBase.h"
21 #include "RadioButtonGroup.h"
22
23 #ifdef __GNUG__
24 #pragma interface
25 #endif
26
27 class LyXView;
28 class Dialogs;
29 struct FD_form_print;
30
31 /** This class provides an XForms implementation of the FormPrint Dialog.
32     The print dialog allows users to print their documents.
33  */
34 class FormPrint : public FormBaseBD {
35 public:
36         /// #FormPrint x(LyXView ..., Dialogs ...);#
37         FormPrint(LyXView *, Dialogs *);
38         ///
39         ~FormPrint();
40
41 private:
42         /// Update the dialog.
43         virtual void update(bool switched = false);
44         /// Apply from dialog
45         virtual void apply();
46         /// Filter the inputs
47         virtual bool input(FL_OBJECT *, long);
48         ///
49         virtual void connect();
50         /// Pointer to the actual instantiation of the xform's form
51         virtual FL_FORM * form() const;
52         /// Build the dialog
53         virtual void build();
54
55         ///
56         FD_form_print * build_print();
57         
58         /// Real GUI implementation.
59         FD_form_print * dialog_;
60         /// print target
61         RadioButtonGroup target_;
62         /// page order
63         RadioButtonGroup order_;
64         /// which pages
65         RadioButtonGroup which_;
66 };
67
68 #endif