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
21 #include "RadioButtonGroup.h"
23 #include <boost/scoped_ptr.hpp>
27 class ControlGraphics;
29 struct FD_graphics_file;
30 struct FD_graphics_bbox;
31 struct FD_graphics_extra;
33 /** This class provides an XForms implementation of the Graphics Dialog.
35 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_graphics> > {
41 /** Redraw the form (on receipt of a Signal indicating, for example,
42 that the xforms colours have been re-mapped). */
43 virtual void redraw();
44 /// Set the Params variable for the Controller.
48 /// Update dialog before/whilst showing it.
49 virtual void update();
50 /// Update the BoundingBox info.
51 void updateBB(string const & filename, string const & bb_inset);
52 /// Filter the inputs on callback from xforms
53 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
55 /// Real GUI implementation.
56 boost::scoped_ptr<FD_graphics_file> file_;
58 boost::scoped_ptr<FD_graphics_bbox> bbox_;
60 boost::scoped_ptr<FD_graphics_extra> extra_;
62 /// Store the LaTeX names for the rotation origins.
63 std::vector<string> origins_;
66 #endif // FORMGRAPHICS_H