mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 03:54:18 -04:00
Frameworks have a convention of naming uninstalled headers in src/ with a _p at the end of the name, to make it clear they are not part of the API. None of the headers in KImageFormats are installed, so it is not really necessary to follow this convention, but we follow it anyway for the benefit of both humans and tools (like kapidox).
36 lines
873 B
C++
36 lines
873 B
C++
/*
|
|
* QImageIO Routines to read/write EPS images.
|
|
* copyright (c) 1998 Dirk Schoenberger <dirk.schoenberger@freenet.de>
|
|
*
|
|
* This library is distributed under the conditions of the GNU LGPL.
|
|
*/
|
|
#ifndef KIMG_EPS_H
|
|
#define KIMG_EPS_H
|
|
|
|
#include <QImageIOPlugin>
|
|
|
|
class EPSHandler : public QImageIOHandler
|
|
{
|
|
public:
|
|
EPSHandler();
|
|
|
|
virtual bool canRead() const;
|
|
virtual bool read(QImage *image);
|
|
virtual bool write(const QImage &image);
|
|
|
|
static bool canRead(QIODevice *device);
|
|
};
|
|
|
|
class EPSPlugin : public QImageIOPlugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "eps.json")
|
|
|
|
public:
|
|
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
|
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
|
};
|
|
|
|
#endif // KIMG_EPS_H
|
|
|