/*************************************************************************** * Copyright (C) 2008 by Tobias Koenig * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef OKULAR_GENERATOR_FAX_H #define OKULAR_GENERATOR_FAX_H #include #include class FaxGenerator : public Okular::Generator { Q_OBJECT public: FaxGenerator( QObject *parent, const QVariantList &args ); virtual ~FaxGenerator(); bool loadDocument( const QString & fileName, QVector & pagesVector ); const Okular::DocumentInfo * generateDocumentInfo(); bool print( QPrinter& printer ); protected: bool doCloseDocument(); QImage image( Okular::PixmapRequest * request ); private: QImage m_img; Okular::DocumentInfo *m_docInfo; }; #endif