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"
23 #include "funcrequest.h"
26 #include "support/lstrings.h"
29 ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
30 : ControlDialogBD(lv, d)
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 (!bufferIsAvailable())
53 string const val = tostr(params().first) + " " + tostr(params().second);
54 lyxfunc().dispatch(FuncRequest(LFUN_TABULAR_INSERT, val));