]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTabularCreate.C
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlTabularCreate.C
1 /**
2  * \file ControlTabularCreate.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 "ControlTabularCreate.h"
14 #include "funcrequest.h"
15
16 #include "support/tostr.h"
17
18
19 ControlTabularCreate::ControlTabularCreate(Dialog & parent)
20         : Dialog::Controller(parent)
21 {}
22
23
24 bool ControlTabularCreate::initialiseParams(string const &)
25 {
26         params_.first  = 5;
27         params_.second = 5;
28         return true;
29 }
30
31
32 void ControlTabularCreate::clearParams()
33 {
34         params_.first  = 0;
35         params_.second = 0;
36 }
37
38
39 void ControlTabularCreate::dispatchParams()
40 {
41         string data = tostr(params().first) + ' ' + tostr(params().second);
42         kernel().dispatch(FuncRequest(LFUN_TABULAR_INSERT, data));
43 }