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;
32 struct FD_form_special;
34 /** This class provides an XForms implementation of the Graphics Dialog.
36 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
39 FormGraphics(ControlGraphics &);
43 /** Redraw the form (on receipt of a Signal indicating, for example,
44 that the xforms colours have been re-mapped). */
45 virtual void redraw();
46 /// Set the Params variable for the Controller.
50 /// Update dialog before/whilst showing it.
51 virtual void update();
52 /// Filter the inputs on callback from xforms
53 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
57 /// Verify that the input is correct. If not disable ok/apply buttons.
58 ButtonPolicy::SMInput checkInput();
60 /// Fdesign generated method
61 FD_form_graphics * build_graphics();
63 FD_form_file * build_file();
65 FD_form_size * build_size();
67 FD_form_special * build_special();
69 /// Real GUI implementation.
70 boost::scoped_ptr<FD_form_file> file_;
72 boost::scoped_ptr<FD_form_size> size_;
74 boost::scoped_ptr<FD_form_special> special_;
77 #endif // FORMGRAPHICS_H