*
* \author unknown
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "ControlTabularCreate.h"
#include "funcrequest.h"
-#include "support/tostr.h"
+#include "support/convert.h"
+using std::string;
+
+namespace lyx {
+namespace frontend {
+
ControlTabularCreate::ControlTabularCreate(Dialog & parent)
: Dialog::Controller(parent)
{}
void ControlTabularCreate::dispatchParams()
{
- string data = tostr(params().first) + ' ' + tostr(params().second);
- kernel().dispatch(FuncRequest(LFUN_TABULAR_INSERT, data));
+ string const data = convert<string>(params().first) + ' ' + convert<string>(params().second);
+ kernel().dispatch(FuncRequest(getLfun(), data));
}
+
+} // namespace frontend
+} // namespace lyx