]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlWrap.C
dont use pragma impementation and interface anymore
[lyx.git] / src / frontends / controllers / ControlWrap.C
1 /**
2  * \file ControlWrap.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Dekel Tsur
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "ControlWrap.h"
15 #include "BufferView.h"
16 #include "buffer.h"
17
18
19 ControlWrap::ControlWrap(LyXView & lv, Dialogs & d)
20         : ControlInset<InsetWrap, WrapParams>(lv, d)
21 {}
22
23
24
25 void ControlWrap::applyParamsToInset()
26 {
27         inset()->pageWidth(params().pageWidth);
28         inset()->placement(params().placement);
29         bufferview()->updateInset(inset(), true);
30
31 }
32
33
34 void ControlWrap::applyParamsNoInset()
35 {}
36
37
38 WrapParams const ControlWrap::getParams(InsetWrap const & inset)
39 {
40         return WrapParams(inset);
41 }
42
43
44 WrapParams::WrapParams(InsetWrap const & inset)
45         : pageWidth(inset.pageWidth()),
46           placement(inset.placement())
47 {}