]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlERT.C
port the minipage dialog to the new scheme. Various other small changes
[lyx.git] / src / frontends / controllers / ControlERT.C
1 /**
2  * \file ControlERT.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Jürgen Vigna
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #include <config.h>
13
14 #include "ControlERT.h"
15 #include "funcrequest.h"
16
17
18 ControlERT::ControlERT(Dialog & parent)
19         : Dialog::Controller(parent), status_(InsetERT::Collapsed)
20 {}
21
22
23 void ControlERT::initialiseParams(string const & data)
24 {
25         InsetERTMailer::string2params(data, status_);
26 }
27
28
29 void ControlERT::clearParams()
30 {
31         status_ = InsetERT::Collapsed;
32 }
33
34
35 void ControlERT::dispatchParams()
36 {
37         string const lfun = InsetERTMailer::params2string(status_);
38         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
39 }