2000-06-12 11:55:12 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* This file Copyright 1999-2000
|
|
|
|
* Allan Rae
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
/** Input validators and filters for xforms.
|
|
|
|
* A collection of input filtering and validating functions for use in
|
|
|
|
* XForms popups. Mainly meant for filtering input boxes although may
|
|
|
|
* be extended to include other generally useful xforms-specific tools.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INPUT_VALIDATORS_H
|
|
|
|
#define INPUT_VALIDATORS_H
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2000-11-03 09:47:02 +00:00
|
|
|
/** Only allow whole numbers no '+' or '-' signs or exponents. */
|
2000-06-12 11:55:12 +00:00
|
|
|
int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
|
2000-12-06 22:24:17 +00:00
|
|
|
/** Only allow whole numbers no '+' or '-' signs or exponents. */
|
|
|
|
int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
|
2000-06-12 11:55:12 +00:00
|
|
|
|
2000-11-03 09:47:02 +00:00
|
|
|
/** Only allow lowercase letters. */
|
|
|
|
int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|