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"
17 #include "insets/insetfloat.h"
20 bool operator==(InsetFloatParams const & p1, InsetFloatParams const & p2)
22 return p1.placement == p2.placement && p1.wide == p2.wide;
27 bool operator!=(InsetFloatParams const & p1, InsetFloatParams const & p2)
33 /** A controller for Minipage dialogs.
35 class ControlFloat : public ControlInset<InsetFloat, InsetFloatParams> {
38 ControlFloat(LyXView &, Dialogs &);
40 /// Dispatch the changed parameters to the kernel.
41 virtual void applyParamsToInset();
43 virtual void applyParamsNoInset();
44 /// get the parameters from the string passed to createInset.
45 virtual InsetFloatParams const getParams(string const &)
46 { return InsetFloatParams(); }
47 /// get the parameters from the inset passed to showInset.
48 virtual InsetFloatParams const getParams(InsetFloat const &);