3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 // Too hard to make concept checks work with this file
14 #ifdef _GLIBCXX_CONCEPT_CHECKS
15 #undef _GLIBCXX_CONCEPT_CHECKS
17 #ifdef _GLIBCPP_CONCEPT_CHECKS
18 #undef _GLIBCPP_CONCEPT_CHECKS
21 #include "GTableCreate.h"
24 #include "support/lstrings.h"
26 #include <libglademm.h>
33 GTableCreate::GTableCreate(Dialog & parent)
34 : GViewCB<ControlTabularCreate, GViewGladeB>(parent, _("Insert Table"))
39 void GTableCreate::doBuild()
41 string const gladeName = findGladeFile("tableCreate");
42 xml_ = Gnome::Glade::Xml::create(gladeName);
46 xml_->get_widget("Ok", ok);
47 xml_->get_widget("Apply", apply);
48 xml_->get_widget("Cancel", cancel);
49 xml_->get_widget("Rows", rows_);
50 xml_->get_widget("Columns", columns_);
57 void GTableCreate::apply()
59 size_t const rows = rows_->get_value_as_int();
60 size_t const columns = columns_->get_value_as_int();
61 controller().params() = std::make_pair(columns, rows);
64 } // namespace frontend