]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/input_validators.h
More pref work from Angus
[lyx.git] / src / frontends / xforms / input_validators.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2000 The LyX Team.
8  *
9  *           This file Copyright 1999-2000
10  *           Allan Rae
11  * ====================================================== */
12
13 /** Input validators and filters for xforms.
14  * A collection of input filtering and validating functions for use in
15  * XForms popups.  Mainly meant for filtering input boxes although may
16  * be extended to include other generally useful xforms-specific tools.
17  */
18
19 #ifndef INPUT_VALIDATORS_H
20 #define INPUT_VALIDATORS_H
21
22 #if defined(__cplusplus)
23 extern "C"
24 {
25 #endif
26
27     /** Only allow whole numbers no '+' or '-' signs or exponents. */
28 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
29
30     /** Only allow lowercase letters. */
31 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
32
33 #if defined(__cplusplus)
34 }
35 #endif
36
37 #endif