* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Juergen Spitzmueller
+ * \author Jürgen Spitzmüller
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
+#include "QMathMatrixDialog.h"
+#include "QMath.h"
+#include "emptytable.h"
#include "qt_helpers.h"
-#include "support/lstrings.h"
+#include "controllers/ControlMath.h"
-#include "QMath.h"
-#include "QMathMatrixDialog.h"
+#include <sstream>
#include <qcombobox.h>
-#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qspinbox.h>
-#include "emptytable.h"
+using std::ostringstream;
+using std::string;
+
+namespace lyx {
+namespace frontend {
+
+namespace {
-static char h_align_str[80] = "c";
-static char v_align_c[] = "tcb";
+char h_align_str[80] = "c";
+char v_align_c[] = "tcb";
+} // namespace anon
-QMathMatrixDialog::QMathMatrixDialog(QMath * form)
+
+QMathMatrixDialog::QMathMatrixDialog(QMathMatrix * form)
: QMathMatrixDialogBase(0, 0, false, 0),
form_(form)
{
setCaption(qt_("LyX: Insert Matrix"));
- table->setMinimumSize(100,100);
+ table->setMinimumSize(100, 100);
rowsSB->setValue(2);
columnsSB->setValue(2);
valignCO->setCurrentItem(1);
ostringstream os;
os << nx << ' ' << ny << ' ' << c << ' ' << sh;
- form_->insertMatrix(os.str().c_str());
+ form_->controller().dispatchMatrix(os.str().c_str());
// close the dialog
close();
{
close();
}
+
+} // namespace frontend
+} // namespace lyx