3 * \file input_validators.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 /* Input validators and filters for xforms.
13 * A collection of input filtering and validating functions for use in
14 * XForms dialogs. Mainly meant for filtering input boxes although may
15 * be extended to include other generally useful xforms-specific tools.
18 #ifndef INPUT_VALIDATORS_H
19 #define INPUT_VALIDATORS_H
22 #if defined(__cplusplus)
27 /** Only allow integer numbers,
28 possibly preceeded by a +' or '-' sign */
29 int fl_int_filter(FL_OBJECT *, char const *, char const *, int);
30 /** Only allow integer numbers. No '+' or '-' signs. */
31 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
32 /** Only allow floating point numbers,
33 possibly preceeded by a +' or '-' sign */
34 int fl_float_filter(FL_OBJECT *, char const *, char const *, int);
35 /** Only allow floating point numbers. No '+' or '-' signs. */
36 int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
38 /** Only allow lowercase letters. */
39 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
41 #if defined(__cplusplus)