]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlMinipage.C
49d305ce6d251b93286e4ee29ec78ea214e768d7
[lyx.git] / src / frontends / controllers / ControlMinipage.C
1 /**
2  * \file ControlMinipage.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 "ControlMinipage.h"
15 #include "funcrequest.h"
16
17
18 ControlMinipage::ControlMinipage(Dialog & parent)
19         : Dialog::Controller(parent)
20 {}
21
22
23 void ControlMinipage::initialiseParams(string const & data)
24 {
25         InsetMinipage::Params params;
26         InsetMinipageMailer::string2params(data, params);
27         params_.reset(new InsetMinipage::Params(params));
28 }
29
30
31 void ControlMinipage::clearParams()
32 {
33         params_.reset();
34 }
35
36
37 void ControlMinipage::dispatchParams()
38 {
39         string const lfun = InsetMinipageMailer::params2string(params());
40         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
41 }