]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/input_validators.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / input_validators.C
index d641da5252f5f42dade802b1ebd9cee590a200a6..c4e3389f0b61c0d4a5b6249885d64344330478f6 100644 (file)
@@ -5,16 +5,19 @@
  *
  * \author Allan Rae
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#include "lyx_forms.h"
-#include "support/lstrings.h"
 #include "input_validators.h"
 
-using namespace lyx::support;
+#include "support/lstrings.h"
+
+#include "lyx_forms.h"
+
+namespace support = lyx::support;
+
 
 #if defined(__cplusplus)
 extern "C"
@@ -26,7 +29,7 @@ int fl_int_filter(FL_OBJECT * ob,
 {
        if (c == 0 /* final test before handing contents to app */
            || strchr("0123456789+-", c)) {
-               if (isStrInt(fl_get_input(ob)))
+               if (support::isStrInt(fl_get_input(ob)))
                        return FL_VALID;
        }
        return FL_INVALID|FL_RINGBELL;
@@ -50,7 +53,7 @@ int fl_float_filter(FL_OBJECT * ob,
 {
        if (c == 0 /* final test before handing contents to app */
            || strchr("0123456789.+-", c)) {
-               if (isStrDbl(fl_get_input(ob)))
+               if (support::isStrDbl(fl_get_input(ob)))
                        return FL_VALID;
        }
        return FL_INVALID|FL_RINGBELL;
@@ -64,7 +67,7 @@ int fl_unsigned_float_filter(FL_OBJECT * ob,
 {
        if (c == 0 /* final test before handing contents to app */
            || strchr("0123456789.", c)) {
-               if (isStrDbl(fl_get_input(ob)))
+               if (support::isStrDbl(fl_get_input(ob)))
                        return FL_VALID;
        }
        return FL_INVALID|FL_RINGBELL;