File indexing completed on 2024-05-12 07:49:36
0001 /* 0002 QImageIO Routines to read/write EPS images. 0003 SPDX-FileCopyrightText: 1998 Dirk Schoenberger <dirk.schoenberger@freenet.de> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 #ifndef KIMG_EPS_P_H 0008 #define KIMG_EPS_P_H 0009 0010 #include <QImageIOPlugin> 0011 #include <QLoggingCategory> 0012 0013 class EPSHandler : public QImageIOHandler 0014 { 0015 public: 0016 EPSHandler(); 0017 0018 bool canRead() const override; 0019 bool read(QImage *image) override; 0020 bool write(const QImage &image) override; 0021 0022 static bool canRead(QIODevice *device); 0023 }; 0024 0025 class EPSPlugin : public QImageIOPlugin 0026 { 0027 Q_OBJECT 0028 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "eps.json") 0029 0030 public: 0031 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override; 0032 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override; 0033 }; 0034 0035 Q_DECLARE_LOGGING_CATEGORY(EPSPLUGIN) 0036 0037 #endif // KIMG_EPS_P_H