2 * \file ControlTabularCreate.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #include "ControlTabularCreate.h"
16 #include "ButtonControllerBase.h"
18 #include "funcrequest.h"
21 #include "support/lstrings.h"
24 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
25 : ControlDialogBD(lv, d)
29 ControlTabularCreate::rowsCols & ControlTabularCreate::params()
35 void ControlTabularCreate::setParams()
37 bc().valid(); // so that the user can press Ok
41 void ControlTabularCreate::apply()
43 if (!bufferIsAvailable())
48 string const val = tostr(params().first) + ' ' + tostr(params().second);
49 lyxfunc().dispatch(FuncRequest(LFUN_TABULAR_INSERT, val));