1 /***************************************************************************
2 * Copyright (C) 2005 by Albert Astals Cid <tsdgeos@terra.es> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_GENERATOR_KIMGIO_H_
11 #define _OKULAR_GENERATOR_KIMGIO_H_
13 #include <core/generator.h>
15 #include <QtGui/QImage>
17 class KIMGIOGenerator
: public Okular::Generator
21 KIMGIOGenerator( QObject
*parent
, const QVariantList
&args
);
22 virtual ~KIMGIOGenerator();
24 // [INHERITED] load a document and fill up the pagesVector
25 bool loadDocument( const QString
& fileName
, QVector
<Okular::Page
*> & pagesVector
);
26 bool loadDocumentFromData( const QByteArray
& fileData
, QVector
<Okular::Page
*> & pagesVector
);
28 // [INHERITED] print document using already configured kprinter
29 bool print( QPrinter
& printer
);
32 bool doCloseDocument();
33 QImage
image( Okular::PixmapRequest
* request
);