]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlFloat.C
Move InsetFloat's params into a separate struct to simplify the move to the new dialo...
[lyx.git] / src / frontends / controllers / ControlFloat.C
1 /**
2  * \file ControlFloat.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author unknown
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "ControlFloat.h"
15 #include "BufferView.h"
16 #include "buffer.h"
17
18
19 ControlFloat::ControlFloat(LyXView & lv, Dialogs & d)
20         : ControlInset<InsetFloat, InsetFloatParams>(lv, d)
21 {}
22
23
24 void ControlFloat::applyParamsToInset()
25 {
26         inset()->placement(params().placement);
27         inset()->wide(params().wide, bufferview()->buffer()->params);
28         bufferview()->updateInset(inset(), true);
29
30 }
31
32
33 void ControlFloat::applyParamsNoInset()
34 {}
35
36
37 InsetFloatParams const ControlFloat::getParams(InsetFloat const & inset)
38 {
39         return inset.params();
40 }