2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlTabularCreate.C
17 #pragma implementation
21 #include "ButtonControllerBase.h"
22 #include "ControlTabularCreate.h"
23 #include "BufferView.h"
27 #include "support/lstrings.h"
29 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
30 : ControlDialog<ControlConnectBD>(lv, d)
32 d_.showTabularCreate.connect(SigC::slot(this,
33 &ControlTabularCreate::show));
37 ControlTabularCreate::rowsCols & ControlTabularCreate::params()
43 void ControlTabularCreate::setParams()
45 bc().valid(); // so that the user can press Ok
49 void ControlTabularCreate::apply()
51 if (!lv_.view()->available())
56 string const val(tostr(params().first) + " " + tostr(params().second));
58 lv_.getLyXFunc()->Dispatch(LFUN_INSET_TABULAR, val);