You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.8 KiB
54 lines
1.8 KiB
/*************************************************************************** |
|
* Copyright (C) 2007 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_PLUCKER_H_ |
|
#define _OKULAR_GENERATOR_PLUCKER_H_ |
|
|
|
#include <okular/core/document.h> |
|
#include <okular/core/generator.h> |
|
|
|
#include <QtGui/QTextBlock> |
|
|
|
#include "qunpluck.h" |
|
|
|
class QTextDocument; |
|
|
|
class PluckerGenerator : public Okular::Generator |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
PluckerGenerator(); |
|
virtual ~PluckerGenerator(); |
|
|
|
// [INHERITED] load a document and fill up the pagesVector |
|
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & pagesVector ); |
|
bool closeDocument(); |
|
|
|
// [INHERITED] document information |
|
const Okular::DocumentInfo * generateDocumentInfo(); |
|
|
|
bool canGeneratePixmap() const; |
|
void generatePixmap( Okular::PixmapRequest *request ); |
|
|
|
// [INHERITED] text exporting |
|
Okular::ExportFormat::List exportFormats() const; |
|
bool exportTo( const QString &fileName, const Okular::ExportFormat &format ); |
|
|
|
// [INHERITED] print document using already configured kprinter |
|
bool print( KPrinter& printer ); |
|
|
|
private: |
|
QList<QTextDocument*> mPages; |
|
QSet<int> mLinkAdded; |
|
Link::List mLinks; |
|
Okular::DocumentInfo mDocumentInfo; |
|
}; |
|
|
|
#endif
|
|
|