]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
The forms resize patch, and small updates
[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         /// Pointer to the actual instantiation of the xform's form
49         virtual FL_FORM * form() const;
50         /// Build the dialog
51         virtual void build();
52
53         ///
54         FD_form_print * build_print();
55         
56         /// Real GUI implementation.
57         FD_form_print * dialog_;
58         /// print target
59         RadioButtonGroup target_;
60         /// page order
61         RadioButtonGroup order_;
62         /// which pages
63         RadioButtonGroup which_;
64 };
65
66 #endif