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