3 * Copyright 2000-2001 The LyX Team.
4 * See the file COPYING.
6 * \author Angus Leeming, a.leeming@ic.ac.uk
10 #pragma implementation
16 #include "ControlError.h"
17 #include "FormError.h"
18 #include "form_error.h"
19 #include "xforms_helpers.h" // formatted
21 typedef FormCB<ControlError, FormDB<FD_form_error> > base_class;
23 FormError::FormError(ControlError & c)
24 : base_class(c, _("LaTeX Error"))
28 void FormError::build()
30 dialog_.reset(build_error());
32 // Manage the cancel/close button
33 bc().setCancel(dialog_->button_close);
37 void FormError::update()
39 string const txt = formatted(controller().params(),
40 dialog_->frame_message->w - 10);
41 fl_set_object_label(dialog_->frame_message, txt.c_str());