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
16 #include "ControlInset.h"
18 // needed to instatiate inset->hideDialog in ControlInset
19 #include "insets/insetfloat.h"
28 FloatParams(InsetFloat const &);
37 bool operator==(FloatParams const & p1, FloatParams const & p2)
39 return p1.placement == p2.placement && p1.wide == p2.wide;
44 bool operator!=(FloatParams const & p1, FloatParams const & p2)
50 /** A controller for Minipage dialogs.
52 class ControlFloat : public ControlInset<InsetFloat, FloatParams> {
55 ControlFloat(LyXView &, Dialogs &);
57 /// Dispatch the changed parameters to the kernel.
58 virtual void applyParamsToInset();
60 virtual void applyParamsNoInset();
61 /// get the parameters from the string passed to createInset.
62 virtual FloatParams const getParams(string const &)
63 { return FloatParams(); }
64 /// get the parameters from the inset passed to showInset.
65 virtual FloatParams const getParams(InsetFloat const &);