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
20 #include "ButtonControllerBase.h"
21 #include "ControlTabularCreate.h"
22 #include "BufferView.h"
26 #include "support/lstrings.h"
28 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
29 : ControlDialog<ControlConnectBD>(lv, d)
31 d_.showTabularCreate.connect(SigC::slot(this,
32 &ControlTabularCreate::show));
36 ControlTabularCreate::rowsCols & ControlTabularCreate::params()
42 void ControlTabularCreate::setParams()
44 bc().valid(); // so that the user can press Ok
48 void ControlTabularCreate::apply()
50 if (!lv_.view()->available())
55 string const val(tostr(params().first) + " " + tostr(params().second));
57 lv_.getLyXFunc()->Dispatch(LFUN_INSET_TABULAR, val);