]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTabularCreate.C
Port the TabularCreate dialog to the Dialog scheme.
[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 #include "support/lstrings.h"
16
17
18 ControlTabularCreate::ControlTabularCreate(Dialog & parent)
19         : Dialog::Controller(parent)
20 {}
21
22
23 void ControlTabularCreate::initialiseParams(string const &)
24 {
25         params_.first = params_.second = 5;
26 }
27
28
29 void ControlTabularCreate::clearParams()
30 {
31         params_.first = params_.second = 0;
32 }
33
34
35 void ControlTabularCreate::dispatchParams()
36 {
37         string data = tostr(params().first) + ' ' + tostr(params().second);
38         kernel().dispatch(FuncRequest(LFUN_TABULAR_INSERT, data));
39 }