3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
17 #include "ControlWrap.h"
18 #include "BufferView.h"
22 ControlWrap::ControlWrap(LyXView & lv, Dialogs & d)
23 : ControlInset<InsetWrap, WrapParams>(lv, d)
28 void ControlWrap::applyParamsToInset()
30 inset()->pageWidth(params().pageWidth);
31 inset()->placement(params().placement);
32 bufferview()->updateInset(inset(), true);
37 void ControlWrap::applyParamsNoInset()
41 WrapParams const ControlWrap::getParams(InsetWrap const & inset)
43 return WrapParams(inset);
47 WrapParams::WrapParams(InsetWrap const & inset)
48 : pageWidth(inset.pageWidth()),
49 placement(inset.placement())