3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
12 #pragma implementation
18 #include "ControlError.h"
19 #include "FormError.h"
20 #include "forms/form_error.h"
21 #include "xforms_helpers.h" // formatted
22 #include FORMS_H_LOCATION
24 typedef FormCB<ControlError, FormDB<FD_error> > base_class;
26 FormError::FormError()
27 : base_class(_("LaTeX Error"))
31 void FormError::build()
33 dialog_.reset(build_error(this));
35 // Manage the cancel/close button
36 bc().setCancel(dialog_->button_close);
40 void FormError::update()
42 string const txt = formatted(controller().params(),
43 dialog_->frame_message->w - 10);
44 fl_set_object_label(dialog_->frame_message, txt.c_str());