]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/checkedwidgets.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / checkedwidgets.C
index 3e11352595debce05a7ed0f8e81696998101c800..41b5b746401da012245aa6b3514951c1f56d39a8 100644 (file)
@@ -1,11 +1,11 @@
 /**
- * \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>
 
 #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));
 }
 
 
@@ -65,7 +67,7 @@ void setWidget(bool valid, FL_OBJECT * input, FL_OBJECT * 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);
 }
 
 
@@ -85,7 +87,7 @@ bool CheckedLyXLength::check() const
 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);
 }