/** * \file FormError.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Angus Leeming * * Full author contact details are available in file CREDITS */ #ifdef __GNUG__ #pragma implementation #endif #include #include "xformsBC.h" #include "ControlError.h" #include "FormError.h" #include "forms/form_error.h" #include "xforms_helpers.h" // formatted #include FORMS_H_LOCATION typedef FormCB > base_class; FormError::FormError() : base_class(_("LaTeX Error")) {} void FormError::build() { dialog_.reset(build_error(this)); // Manage the cancel/close button bc().setCancel(dialog_->button_close); } void FormError::update() { string const txt = formatted(controller().params(), dialog_->frame_message->w - 10); fl_set_object_label(dialog_->frame_message, txt.c_str()); }