/*************************************************************************** * Copyright (C) 2005 by Albert Astals Cid * * * * 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 _KPDF_GENERATOR_PNG_H_ #define _KPDF_GENERATOR_PNG_H_ #include "core/generator.h" class KIMGIOGenerator : public Generator { Q_OBJECT public: KIMGIOGenerator( KPDFDocument * document ); virtual ~KIMGIOGenerator(); // [INHERITED] load a document and fill up the pagesVector bool loadDocument( const QString & fileName, QVector & pagesVector ); // [INHERITED] perform actions on document / pages bool canGeneratePixmap( bool async ); void generatePixmap( PixmapRequest * request ); void generateSyncTextPage( KPDFPage * page ) {;}; // [INHERITED] capability querying QString getXMLFile() { return QString::null; }; void setupGUI(KActionCollection * /*ac*/ , QToolBox * /* tBox */) { ; }; bool hasFonts() const; bool canGenerateTextPage() { return false; }; bool supportsSearching() { return false; }; bool supportsRotation() { return false; }; bool prefersInternalSearching() { return false; }; void setOrientation(QVector & pagesVector, int orientation) {;}; RegularAreaRect* findText(const QString&, SearchDir, bool, const RegularAreaRect*, KPDFPage*) { return 0; }; QString * getText(const RegularAreaRect*, KPDFPage*) { return 0; }; // font related // [INHERITED] print document using already configured kprinter bool print( KPrinter& printer ); signals: void error(QString & string, int duration); void warning(QString & string, int duration); void notice(QString & string, int duration); private: QPixmap *m_pix; }; #endif