4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLFLOAT_H
13 #define CONTROLFLOAT_H
19 #include "ControlInset.h"
21 // needed to instatiate inset->hideDialog in ControlInset
22 #include "insets/insetfloat.h"
31 FloatParams(InsetFloat const &);
40 bool operator==(FloatParams const & p1, FloatParams const & p2)
42 return p1.placement == p2.placement && p1.wide == p2.wide;
47 bool operator!=(FloatParams const & p1, FloatParams const & p2)
53 /** A controller for Minipage dialogs.
55 class ControlFloat : public ControlInset<InsetFloat, FloatParams> {
58 ControlFloat(LyXView &, Dialogs &);
60 /// Dispatch the changed parameters to the kernel.
61 virtual void applyParamsToInset();
63 virtual void applyParamsNoInset();
64 /// get the parameters from the string passed to createInset.
65 virtual FloatParams const getParams(string const &)
66 { return FloatParams(); }
67 /// get the parameters from the inset passed to showInset.
68 virtual FloatParams const getParams(InsetFloat const &);