]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormGraphics.h
588c6036641665c49776a6c0c5ca365e9d3ec57f
[lyx.git] / src / frontends / xforms / FormGraphics.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000-2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file FormGraphics.h
12  * \author Baruch Even, baruch.even@writeme.com
13  * \author Herbert Voss, voss@lyx.org
14  */
15
16 #ifndef FORMGRAPHICS_H
17 #define FORMGRAPHICS_H
18
19 #include <boost/smart_ptr.hpp>
20
21 #ifdef __GNUG__
22 #pragma interface
23 #endif 
24
25 #include "FormBase.h"
26 #include "RadioButtonGroup.h"
27
28 class ControlGraphics;
29 struct FD_form_graphics;
30 struct FD_form_file;
31 struct FD_form_lyxview;
32 struct FD_form_size;
33 struct FD_form_bbox;
34 struct FD_form_special;
35
36 /** This class provides an XForms implementation of the Graphics Dialog.
37  */
38 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
39 public:
40         ///
41         FormGraphics(ControlGraphics &);
42
43 private:
44
45         /** Redraw the form (on receipt of a Signal indicating, for example,
46             that the xforms colours have been re-mapped). */
47         virtual void redraw();
48         /// Set the Params variable for the Controller.
49         virtual void apply();
50         /// Build the dialog.
51         virtual void build();
52         /// Update dialog before/whilst showing it.
53         virtual void update();
54         /// Filter the inputs on callback from xforms
55         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
56
57         /// Fdesign generated method
58         FD_form_graphics * build_graphics();
59         ///
60         FD_form_file * build_file();
61         ///
62         FD_form_lyxview * build_lyxview();
63         ///
64         FD_form_size * build_size();
65         ///
66         FD_form_bbox * build_bbox();
67         ///
68         FD_form_special * build_special();
69
70         /// Real GUI implementation.
71         boost::scoped_ptr<FD_form_file> file_;
72         ///
73         boost::scoped_ptr<FD_form_lyxview> lyxview_;
74         ///
75         boost::scoped_ptr<FD_form_size> size_;
76         ///
77         boost::scoped_ptr<FD_form_bbox> bbox_;
78         ///
79         boost::scoped_ptr<FD_form_special> special_;
80 };
81
82 #endif  // FORMGRAPHICS_H