2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000-2001 The LyX Team.
9 * ======================================================
11 * \file FormGraphics.h
12 * \author Baruch Even, baruch.even@writeme.com
13 * \author Herbert Voss, voss@lyx.org
16 #ifndef FORMGRAPHICS_H
17 #define FORMGRAPHICS_H
19 #include <boost/smart_ptr.hpp>
26 #include "RadioButtonGroup.h"
28 class ControlGraphics;
29 struct FD_form_graphics;
33 struct FD_form_special;
35 /** This class provides an XForms implementation of the Graphics Dialog.
37 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
40 FormGraphics(ControlGraphics &);
44 /** Redraw the form (on receipt of a Signal indicating, for example,
45 that the xforms colours have been re-mapped). */
46 virtual void redraw();
47 /// Set the Params variable for the Controller.
51 /// Update dialog before/whilst showing it.
52 virtual void update();
53 /// Filter the inputs on callback from xforms
54 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
58 /// Verify that the input is correct. If not disable ok/apply buttons.
59 ButtonPolicy::SMInput checkInput();
61 /// Fdesign generated method
62 FD_form_graphics * build_graphics();
64 FD_form_file * build_file();
66 FD_form_size * build_size();
68 FD_form_bbox * build_bbox();
70 FD_form_special * build_special();
72 /// Real GUI implementation.
73 boost::scoped_ptr<FD_form_file> file_;
75 boost::scoped_ptr<FD_form_size> size_;
77 boost::scoped_ptr<FD_form_bbox> bbox_;
79 boost::scoped_ptr<FD_form_special> special_;
82 #endif // FORMGRAPHICS_H