]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.C
Introduce LFUN_PRINT.
[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
16 #include "xformsBC.h"
17 #include "xforms_helpers.h"
18 #include "lyx_forms.h"
19
20
21 using std::string;
22
23
24 xformsBC::xformsBC(ButtonController const & parent,
25                    string const & cancel, string const & close)
26         : GuiBC<FL_OBJECT, FL_OBJECT>(parent, cancel, close)
27 {}
28
29
30 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled) const
31 {
32         setEnabled(obj, enabled);
33 }
34
35
36 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled) const
37 {
38         setEnabled(obj, enabled);
39 }
40
41
42 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label) const
43 {
44         fl_set_object_label(obj, label.c_str());
45 }