]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlFloat.C
Move the float dialog to the new scheme.
[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 #include "ControlFloat.h"
14 #include "funcrequest.h"
15
16
17 ControlFloat::ControlFloat(Dialog & parent)
18         : Dialog::Controller(parent)
19 {}
20
21
22 void ControlFloat::initialiseParams(string const & data)
23 {
24         InsetFloatParams params;
25         InsetFloatMailer::string2params(data, params);
26         params_.reset(new InsetFloatParams(params));
27 }
28
29
30 void ControlFloat::clearParams()
31 {
32         params_.reset();
33 }
34
35
36 void ControlFloat::dispatchParams()
37 {
38         string const lfun = InsetFloatMailer::params2string("float", params());
39         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
40 }