mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-19 07:51:27 +00:00
18028a8a2c
Add a protected method to get the document, and hide the real document pointer as private, so the generators can't redefine it. svn path=/trunk/playground/graphics/okular/; revision=598025
41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2005 by Albert Astals Cid <tsdgeos@terra.es> *
|
|
* *
|
|
* 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_KIMGIO_H_
|
|
#define _OKULAR_GENERATOR_KIMGIO_H_
|
|
|
|
#include "core/generator.h"
|
|
|
|
class KIMGIOGenerator : public Okular::Generator
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
KIMGIOGenerator();
|
|
virtual ~KIMGIOGenerator();
|
|
|
|
// [INHERITED] load a document and fill up the pagesVector
|
|
bool loadDocument( const QString & fileName, QVector<Okular::Page*> & pagesVector );
|
|
bool closeDocument();
|
|
|
|
// [INHERITED] perform actions on document / pages
|
|
bool canGeneratePixmap( bool async ) const;
|
|
void generatePixmap( Okular::PixmapRequest * request );
|
|
|
|
// [INHERITED] rotation capability
|
|
bool supportsRotation() const { return true; };
|
|
|
|
// [INHERITED] print document using already configured kprinter
|
|
bool print( KPrinter& printer );
|
|
|
|
private:
|
|
QPixmap *m_pix;
|
|
};
|
|
|
|
#endif
|