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
16 #include "ControlInset.h"
17 #include "lyxlength.h"
19 // needed to instatiate inset->hideDialog in ControlInset
20 #include "insets/insetwrap.h"
29 WrapParams(InsetWrap const &);
38 bool operator==(WrapParams const & p1, WrapParams const & p2)
40 return p1.pageWidth == p2.pageWidth && p1.placement == p2.placement;
45 bool operator!=(WrapParams const & p1, WrapParams const & p2)
51 /** A controller for Minipage dialogs.
53 class ControlWrap : public ControlInset<InsetWrap, WrapParams> {
56 ControlWrap(LyXView &, Dialogs &);
58 /// Dispatch the changed parameters to the kernel.
59 virtual void applyParamsToInset();
61 virtual void applyParamsNoInset();
62 /// get the parameters from the string passed to createInset.
63 virtual WrapParams const getParams(string const &)
64 { return WrapParams(); }
65 /// get the parameters from the inset passed to showInset.
66 virtual WrapParams const getParams(InsetWrap const &);