/**
- * \file checkedwidgets.C
+ * \file xforms/checkedwidgets.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
- * 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 "checkedwidgets.h"
#include "xforms_helpers.h"
-#include "lyxlength.h"
#include "lyxgluelength.h"
-#include "support/LAssert.h"
+
#include "support/lstrings.h"
-#include "LString.h"
-#include FORMS_H_LOCATION
+#include "lyx_forms.h"
+
+using lyx::support::isStrDbl;
+
+using std::string;
-void addCheckedLyXLength(ButtonControllerBase & bc,
+void addCheckedLyXLength(BCView & bcview,
FL_OBJECT * input, FL_OBJECT * label)
{
- bc.addCheckedWidget(new CheckedLyXLength(input, label));
+ bcview.addCheckedWidget(new CheckedLyXLength(input, label));
}
-void addCheckedGlueLength(ButtonControllerBase & bc,
+void addCheckedGlueLength(BCView & bcview,
FL_OBJECT * input, FL_OBJECT * label)
{
- bc.addCheckedWidget(new CheckedGlueLength(input, label));
+ bcview.addCheckedWidget(new CheckedGlueLength(input, label));
}
CheckedLyXLength::CheckedLyXLength(FL_OBJECT * input, FL_OBJECT * label)
: input_(input), label_(label ? label : input)
{
- lyx::Assert(input && input->objclass == FL_INPUT);
+ BOOST_ASSERT(input && input->objclass == FL_INPUT);
}
CheckedGlueLength::CheckedGlueLength(FL_OBJECT * input, FL_OBJECT * label)
: input_(input), label_(label ? label : input)
{
- lyx::Assert(input && input->objclass == FL_INPUT);
+ BOOST_ASSERT(input && input->objclass == FL_INPUT);
}