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"
24 #include "funcrequest.h"
26 #include "frontends/LyXView.h"
28 #include "support/lstrings.h"
31 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
32 : ControlDialogBD(lv, d)
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);
56 lv_.getLyXFunc()->dispatch(FuncRequest(LFUN_TABULAR_INSERT, val));