]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/input_validators.h
iThe cursor now behaves properly in the dialogs...
[lyx.git] / src / frontends / xforms / input_validators.h
1 // -*- C++ -*-
2 /**
3  * \file input_validators.h
4  * Copyright 2002 the LyX Team
5  * Copyright 1999-2001 Allan Rae
6  * Read the file COPYING
7  *
8  * \author Allan Rae, rae@lyx.org
9  */
10
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.
15  */
16
17 #ifndef INPUT_VALIDATORS_H
18 #define INPUT_VALIDATORS_H
19
20 #ifdef __GNUG_
21 #pragma interface
22 #endif
23
24 #if defined(__cplusplus)
25 extern "C"
26 {
27 #endif
28
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);
39
40     /** Only allow lowercase letters. */
41 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
42
43 #if defined(__cplusplus)
44 }
45 #endif
46
47 #endif