]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xformsBC.h
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / xforms / xformsBC.h
index d000484bb44ca591acc9489d2698bbd1f108a72e..085ca7174a378aeac3034b84374a4b7ede80761b 100644 (file)
@@ -1,47 +1,45 @@
-/* This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
- *
- *           Copyright 2001 The LyX Team.
+// -*- C++ -*-
+/**
+ * \file xformsBC.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Allan Rae
+ * \author Angus Leeming
+ * \author Baruch Even
  *
- * \file xformsBC.h
- * \author Allan Rae, rae@lyx.org
- * \author Angus Leeming, a.leeming@ic.ac.uk
- * \author Baruch Even, baruch.even@writeme.com
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef XFORMSBC_H
 #define XFORMSBC_H
 
-#include FORMS_H_LOCATION
-#include <list>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "forms_fwd.h"
 
+#include "BCView.h"
 #include "gettext.h"
-#include "ButtonControllerBase.h"
-#include "ButtonController.h"
 
-class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT>
-{
+namespace lyx {
+namespace frontend {
+
+class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
 public:
        ///
-       xformsBC(string const &, string const &);
+       xformsBC(ButtonController const &,
+                std::string const & = _("Cancel"), std::string const & = _("Close"));
 
 private:
        /// Updates the button sensitivity (enabled/disabled)
-       void setButtonEnabled(FL_OBJECT *, bool enabled);
+       void setButtonEnabled(FL_OBJECT *, bool enabled) const;
 
        /// Updates the widget sensitivity (enabled/disabled)
-       void setWidgetEnabled(FL_OBJECT *, bool enabled);
+       void setWidgetEnabled(FL_OBJECT *, bool enabled) const;
 
        /// Set the label on the button
-       void setButtonLabel(FL_OBJECT *, string const & label);
+       void setButtonLabel(FL_OBJECT *, std::string const & label) const;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // XFORMSBC_H