]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlFloat.C
Finish the task of removing all cruft from the header files.
[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 bool ControlFloat::initialiseParams(string const & data)
24 {
25         InsetFloatParams params;
26         InsetFloatMailer::string2params(data, params);
27         params_.reset(new InsetFloatParams(params));
28         return true;
29 }
30
31
32 void ControlFloat::clearParams()
33 {
34         params_.reset();
35 }
36
37
38 void ControlFloat::dispatchParams()
39 {
40         string const lfun = InsetFloatMailer::params2string(params());
41         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
42 }