/* * PDFedit - free program for PDF document manipulation. * Copyright (C) 2006, 2007 PDFedit team: Michal Hocko, * Miroslav Jahoda, * Jozef Misutka, * Martin Petricek * * Project is hosted on http://sourceforge.net/projects/pdfedit */ #ifndef __REFVALIDATOR_H__ #define __REFVALIDATOR_H__ #include class QString; namespace gui { /** Reference validator - checks if given String is valid Reference in given document Does validate only format, not if the reference exists (that would be too slow) Reference existence is validated on attempt to write it to the property \brief Reference format validator */ class RefValidator : public QValidator { public: RefValidator(QObject *parent,const char *name=0); void fixup(QString &input) const; QValidator::State validate(QString &input,int &pos) const; }; } // namespace gui #endif