/** * \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 */ #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 FormController > base_class; FormError::FormError(Dialog & parent) : base_class(parent, _("LaTeX Error")) {} void FormError::build() { dialog_.reset(build_error(this)); // Manage the cancel/close button bcview().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()); }