KImageFormats
eps.cpp
55 = qint64(((unsigned char)buf[0]) + ((unsigned char)buf[1] << 8) + ((unsigned char)buf[2] << 16) + ((unsigned char)buf[3] << 24));
61 = qint64(((unsigned char)buf[0]) + ((unsigned char)buf[1] << 8) + ((unsigned char)buf[2] << 16) + ((unsigned char)buf[3] << 24));
187 gsArgs << QLatin1String("-sOutputFile=") + tmpFile.fileName() << QStringLiteral("-q") << QStringLiteral("-g%1x%2").arg(wantedWidth).arg(wantedHeight)
188 << QStringLiteral("-dSAFER") << QStringLiteral("-dPARANOIDSAFER") << QStringLiteral("-dNOPAUSE") << QStringLiteral("-sDEVICE=ppm")
289 gsArgs << QStringLiteral("-q") << QStringLiteral("-P-") << QStringLiteral("-dNOPAUSE") << QStringLiteral("-dBATCH") << QStringLiteral("-dSAFER")
290 << QStringLiteral("-sDEVICE=epswrite") << QStringLiteral("-sOutputFile=-") << QStringLiteral("-c") << QStringLiteral("save")
296 qCWarning(EPSPLUGIN) << "Creating EPS files requires pdftops (from Poppler) or gs (from GhostScript)";
301 while (converter.bytesAvailable() || (converter.state() == QProcess::Running && converter.waitForReadyRead(2000))) {
330QImageIOPlugin::Capabilities EPSPlugin::capabilities(QIODevice *device, const QByteArray &format) const
332 // prevent bug #397040: when on app shutdown the clipboard content is to be copied to survive end of the app,
333 // QXcbIntegration looks for some QImageIOHandler to apply, querying the capabilities and picking any first.
334 // At that point this plugin no longer has its requirements e.g. to run the external process, so we have to deny.
335 // The capabilities seem to be queried on demand in Qt code and not cached, so it's fine to report based
QFlags< Capability > Capabilities
const char * constData() const const
bool contains(QByteArrayView bv) const const
char * data()
bool isEmpty() const const
QByteArray number(double n, char format, int precision)
void resize(qsizetype newSize, char c)
qsizetype size() const const
QCoreApplication * instance()
QSize size() const const
void setDevice(QIODevice *device)
void setFormat(const QByteArray &format)
Capabilities
virtual qint64 bytesAvailable() const const
bool isOpen() const const
bool isReadable() const const
virtual bool isSequential() const const
bool isWritable() const const
virtual qint64 pos() const const
QByteArray read(qint64 maxSize)
QByteArray readAll()
QByteArray readLine(qint64 maxSize)
virtual bool reset()
virtual bool seek(qint64 pos)
void ungetChar(char c)
qint64 write(const QByteArray &data)
Point
bool begin(QPaintDevice *device)
void drawImage(const QPoint &point, const QImage &image)
bool end()
PdfFormat
PrinterResolution
StandardOutput
ForwardedErrorChannel
Running
void closeWriteChannel()
void setProcessChannelMode(ProcessChannelMode mode)
void setReadChannel(ProcessChannel channel)
void start(OpenMode mode)
QProcess::ProcessState state() const const
bool waitForFinished(int msecs)
virtual bool waitForReadyRead(int msecs) override
bool waitForStarted(int msecs)
QString findExecutable(const QString &executableName, const QStringList &paths)
QString arg(Args &&... args) const const
bool isEmpty() const const
virtual QString fileName() const const override
bool open()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.