SVN_SILENT no gui to configure
[kdegraphics.git] / okular / generators / kimgio / generator_kimgio.h
blob0ef1512e8086ae79a46eddf121fff3e902ff3641
1 /***************************************************************************
2 * Copyright (C) 2005 by Albert Astals Cid <tsdgeos@terra.es> *
3 * *
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
19 Q_OBJECT
20 public:
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 );
31 protected:
32 bool doCloseDocument();
33 QImage image( Okular::PixmapRequest * request );
35 private slots:
36 void slotTest();
38 private:
39 QImage m_img;
42 #endif