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