lyx_mirror/src/frontends/xforms/FormError.C
Angus Leeming 8999098e94 Remove some xforms cruft from BufferView.h BufferView_pimpl.h.
John's name-changing patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1878 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-03 14:30:58 +00:00

49 lines
977 B
C

/*
* \file FormError.C
* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2000-2001 The LyX Team.
*
* ======================================================
*
* \author Angus Leeming, a.leeming@.ac.uk
*/
#ifdef __GNUG__
#pragma implementation
#endif
#include <config.h>
#include "xformsBC.h"
#include "ControlError.h"
#include "FormError.h"
#include "form_error.h"
#include "xforms_helpers.h" // formatted
typedef FormCB<ControlError, FormDB<FD_form_error> > base_class;
FormError::FormError(ControlError & c)
: base_class(c, _("LaTeX Error"))
{}
void FormError::build()
{
dialog_.reset(build_error());
// Manage the cancel/close button
bc().setCancel(dialog_->button_cancel);
}
void FormError::update()
{
string const txt = formatted(controller().params(),
dialog_->message->w-10);
fl_set_object_label(dialog_->message, txt.c_str());
}