]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormError.C
index 3611736614960bbba3a6d9d39fee72214ae2fe6b..2a367ce307a14aed67740d7c24d528ca02e1ec42 100644 (file)
@@ -1,15 +1,11 @@
-/*
+/**
  * \file FormError.C
- * This file is part of
- * ====================================================== 
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Angus Leeming 
  *
- *           Copyright 2000-2001 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming, a.leeming@.ac.uk
+ * Full author contact details are available in file CREDITS
  */
 
 #ifdef __GNUG__
 #include "xformsBC.h"
 #include "ControlError.h"
 #include "FormError.h"
-#include "form_error.h"
+#include "forms/form_error.h"
 #include "xforms_helpers.h" // formatted
+#include FORMS_H_LOCATION
 
-typedef FormCB<ControlError, FormDB<FD_form_error> > base_class;
+typedef FormCB<ControlError, FormDB<FD_error> > base_class;
 
-FormError::FormError(ControlError & c)
-       : base_class(c, _("LaTeX Error"))
+FormError::FormError()
+       : base_class(_("LaTeX Error"))
 {}
 
 
 void FormError::build()
 {
-       dialog_.reset(build_error());
+       dialog_.reset(build_error(this));
 
-        // Manage the cancel/close button
-       bc().setCancel(dialog_->button_cancel);
+       // Manage the cancel/close button
+       bc().setCancel(dialog_->button_close);
 }
 
 
 void FormError::update()
 {
        string const txt = formatted(controller().params(),
-                                    dialog_->message->w-10);
-       fl_set_object_label(dialog_->message, txt.c_str());
+                                    dialog_->frame_message->w - 10);
+       fl_set_object_label(dialog_->frame_message, txt.c_str());
 }