3 * Copyright 2000-2001 The LyX Team.
4 * See the file COPYING.
6 * \author Angus Leeming <leeming@lyx.org>
10 #pragma implementation
16 #include "ControlError.h"
17 #include "FormError.h"
18 #include "forms/form_error.h"
19 #include "xforms_helpers.h" // formatted
20 #include FORMS_H_LOCATION
22 typedef FormCB<ControlError, FormDB<FD_error> > base_class;
24 FormError::FormError()
25 : base_class(_("LaTeX Error"))
29 void FormError::build()
31 dialog_.reset(build_error(this));
33 // Manage the cancel/close button
34 bc().setCancel(dialog_->button_close);
38 void FormError::update()
40 string const txt = formatted(controller().params(),
41 dialog_->frame_message->w - 10);
42 fl_set_object_label(dialog_->frame_message, txt.c_str());