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