]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlFloat.C
Overhaul the branches code.
[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 using std::string;
19
20
21 ControlFloat::ControlFloat(Dialog & parent)
22         : Dialog::Controller(parent)
23 {}
24
25
26 bool ControlFloat::initialiseParams(string const & data)
27 {
28         InsetFloatParams params;
29         InsetFloatMailer::string2params(data, params);
30         params_.reset(new InsetFloatParams(params));
31         return true;
32 }
33
34
35 void ControlFloat::clearParams()
36 {
37         params_.reset();
38 }
39
40
41 void ControlFloat::dispatchParams()
42 {
43         string const lfun = InsetFloatMailer::params2string(params());
44         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
45 }