mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-25 11:22:55 +00:00
40 lines
1.3 KiB
C++
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
|