]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/input_validators.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / input_validators.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  *           This file Copyright 1999-2001
11  *           Allan Rae
12  * ====================================================== */
13
14 /** Input validators and filters for xforms.
15  * A collection of input filtering and validating functions for use in
16  * XForms dialogs.  Mainly meant for filtering input boxes although may
17  * be extended to include other generally useful xforms-specific tools.
18  */
19
20 #ifndef INPUT_VALIDATORS_H
21 #define INPUT_VALIDATORS_H
22
23 #if defined(__cplusplus)
24 extern "C"
25 {
26 #endif
27
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);
38
39     /** Only allow lowercase letters. */
40 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
41
42 #if defined(__cplusplus)
43 }
44 #endif
45
46 #endif