1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file ControlTabularCreate.C
16 #pragma implementation
19 #include "ControlTabularCreate.h"
21 #include "ButtonControllerBase.h"
22 #include "BufferView.h"
25 #include "frontends/LyXView.h"
27 #include "support/lstrings.h"
30 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
31 : ControlDialogBD(lv, d)
35 ControlTabularCreate::rowsCols & ControlTabularCreate::params()
41 void ControlTabularCreate::setParams()
43 bc().valid(); // so that the user can press Ok
47 void ControlTabularCreate::apply()
49 if (!lv_.view()->available())
54 string const val(tostr(params().first) + " " + tostr(params().second));
56 lv_.getLyXFunc()->dispatch(LFUN_TABULAR_INSERT, val);