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
15 #ifndef FORMGRAPHICS_H
16 #define FORMGRAPHICS_H
23 #include "RadioButtonGroup.h"
25 class ControlGraphics;
26 struct FD_form_graphics;
28 /** This class provides an XForms implementation of the Graphics Dialog.
30 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
33 FormGraphics(ControlGraphics &);
36 /// Set the Params variable for the Controller.
40 /// Update dialog before/whilst showing it.
41 virtual void update();
42 /// Filter the inputs on callback from xforms
43 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
45 /// The maximum digits for the image width (cm, inch, percent)
50 /// The maximum digits for the image height (cm, inch, percent)
55 /// The maximum characters in the rotation angle (minus sign and 3 digits)
60 /// The maximum characters in a filename.
63 FILENAME_MAXCHARS = 1024
75 /// Verify that the input is correct. If not disable ok/apply buttons.
76 ButtonPolicy::SMInput checkInput();
78 /// Fdesign generated method
79 FD_form_graphics * build_graphics();
81 /// The radio buttons groups
82 RadioButtonGroup widthButtons;
84 RadioButtonGroup heightButtons;
86 RadioButtonGroup displayButtons;
87 /// Last used figure path
88 string last_image_path;
92 #endif // FORMGRAPHICS_H