]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/input_validators.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / input_validators.h
index d0736a901dd23f46abbc85f10a73a424b50edd14..a0412c34410ca4746b5d2dd06e86f2f48226fb6d 100644 (file)
@@ -1,16 +1,16 @@
-/* This file is part of
- * ====================================================== 
+// -*- C++ -*-
+/**
+ * \file input_validators.h
+ * Copyright 1999-2001 Allan Rae
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Allan Rae
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
- *
- *           This file Copyright 1999-2000
- *           Allan Rae
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
-/** Input validators and filters for xforms.
+/* Input validators and filters for xforms.
  * A collection of input filtering and validating functions for use in
  * XForms dialogs.  Mainly meant for filtering input boxes although may
  * be extended to include other generally useful xforms-specific tools.
 #ifndef INPUT_VALIDATORS_H
 #define INPUT_VALIDATORS_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #if defined(__cplusplus)
 extern "C"
 {
 #endif
 
-    /** Only allow whole numbers no '+' or '-' signs or exponents. */
+    /** Only allow integer numbers,
+       possibly preceeded by a +' or '-' sign */
+int fl_int_filter(FL_OBJECT *, char const *, char const *, int);
+    /** Only allow integer numbers. No '+' or '-' signs. */
 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
-    /** Only allow whole numbers no '+' or '-' signs or exponents. */
+    /** Only allow floating point numbers,
+       possibly preceeded by a +' or '-' sign */
+int fl_float_filter(FL_OBJECT *, char const *, char const *, int);
+    /** Only allow floating point numbers. No '+' or '-' signs. */
 int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
 
     /** Only allow lowercase letters. */