// -*- C++ -*-
/**
* \file xformsBC.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Allan Rae, rae@lyx.org
- * \author Angus Leeming <leeming@lyx.org>
- * \author Baruch Even, baruch.even@writeme.com
+ * \author Allan Rae
+ * \author Angus Leeming
+ * \author Baruch Even
+ *
+ * Full author contact details are available in file CREDITS.
*/
#ifndef XFORMSBC_H
#include "forms_fwd.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ButtonController.h"
+#include "BCView.h"
+#include "gettext.h"
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;
};
#endif // XFORMSBC_H