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"
23 class ControlGraphics;
24 struct FD_form_graphics;
26 struct FD_form_lyxview;
29 struct FD_form_special;
31 /** This class provides an XForms implementation of the Graphics Dialog.
33 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
36 FormGraphics(ControlGraphics &);
40 /** Redraw the form (on receipt of a Signal indicating, for example,
41 that the xforms colours have been re-mapped). */
42 virtual void redraw();
43 /// Set the Params variable for the Controller.
47 /// Update dialog before/whilst showing it.
48 virtual void update();
49 /// Filter the inputs on callback from xforms
50 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
52 /// Fdesign generated method
53 FD_form_graphics * build_graphics();
55 FD_form_file * build_file();
57 FD_form_lyxview * build_lyxview();
59 FD_form_size * build_size();
61 FD_form_bbox * build_bbox();
63 FD_form_special * build_special();
65 /// Real GUI implementation.
66 boost::scoped_ptr<FD_form_file> file_;
68 boost::scoped_ptr<FD_form_lyxview> lyxview_;
70 boost::scoped_ptr<FD_form_size> size_;
72 boost::scoped_ptr<FD_form_bbox> bbox_;
74 boost::scoped_ptr<FD_form_special> special_;
77 #endif // FORMGRAPHICS_H