mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
7cbe56d12e
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3713 a592a061-630c-0410-9148-cb99ea01b6c8
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file input_validators.h
|
|
* Copyright 2002 the LyX Team
|
|
* Copyright 1999-2001 Allan Rae
|
|
* Read the file COPYING
|
|
*
|
|
* \author Allan Rae, rae@lyx.org
|
|
*/
|
|
|
|
/* Input validators and filters for xforms.
|
|
* A collection of input filtering and validating functions for use in
|
|
* XForms dialogs. 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
|
|
|
|
#ifdef __GNUG_
|
|
#pragma interface
|
|
#endif
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/** Only allow integer numbers,
|
|
possibly preceeded by a +' or '-' sign */
|
|
int fl_int_filter(FL_OBJECT *, char const *, char const *, int);
|
|
/** Only allow integer numbers. No '+' or '-' signs. */
|
|
int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
|
|
/** Only allow floating point numbers,
|
|
possibly preceeded by a +' or '-' sign */
|
|
int fl_float_filter(FL_OBJECT *, char const *, char const *, int);
|
|
/** Only allow floating point numbers. No '+' or '-' signs. */
|
|
int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
|
|
|
|
/** Only allow lowercase letters. */
|
|
int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|