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
14 #include <boost/smart_ptr.hpp>
21 #include "RadioButtonGroup.h"
24 class ControlGraphics;
25 struct FD_form_graphics;
27 struct FD_form_lyxview;
30 struct FD_form_special;
32 /** This class provides an XForms implementation of the Graphics Dialog.
34 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
37 FormGraphics(ControlGraphics &);
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 /// Fdesign generated method
56 FD_form_graphics * build_graphics();
58 FD_form_file * build_file();
60 FD_form_lyxview * build_lyxview();
62 FD_form_size * build_size();
64 FD_form_bbox * build_bbox();
66 FD_form_special * build_special();
68 /// Real GUI implementation.
69 boost::scoped_ptr<FD_form_file> file_;
71 boost::scoped_ptr<FD_form_lyxview> lyxview_;
73 boost::scoped_ptr<FD_form_size> size_;
75 boost::scoped_ptr<FD_form_bbox> bbox_;
77 boost::scoped_ptr<FD_form_special> special_;
79 /// Store the LaTeX names for the rotation origins.
80 std::vector<string> origins_;
83 #endif // FORMGRAPHICS_H