]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormTabularCreate.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormTabularCreate.C
index 9875d7db8203d3c9e121382639685358ac89e6e8..629e204ca7871facd9fd58ab6d3e8f7361e70782 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file xforms/FormTabularCreate.C
- * Copyright 2000-2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author \author Jürgen Vigna, jug@sad.it
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 #include "xformsBC.h"
 #include "ControlTabularCreate.h"
 #include "FormTabularCreate.h"
-#include "form_tabular_create.h"
+#include "forms/form_tabular_create.h"
 #include "support/lstrings.h"
+#include FORMS_H_LOCATION
 
 
 using std::make_pair;
 
 
-typedef FormCB<ControlTabularCreate, FormDB<FD_form_tabular_create> > base_class;
+typedef FormCB<ControlTabularCreate, FormDB<FD_tabular_create> > base_class;
 
-FormTabularCreate::FormTabularCreate(ControlTabularCreate & c)
-       : base_class(c, _("Insert Tabular"))
+FormTabularCreate::FormTabularCreate()
+       : base_class(_("Insert Tabular"))
 {}
 
 
 void FormTabularCreate::build()
 {
-       dialog_.reset(build_tabular_create());
+       dialog_.reset(build_tabular_create(this));
 
        fl_set_slider_bounds(dialog_->slider_rows, 1, 50);
        fl_set_slider_bounds(dialog_->slider_columns, 1, 50);
@@ -41,7 +44,7 @@ void FormTabularCreate::build()
        fl_set_slider_precision(dialog_->slider_rows, 0);
        fl_set_slider_precision(dialog_->slider_columns, 0);
 
-        // Manage the ok, apply and cancel/close buttons
+       // Manage the ok, apply and cancel/close buttons
        bc().setOK(dialog_->button_ok);
        bc().setApply(dialog_->button_apply);
        bc().setCancel(dialog_->button_close);