]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / xformsBC.C
1 /**
2  * \file xformsBC.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Allan Rae
7  * \author Angus Leeming 
8  * \author Baruch Even
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #include <config.h>
14
15 #ifdef __GNUG__
16 #pragma implementation
17 #endif
18
19 #include "xformsBC.h"
20 #include "xforms_helpers.h"
21 #include FORMS_H_LOCATION
22
23
24 xformsBC::xformsBC(string const & cancel, string const & close)
25         : GuiBC<FL_OBJECT, FL_OBJECT>(cancel, close)
26 {}
27
28
29 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled)
30 {
31         setEnabled(obj, enabled);
32 }
33
34
35 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled)
36 {
37         setEnabled(obj, enabled);
38 }
39
40
41 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label)
42 {
43         fl_set_object_label(obj, label.c_str());
44 }