Definition at line 105 of file qtextodfwriter.cpp.
◆ QZipStreamStrategy()
QZipStreamStrategy::QZipStreamStrategy |
( |
QIODevice * |
device | ) |
|
|
inline |
Definition at line 107 of file qtextodfwriter.cpp.
QIODevice * contentStream
bool open(OpenMode openMode)
Reimplemented Function
The QByteArray class provides an array of bytes.
void addFile(const QString &fileName, const QByteArray &data)
Add a file to the archive with data as the file contents.
void setCompressionPolicy(CompressionPolicy policy)
Sets the policy for compressing newly added files to the new policy.
void writeAttribute(const QString &qualifiedName, const QString &value)
Writes an attribute with qualifiedName and value.
virtual void addFile(const QString &fileName, const QString &mimeType, const QByteArray &bytes)
void writeNamespace(const QString &namespaceUri, const QString &prefix=QString())
Writes a namespace declaration for namespaceUri with prefix.
void writeStartDocument()
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setAutoFormattingIndent(int spacesOrTabs)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void setAutoFormatting(bool)
void writeStartElement(const QString &qualifiedName)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QXmlStreamWriter manifestWriter
◆ ~QZipStreamStrategy()
QZipStreamStrategy::~QZipStreamStrategy |
( |
| ) |
|
|
inline |
Definition at line 132 of file qtextodfwriter.cpp.
void close()
Reimplemented Function
void writeEndDocument()
Closes all remaining open start elements and writes a newline.
void addFile(const QString &fileName, const QByteArray &data)
Add a file to the archive with data as the file contents.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void close()
Closes the zip file.
QXmlStreamWriter manifestWriter
◆ addFile() [1/2]
virtual void QZipStreamStrategy::addFile |
( |
const QString & |
fileName, |
|
|
const QString & |
mimeType, |
|
|
const QByteArray & |
bytes |
|
) |
| |
|
inlinevirtual |
Implements QOutputStrategy.
Definition at line 142 of file qtextodfwriter.cpp.
void addFile(const QString &fileName, const QByteArray &data)
Add a file to the archive with data as the file contents.
virtual void addFile(const QString &fileName, const QString &mimeType, const QByteArray &bytes)
◆ addFile() [2/2]
void QZipStreamStrategy::addFile |
( |
const QString & |
fileName, |
|
|
const QString & |
mimeType |
|
) |
| |
|
inlineprivate |
Definition at line 149 of file qtextodfwriter.cpp.
void writeAttribute(const QString &qualifiedName, const QString &value)
Writes an attribute with qualifiedName and value.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void writeEmptyElement(const QString &qualifiedName)
Writes an empty element with qualified name qualifiedName.
QXmlStreamWriter manifestWriter
◆ content
QBuffer QZipStreamStrategy::content |
|
private |
◆ manifest
QBuffer QZipStreamStrategy::manifest |
|
private |
◆ manifestNS
QString QZipStreamStrategy::manifestNS |
|
private |
◆ manifestWriter
◆ zip
The documentation for this class was generated from the following file: