3 * \file input_validators.h
4 * Copyright 2002 the LyX Team
5 * Copyright 1999-2001 Allan Rae
6 * Read the file COPYING
8 * \author Allan Rae, rae@lyx.org
11 /* Input validators and filters for xforms.
12 * A collection of input filtering and validating functions for use in
13 * XForms dialogs. Mainly meant for filtering input boxes although may
14 * be extended to include other generally useful xforms-specific tools.
17 #ifndef INPUT_VALIDATORS_H
18 #define INPUT_VALIDATORS_H
24 #if defined(__cplusplus)
29 /** Only allow integer numbers,
30 possibly preceeded by a +' or '-' sign */
31 int fl_int_filter(FL_OBJECT *, char const *, char const *, int);
32 /** Only allow integer numbers. No '+' or '-' signs. */
33 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
34 /** Only allow floating point numbers,
35 possibly preceeded by a +' or '-' sign */
36 int fl_float_filter(FL_OBJECT *, char const *, char const *, int);
37 /** Only allow floating point numbers. No '+' or '-' signs. */
38 int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
40 /** Only allow lowercase letters. */
41 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
43 #if defined(__cplusplus)