]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormGraphics.h
dont use pragma impementation and interface anymore
[lyx.git] / src / frontends / xforms / FormGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file FormGraphics.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Baruch Even
8  * \author Herbert Voss
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef FORMGRAPHICS_H
14 #define FORMGRAPHICS_H
15
16
17 #include "FormBase.h"
18
19 #include <boost/scoped_ptr.hpp>
20
21 #include <vector>
22
23 class ControlGraphics;
24 struct FD_graphics;
25 struct FD_graphics_file;
26 struct FD_graphics_bbox;
27 struct FD_graphics_extra;
28
29 /** This class provides an XForms implementation of the Graphics Dialog.
30  */
31 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_graphics> > {
32 public:
33         ///
34         FormGraphics();
35 private:
36
37         /** Redraw the form (on receipt of a Signal indicating, for example,
38             that the xforms colours have been re-mapped). */
39         virtual void redraw();
40         /// Set the Params variable for the Controller.
41         virtual void apply();
42         /// Build the dialog.
43         virtual void build();
44         /// Update dialog before/whilst showing it.
45         virtual void update();
46         /// Update the BoundingBox info.
47         void updateBB(string const & filename, string const & bb_inset);
48         /// Filter the inputs on callback from xforms
49         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
50
51         /// Real GUI implementation.
52         boost::scoped_ptr<FD_graphics_file> file_;
53         ///
54         boost::scoped_ptr<FD_graphics_bbox> bbox_;
55         ///
56         boost::scoped_ptr<FD_graphics_extra> extra_;
57
58         /// Store the LaTeX names for the rotation origins.
59         std::vector<string> origins_;
60 };
61
62 #endif  // FORMGRAPHICS_H