]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlMinipage.C
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[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 bool ControlMinipage::initialiseParams(string const & data)
24 {
25         InsetMinipage::Params params;
26         InsetMinipageMailer::string2params(data, params);
27         params_.reset(new InsetMinipage::Params(params));
28         return true;
29 }
30
31
32 void ControlMinipage::clearParams()
33 {
34         params_.reset();
35 }
36
37
38 void ControlMinipage::dispatchParams()
39 {
40         string const lfun = InsetMinipageMailer::params2string(params());
41         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
42 }