]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xformsBC.C
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / xformsBC.C
index ece4bbceb415248d035e4b0604a18568039772b9..99f20eaab5c8f35b5958ea4d75e865f21e30e776 100644 (file)
@@ -4,41 +4,42 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Allan Rae
- * \author Angus Leeming 
+ * \author Angus Leeming
  * \author Baruch Even
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "xformsBC.h"
 #include "xforms_helpers.h"
-#include FORMS_H_LOCATION
+#include "lyx_forms.h"
 
 
-xformsBC::xformsBC(string const & cancel, string const & close)
-       : GuiBC<FL_OBJECT, FL_OBJECT>(cancel, close)
+using std::string;
+
+
+xformsBC::xformsBC(ButtonController const & parent,
+                  string const & cancel, string const & close)
+       : GuiBC<FL_OBJECT, FL_OBJECT>(parent, cancel, close)
 {}
 
 
-void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled)
+void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled) const
 {
        setEnabled(obj, enabled);
 }
 
 
-void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled)
+void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled) const
 {
        setEnabled(obj, enabled);
 }
 
 
-void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label)
+void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label) const
 {
        fl_set_object_label(obj, label.c_str());
 }