4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS
13 #ifndef FORMGRAPHICS_H
14 #define FORMGRAPHICS_H
19 #include <boost/scoped_ptr.hpp>
23 class ControlGraphics;
25 struct FD_graphics_file;
26 struct FD_graphics_bbox;
27 struct FD_graphics_extra;
29 /** This class provides an XForms implementation of the Graphics Dialog.
31 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_graphics> > {
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.
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);
51 /// Real GUI implementation.
52 boost::scoped_ptr<FD_graphics_file> file_;
54 boost::scoped_ptr<FD_graphics_bbox> bbox_;
56 boost::scoped_ptr<FD_graphics_extra> extra_;
58 /// Store the LaTeX names for the rotation origins.
59 std::vector<string> origins_;
62 #endif // FORMGRAPHICS_H