2 * \file FormTabularCreate.C
3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
12 #include "support/lstrings.h"
14 #include "FormTabularCreate.h"
15 #include "ControlTabularCreate.h"
16 #include "tabcreatedlg.h"
18 FormTabularCreate::FormTabularCreate(ControlTabularCreate & c)
19 : KFormBase<ControlTabularCreate, TabularCreateDialog>(c)
24 void FormTabularCreate::build()
26 dialog_.reset(new TabularCreateDialog(this, 0, _("LyX: Insert Table")));
28 bc().setOK(dialog_->button_ok);
29 bc().setCancel(dialog_->button_cancel);
33 void FormTabularCreate::apply()
35 // FIXME: angus, what's with this ? Why should the dialogs know about
36 // how LFUN represents the row, column ... this should be params(uint, uint)
37 controller().params() = tostr(dialog_->spin_rows->value()) + " " + tostr(dialog_->spin_cols->value());