]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/checkedwidgets.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / checkedwidgets.C
index f526eee31fabb6f7a1b3d016164a545b9eaf9897..532823e34fbf245f9d58affc705f5f39e5fd1d94 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \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.
  *
 
 #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 "lyx_forms.h"
 
-using namespace lyx::support;
+using std::string;
+
+namespace lyx {
+
+using support::isStrDbl;
+
+namespace frontend {
+
 
 void addCheckedLyXLength(BCView & bcview,
                         FL_OBJECT * input, FL_OBJECT * label)
@@ -66,7 +71,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)
 {
-       Assert(input && input->objclass == FL_INPUT);
+       BOOST_ASSERT(input && input->objclass == FL_INPUT);
 }
 
 
@@ -86,7 +91,7 @@ bool CheckedLyXLength::check() const
 CheckedGlueLength::CheckedGlueLength(FL_OBJECT * input, FL_OBJECT * label)
        : input_(input), label_(label ? label : input)
 {
-       Assert(input && input->objclass == FL_INPUT);
+       BOOST_ASSERT(input && input->objclass == FL_INPUT);
 }
 
 
@@ -101,3 +106,6 @@ bool CheckedGlueLength::check() const
 
        return valid;
 }
+
+} // namespace frontend
+} // namespace lyx