]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormGraphics.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file FormGraphics.h
4  * Read the file COPYING
5  *
6  * \author Baruch Even
7  * \author Herbert Voss
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef FORMGRAPHICS_H
13 #define FORMGRAPHICS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20 #include "RadioButtonGroup.h"
21
22 #include <boost/scoped_ptr.hpp>
23
24 #include <vector>
25
26 class ControlGraphics;
27 struct FD_graphics;
28 struct FD_graphics_file;
29 struct FD_graphics_bbox;
30 struct FD_graphics_extra;
31
32 /** This class provides an XForms implementation of the Graphics Dialog.
33  */
34 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_graphics> > {
35 public:
36         ///
37         FormGraphics();
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         /// Real GUI implementation.
55         boost::scoped_ptr<FD_graphics_file> file_;
56         ///
57         boost::scoped_ptr<FD_graphics_bbox> bbox_;
58         ///
59         boost::scoped_ptr<FD_graphics_extra> extra_;
60
61         /// Store the LaTeX names for the rotation origins.
62         std::vector<string> origins_;
63 };
64
65 #endif  // FORMGRAPHICS_H