okular/generators/fax/generator_fax.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
908 B
C
Raw Permalink Normal View History

/*
SPDX-FileCopyrightText: 2008 Tobias Koenig <tokoe@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef OKULAR_GENERATOR_FAX_H
#define OKULAR_GENERATOR_FAX_H
#include <core/generator.h>
2018-08-31 09:23:45 +00:00
#include <QImage>
#include "faxdocument.h"
class FaxGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES(Okular::Generator)
public:
FaxGenerator(QObject *parent, const QVariantList &args);
~FaxGenerator() override;
2017-03-02 19:39:24 +00:00
bool loadDocument(const QString &fileName, QVector<Okular::Page *> &pagesVector) override;
2017-03-02 19:39:24 +00:00
Okular::DocumentInfo generateDocumentInfo(const QSet<Okular::DocumentInfo::Key> &keys) const override;
Okular::Document::PrintError print(QPrinter &printer) override;
protected:
2017-03-02 19:39:24 +00:00
bool doCloseDocument() override;
QImage image(Okular::PixmapRequest *request) override;
private:
QImage m_img;
FaxDocument::DocumentType m_type;
};
#endif