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"
25 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
26 : ControlDialog<ControlConnectBD>(lv, d)
28 d_.showTabularCreate.connect(SigC::slot(this,
29 &ControlTabularCreate::show));
33 string & ControlTabularCreate::params() const
40 void ControlTabularCreate::setParams()
42 if (params_) delete params_;
45 bc().valid(); // so that the user can press Ok
49 void ControlTabularCreate::clearParams()
58 void ControlTabularCreate::apply()
60 if (!lv_.view()->available())
65 lv_.getLyXFunc()->Dispatch(LFUN_INSET_TABULAR, params());