]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/input_validators.h
Added // -*- C++ -*- to the top of all files in controllers/ and xforms/
[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 whole numbers no '+' or '-' signs or exponents. */
29 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
30     /** Only allow whole numbers no '+' or '-' signs or exponents. */
31 int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
32
33     /** Only allow lowercase letters. */
34 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
35
36 #if defined(__cplusplus)
37 }
38 #endif
39
40 #endif