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