-/*
+/**
* \file FormError.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 Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming
+ *
+ * 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
+ // Manage the cancel/close button
bc().setCancel(dialog_->button_close);
}