My Project
|
#include <qhpxmlwriter.h>
Public Member Functions | |
QhpXmlWriter () | |
~QhpXmlWriter () | |
void | setIndentLevel (int level) |
void | setCompressionEnabled (bool enabled) |
void | insert (QhpXmlWriter const &source) |
void | dumpTo (QFile &file) |
void | open (char const *elementName, char const *const *attributes=0) |
void | openClose (char const *elementName, char const *const *attributes=0) |
void | openCloseContent (char const *elementName, char const *content) |
void | close (char const *elementName) |
void | declaration (char const *version, char const *encoding) |
Static Public Member Functions | |
static char * | dupEscaped (const char *source) |
Private Member Functions | |
void | indent () |
void | newLine () |
void | openPureHelper (char const *elementName, char const *const *attributes, bool close) |
void | openPure (char const *elementName, char const *const *attributes=0) |
void | openClosePure (char const *elementName, char const *const *attributes=0) |
void | closePure (char const *elementName) |
Private Attributes | |
QGString | m_backend |
FTextStream | m_out |
int | m_indentLevel |
bool | m_curLineIndented |
bool | m_compress |
Definition at line 25 of file qhpxmlwriter.h.
QhpXmlWriter::QhpXmlWriter | ( | ) |
Definition at line 22 of file qhpxmlwriter.cpp.
QhpXmlWriter::~QhpXmlWriter | ( | ) |
Definition at line 28 of file qhpxmlwriter.cpp.
void QhpXmlWriter::close | ( | char const * | elementName | ) |
Definition at line 79 of file qhpxmlwriter.cpp.
References closePure(), indent(), m_indentLevel, and newLine().
Referenced by Qhp::addContentsItem(), Qhp::finalize(), and Qhp::initialize().
|
private |
Definition at line 153 of file qhpxmlwriter.cpp.
References m_out.
Referenced by close(), and openCloseContent().
void QhpXmlWriter::declaration | ( | char const * | version, |
char const * | encoding | ||
) |
Definition at line 87 of file qhpxmlwriter.cpp.
References m_out, and newLine().
Referenced by Qhp::initialize().
void QhpXmlWriter::dumpTo | ( | QFile & | file | ) |
Definition at line 47 of file qhpxmlwriter.cpp.
References m_backend.
Referenced by Qhp::finalize().
|
static |
|
private |
Definition at line 93 of file qhpxmlwriter.cpp.
References m_curLineIndented, m_indentLevel, and m_out.
Referenced by close(), open(), openClose(), and openCloseContent().
void QhpXmlWriter::insert | ( | QhpXmlWriter const & | source | ) |
Definition at line 42 of file qhpxmlwriter.cpp.
References m_backend, and m_out.
Referenced by Qhp::finalize().
|
private |
Definition at line 106 of file qhpxmlwriter.cpp.
References m_compress, m_curLineIndented, and m_out.
Referenced by close(), declaration(), open(), openClose(), and openCloseContent().
void QhpXmlWriter::open | ( | char const * | elementName, |
char const *const * | attributes = 0 |
||
) |
Definition at line 52 of file qhpxmlwriter.cpp.
References indent(), m_indentLevel, newLine(), and openPure().
Referenced by Qhp::handlePrevSection(), and Qhp::initialize().
void QhpXmlWriter::openClose | ( | char const * | elementName, |
char const *const * | attributes = 0 |
||
) |
Definition at line 61 of file qhpxmlwriter.cpp.
References indent(), newLine(), and openClosePure().
Referenced by Qhp::addIndexItem(), and Qhp::handlePrevSection().
void QhpXmlWriter::openCloseContent | ( | char const * | elementName, |
char const * | content | ||
) |
Definition at line 69 of file qhpxmlwriter.cpp.
References closePure(), convertToXML(), indent(), m_out, newLine(), and openPure().
Referenced by Qhp::addFile(), and Qhp::initialize().
|
private |
Definition at line 147 of file qhpxmlwriter.cpp.
References openPureHelper().
Referenced by openClose().
|
private |
Definition at line 141 of file qhpxmlwriter.cpp.
References openPureHelper().
Referenced by open(), and openCloseContent().
|
private |
Definition at line 115 of file qhpxmlwriter.cpp.
References convertToXML(), and m_out.
Referenced by openClosePure(), and openPure().
void QhpXmlWriter::setCompressionEnabled | ( | bool | enabled | ) |
void QhpXmlWriter::setIndentLevel | ( | int | level | ) |
|
private |
Definition at line 56 of file qhpxmlwriter.h.
|
private |
Definition at line 60 of file qhpxmlwriter.h.
Referenced by newLine(), and setCompressionEnabled().
|
private |
Definition at line 59 of file qhpxmlwriter.h.
|
private |
Definition at line 58 of file qhpxmlwriter.h.
Referenced by close(), indent(), open(), and setIndentLevel().
|
private |
Definition at line 57 of file qhpxmlwriter.h.
Referenced by closePure(), declaration(), indent(), insert(), newLine(), openCloseContent(), and openPureHelper().