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;
31 struct FD_form_lyxview;
34 struct FD_form_special;
36 /** This class provides an XForms implementation of the Graphics Dialog.
38 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
41 FormGraphics(ControlGraphics &);
45 /** Redraw the form (on receipt of a Signal indicating, for example,
46 that the xforms colours have been re-mapped). */
47 virtual void redraw();
48 /// Set the Params variable for the Controller.
52 /// Update dialog before/whilst showing it.
53 virtual void update();
54 /// Filter the inputs on callback from xforms
55 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
57 /// Fdesign generated method
58 FD_form_graphics * build_graphics();
60 FD_form_file * build_file();
62 FD_form_lyxview * build_lyxview();
64 FD_form_size * build_size();
66 FD_form_bbox * build_bbox();
68 FD_form_special * build_special();
70 /// Real GUI implementation.
71 boost::scoped_ptr<FD_form_file> file_;
73 boost::scoped_ptr<FD_form_lyxview> lyxview_;
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