kde-extraapps/okular/generators/fax/generator_fax.h

40 lines
1.3 KiB
C++

/***************************************************************************
* Copyright (C) 2008 by Tobias Koenig <tokoe@kde.org> *
* *
* 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 <core/generator.h>
#include <QtGui/QImage>
class FaxGenerator : public Okular::Generator
{
Q_OBJECT
public:
FaxGenerator( QObject *parent, const QVariantList &args );
virtual ~FaxGenerator();
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & 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