2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
12 * \author Allan Rae, rae@lyx.org
13 * \author Angus Leeming, a.leeming@ic.ac.uk
14 * \author Baruch Even, baruch.even@writeme.com
20 #pragma implementation
24 #include "xforms_helpers.h"
26 xformsBC::xformsBC(string const & cancel, string const & close)
27 : GuiBC<FL_OBJECT, FL_OBJECT>(cancel, close)
31 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled)
33 setEnabled(obj, enabled);
37 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled)
39 setEnabled(obj, enabled);
43 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label)
45 fl_set_object_label(obj, label.c_str());