]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormFloat.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormFloat.h
1 // -*- C++ -*-
2 /**
3  * \file FormFloat.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef FORMFLOAT_H
13 #define FORMFLOAT_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20 #include "RadioButtonGroup.h"
21
22 class ControlFloat;
23 struct FD_float;
24
25 /** This class provides an XForms implementation of the Float
26     Dialog.
27  */
28 class FormFloat : public FormCB<ControlFloat, FormDB<FD_float> > {
29 public:
30         ///
31         FormFloat();
32 private:
33         /// Set the Params variable for the Controller.
34         virtual void apply();
35         /// Build the dialog.
36         virtual void build();
37         /// Update dialog before/whilst showing it.
38         virtual void update();
39         /// Filter the inputs on callback from xforms
40         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
41
42         /// placement
43         RadioButtonGroup placement_;
44 };
45
46 #endif // FORMFLOAT_H