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
16 #include "FormDialogView.h"
17 #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.
32 : public FormController<ControlGraphics, FormView<FD_graphics> > {
35 FormGraphics(Dialog &);
38 /** Redraw the form (on receipt of a Signal indicating, for example,
39 that the xforms colours have been re-mapped). */
40 virtual void redraw();
41 /// Set the Params variable for the Controller.
45 /// Update dialog before/whilst showing it.
46 virtual void update();
47 /// Update the BoundingBox info.
48 void updateBB(std::string const & filename, std::string const & bb_inset);
49 /// Filter the inputs on callback from xforms
50 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
52 /// Real GUI implementation.
53 boost::scoped_ptr<FD_graphics_file> file_;
55 boost::scoped_ptr<FD_graphics_bbox> bbox_;
57 boost::scoped_ptr<FD_graphics_extra> extra_;
59 /// Store the LaTeX names for the rotation origins.
60 std::vector<std::string> origins_;
63 } // namespace frontend
66 #endif // FORMGRAPHICS_H