]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlWrap.C
Port wrap dialog to the new scheme.
[lyx.git] / src / frontends / controllers / ControlWrap.C
1 /**
2  * \file ControlWrap.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Dekel Tsur
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #include "ControlWrap.h"
14 #include "funcrequest.h"
15 #include "lyxlength.h"
16 #include "insets/insetwrap.h"
17
18
19 ControlWrap::ControlWrap(Dialog & parent)
20         : Dialog::Controller(parent)
21 {}
22
23
24 void ControlWrap::initialiseParams(string const & data)
25 {
26         InsetWrapParams params;
27         InsetWrapMailer::string2params(data, params);
28         params_.reset(new InsetWrapParams(params));
29 }
30
31
32 void ControlWrap::clearParams()
33 {
34         params_.reset();
35 }
36
37
38 void ControlWrap::dispatchParams()
39 {
40         string const lfun = InsetWrapMailer::params2string("wrap", params());
41         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
42 }