]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTabularCreate.C
5 new lfuns, move all apply code out of ControlDocument and into the core.
[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 using std::string;
20
21
22 ControlTabularCreate::ControlTabularCreate(Dialog & parent)
23         : Dialog::Controller(parent)
24 {}
25
26
27 bool ControlTabularCreate::initialiseParams(string const &)
28 {
29         params_.first  = 5;
30         params_.second = 5;
31         return true;
32 }
33
34
35 void ControlTabularCreate::clearParams()
36 {
37         params_.first  = 0;
38         params_.second = 0;
39 }
40
41
42 void ControlTabularCreate::dispatchParams()
43 {
44         string data = tostr(params().first) + ' ' + tostr(params().second);
45         kernel().dispatch(FuncRequest(LFUN_TABULAR_INSERT, data));
46 }