#include <ie_exp_XML.h>
Public Member Functions | |
IE_Exp_XML (PD_Document *pDocument) | |
virtual | ~IE_Exp_XML () |
void | setupFile (bool compressed) |
void | closeHandle () |
void | setDocType (char const *doctype) |
void | startElement (char const *name) |
void | endElement () |
void | addBool (char const *id, bool value) |
void | addComment (char const *comment) |
void | addFloat (char const *id, double value, int precision=-1) |
void | addInt (char const *id, int value) |
void | addLint (char const *id, long value) |
void | addLuint (char const *id, unsigned long value) |
void | addString (char const *id, char const *value) |
void | addString (char const *id, std::string const &value) |
void | addString (char const *id, UT_UCSChar const *data, int length) |
void | addStringUnchecked (char const *id, char const *value) |
void | addStringUnchecked (char const *id, std::string const &value) |
void | addUint (char const *id, unsigned value) |
void | setPrettyPrint (bool pretty) |
Private Attributes | |
GsfOutput * | m_zip |
GsfXMLOut * | m_xml |
IE_Exp_XML::IE_Exp_XML | ( | PD_Document * | pDocument | ) |
IE_Exp_XML::~IE_Exp_XML | ( | ) | [virtual] |
void IE_Exp_XML::addBool | ( | char const * | id, | |
bool | value | |||
) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_handleHistory(), and s_AbiWord_1_Listener::_handleRevisions().
void IE_Exp_XML::addComment | ( | char const * | comment | ) |
References m_zip.
Referenced by s_AbiWord_1_Listener::s_AbiWord_1_Listener().
void IE_Exp_XML::addFloat | ( | char const * | id, | |
double | value, | |||
int | precision = -1 | |||
) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_handlePageSize().
void IE_Exp_XML::addInt | ( | char const * | id, | |
int | value | |||
) |
void IE_Exp_XML::addLint | ( | char const * | id, | |
long | value | |||
) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_handleRevisions().
void IE_Exp_XML::addLuint | ( | char const * | id, | |
unsigned long | value | |||
) |
References m_xml.
void IE_Exp_XML::addString | ( | char const * | id, | |
char const * | value | |||
) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_closeBlock(), s_AbiWord_1_Listener::_handleAuthors(), s_AbiWord_1_Listener::_handleDataItems(), s_AbiWord_1_Listener::_handleHistory(), s_AbiWord_1_Listener::_handleLists(), s_AbiWord_1_Listener::_handleMetaData(), s_AbiWord_1_Listener::_handlePageSize(), s_AbiWord_1_Listener::_handleRDF(), s_AbiWord_1_Listener::_handleRevisions(), s_AbiWord_1_Listener::_openTag(), s_AbiWord_1_Listener::populate(), and s_AbiWord_1_Listener::s_AbiWord_1_Listener().
void IE_Exp_XML::addString | ( | char const * | id, | |
std::string const & | value | |||
) |
References m_xml.
void IE_Exp_XML::addString | ( | char const * | id, | |
UT_UCSChar const * | data, | |||
int | length | |||
) |
References UT_UTF8String::appendUCS4(), m_xml, UT_UTF8String::reserve(), UCS_FF, UCS_LF, UCS_TAB, UCS_VTAB, UT_return_if_fail, and UT_UTF8String::utf8_str().
void IE_Exp_XML::addStringUnchecked | ( | char const * | id, | |
std::string const & | value | |||
) |
References m_xml.
void IE_Exp_XML::addStringUnchecked | ( | char const * | id, | |
char const * | value | |||
) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_handleDataItems().
void IE_Exp_XML::addUint | ( | char const * | id, | |
unsigned | value | |||
) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_handleRevisions().
void IE_Exp_XML::closeHandle | ( | ) |
Referenced by IE_Exp_AbiWord_1::_writeDocument().
void IE_Exp_XML::endElement | ( | void | ) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_closeAnnotation(), s_AbiWord_1_Listener::_closeBlock(), s_AbiWord_1_Listener::_closeCell(), s_AbiWord_1_Listener::_closeField(), s_AbiWord_1_Listener::_closeHyperlink(), s_AbiWord_1_Listener::_closeRDFAnchor(), s_AbiWord_1_Listener::_closeSection(), s_AbiWord_1_Listener::_closeTable(), s_AbiWord_1_Listener::_closeTag(), s_AbiWord_1_Listener::_handleAuthors(), s_AbiWord_1_Listener::_handleDataItems(), s_AbiWord_1_Listener::_handleHistory(), s_AbiWord_1_Listener::_handleLists(), s_AbiWord_1_Listener::_handleMetaData(), s_AbiWord_1_Listener::_handlePageSize(), s_AbiWord_1_Listener::_handleRDF(), s_AbiWord_1_Listener::_handleRevisions(), s_AbiWord_1_Listener::_handleStyles(), s_AbiWord_1_Listener::_openTag(), s_AbiWord_1_Listener::populateStrux(), and s_AbiWord_1_Listener::~s_AbiWord_1_Listener().
void IE_Exp_XML::setDocType | ( | char const * | doctype | ) |
References m_xml.
Referenced by s_AbiWord_1_Listener::s_AbiWord_1_Listener().
void IE_Exp_XML::setPrettyPrint | ( | bool | pretty | ) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_closeBlock(), s_AbiWord_1_Listener::_handleDataItems(), and s_AbiWord_1_Listener::populateStrux().
void IE_Exp_XML::setupFile | ( | bool | compressed | ) |
References IE_Exp::getFp(), m_xml, m_zip, and UT_ASSERT_HARMLESS.
Referenced by IE_Exp_AbiWord_1::_writeDocument().
void IE_Exp_XML::startElement | ( | char const * | name | ) |
References m_xml.
Referenced by s_AbiWord_1_Listener::_handleAuthors(), s_AbiWord_1_Listener::_handleDataItems(), s_AbiWord_1_Listener::_handleHistory(), s_AbiWord_1_Listener::_handleLists(), s_AbiWord_1_Listener::_handleMetaData(), s_AbiWord_1_Listener::_handlePageSize(), s_AbiWord_1_Listener::_handleRDF(), s_AbiWord_1_Listener::_handleRevisions(), s_AbiWord_1_Listener::_handleStyles(), and s_AbiWord_1_Listener::_openTag().
GsfXMLOut* IE_Exp_XML::m_xml [private] |
Referenced by addBool(), addFloat(), addInt(), addLint(), addLuint(), addString(), addStringUnchecked(), addUint(), closeHandle(), endElement(), setDocType(), setPrettyPrint(), setupFile(), and startElement().
GsfOutput* IE_Exp_XML::m_zip [private] |
Referenced by addComment(), closeHandle(), and setupFile().