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
21 #include "ControlInset.h"
23 // needed to instatiate inset->hideDialog in ControlInset
24 #include "insets/insetfloat.h"
33 FloatParams(InsetFloat const &);
42 bool operator==(FloatParams const & p1, FloatParams const & p2)
44 return p1.placement == p2.placement && p1.wide == p2.wide;
49 bool operator!=(FloatParams const & p1, FloatParams const & p2)
55 /** A controller for Minipage dialogs.
57 class ControlFloat : public ControlInset<InsetFloat, FloatParams> {
60 ControlFloat(LyXView &, Dialogs &);
62 /// Dispatch the changed parameters to the kernel.
63 virtual void applyParamsToInset();
65 virtual void applyParamsNoInset();
66 /// get the parameters from the string passed to createInset.
67 virtual FloatParams const getParams(string const &)
68 { return FloatParams(); }
69 /// get the parameters from the inset passed to showInset.
70 virtual FloatParams const getParams(InsetFloat const &);