/* * 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 __PDFUTIL_H__ #define __PDFUTIL_H__ /** @file \brief PDF manipulation utility functions header */ #include #include #include class QString; namespace pdfobjects { class CPdf; } namespace util { using namespace pdfobjects; QString getTypeId(PropertyType typ); QString getTypeId(IProperty *obj); QString getTypeId(boost::shared_ptr obj); QString getTypeName(PropertyType typ); QString getTypeName(IProperty *obj); QString getTypeName(boost::shared_ptr obj); IndiRef getRef(IProperty *ref); IndiRef getRef(boost::shared_ptr ref); bool isRefValid(CPdf *pdf,IndiRef ref); bool isSimple(IProperty* prop); bool isSimple(boost::shared_ptr prop); boost::shared_ptr dereference(boost::shared_ptr obj); bool saveCopy(CPdf *obj,const QString &name); boost::shared_ptr getObjProperty(boost::shared_ptr obj,const QString &name); boost::shared_ptr getObjProperty(boost::shared_ptr obj,const QString &name); boost::shared_ptr recursiveProperty(boost::shared_ptr obj,const QString &name); boost::shared_ptr recursiveProperty(boost::shared_ptr obj,const QString &name); QString propertyPreview(boost::shared_ptr obj); QString annotType(CAnnotation::AnnotType at); QString annotType(boost::shared_ptr anot); QString annotTypeName(boost::shared_ptr anot); } // namespace util #endif