2 * \file ControlTabularCreate.C
3 * See the file COPYING.
7 * Full author contact details are available in file CREDITS
13 #pragma implementation
16 #include "ControlTabularCreate.h"
18 #include "ButtonControllerBase.h"
20 #include "funcrequest.h"
23 #include "support/lstrings.h"
26 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
27 : ControlDialogBD(lv, d)
31 ControlTabularCreate::rowsCols & ControlTabularCreate::params()
37 void ControlTabularCreate::setParams()
39 bc().valid(); // so that the user can press Ok
43 void ControlTabularCreate::apply()
45 if (!bufferIsAvailable())
50 string const val = tostr(params().first) + " " + tostr(params().second);
51 lyxfunc().dispatch(FuncRequest(LFUN_TABULAR_INSERT, val));