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"
26 #include "frontends/LyXView.h"
28 #include "support/lstrings.h"
30 #include <boost/bind.hpp>
32 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
33 : ControlDialogBD(lv, d)
35 d_.showTabularCreate = boost::bind(&ControlTabularCreate::show, this);
39 ControlTabularCreate::rowsCols & ControlTabularCreate::params()
45 void ControlTabularCreate::setParams()
47 bc().valid(); // so that the user can press Ok
51 void ControlTabularCreate::apply()
53 if (!lv_.view()->available())
58 string const val(tostr(params().first) + " " + tostr(params().second));
60 lv_.getLyXFunc()->dispatch(LFUN_INSET_TABULAR, val);