]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/input_validators.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / input_validators.h
1 // -*- C++ -*-
2 /**
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.
7  *
8  * \author Allan Rae
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
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.
17  */
18
19 #ifndef INPUT_VALIDATORS_H
20 #define INPUT_VALIDATORS_H
21
22 #ifdef __GNUG__
23 #pragma interface
24 #endif
25
26 #if defined(__cplusplus)
27 extern "C"
28 {
29 #endif
30
31     /** Only allow integer numbers,
32         possibly preceeded by a +' or '-' sign */
33 int fl_int_filter(FL_OBJECT *, char const *, char const *, int);
34     /** Only allow integer numbers. No '+' or '-' signs. */
35 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
36     /** Only allow floating point numbers,
37         possibly preceeded by a +' or '-' sign */
38 int fl_float_filter(FL_OBJECT *, char const *, char const *, int);
39     /** Only allow floating point numbers. No '+' or '-' signs. */
40 int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
41
42     /** Only allow lowercase letters. */
43 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
44
45 #if defined(__cplusplus)
46 }
47 #endif
48
49 #endif