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