3 * \file lengthvalidator.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef LENGTHVALIDATOR_H
13 #define LENGTHVALIDATOR_H
15 #include "lyxlength.h"
16 #include "lyxgluelength.h"
17 #include <qvalidator.h>
22 class Q_EXPORT LengthValidator : public QValidator
26 LengthValidator(QWidget * parent, const char *name = 0);
28 QValidator::State validate(QString &, int &) const;
30 void setBottom(LyXLength const &);
31 void setBottom(LyXGlueLength const &);
32 LyXLength bottom() const { return b_; }
35 #if defined(Q_DISABLE_COPY)
36 LengthValidator( const LengthValidator & );
37 LengthValidator& operator=( const LengthValidator & );
46 # endif // NOT LENGTHVALIDATOR_H