4 * Copyright 2000-2001 the LyX Team
5 * Read the file COPYING
7 * \author Baruch Even, baruch.even@writeme.com
8 * \author Herbert Voss, voss@lyx.org
11 #ifndef FORMGRAPHICS_H
12 #define FORMGRAPHICS_H
19 #include "RadioButtonGroup.h"
21 #include <boost/scoped_ptr.hpp>
25 class ControlGraphics;
27 struct FD_graphics_file;
28 struct FD_graphics_lyxview;
29 struct FD_graphics_size;
30 struct FD_graphics_bbox;
31 struct FD_graphics_special;
33 /** This class provides an XForms implementation of the Graphics Dialog.
35 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_graphics> > {
38 FormGraphics(ControlGraphics &);
42 /** Redraw the form (on receipt of a Signal indicating, for example,
43 that the xforms colours have been re-mapped). */
44 virtual void redraw();
45 /// Set the Params variable for the Controller.
49 /// Update dialog before/whilst showing it.
50 virtual void update();
51 /// Update the BoundingBox info.
52 void updateBB(string const & filename, string const & bb_inset);
53 /// Filter the inputs on callback from xforms
54 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
56 /// Real GUI implementation.
57 boost::scoped_ptr<FD_graphics_file> file_;
59 boost::scoped_ptr<FD_graphics_lyxview> lyxview_;
61 boost::scoped_ptr<FD_graphics_size> size_;
63 boost::scoped_ptr<FD_graphics_bbox> bbox_;
65 boost::scoped_ptr<FD_graphics_special> special_;
67 /// Store the LaTeX names for the rotation origins.
68 std::vector<string> origins_;
71 #endif // FORMGRAPHICS_H