write in WPXBinaryData a list of tags/and properties More...
#include <MWAWPropertyHandler.hxx>
Public Member Functions | |
MWAWPropertyHandlerEncoder () | |
constructor | |
void | startElement (const char *psName, const WPXPropertyList &xPropList) |
starts an element | |
void | startElement (const char *psName, const WPXPropertyList &xPropList, const WPXPropertyListVector &vect) |
starts an element given a property list vector | |
void | startElement (const char *psName, const WPXPropertyList &xPropList, const WPXBinaryData &data) |
starts an element given a binary data | |
void | insertElement (const char *psName) |
insert a simple element | |
void | endElement (const char *psName) |
ends an element | |
void | characters (WPXString const &sCharacters) |
writes a list of characters | |
bool | getData (WPXBinaryData &data) |
retrieves the data | |
Protected Member Functions | |
void | writeInteger (int val) |
adds an integer value in f | |
void | writeLong (long val) |
adds a long value if f | |
void | writeString (const char *name) |
adds a string: size and string | |
void | writeProperty (const char *key, const WPXProperty &prop) |
adds a property: a string key, a string corresponding to value | |
void | writePropertyList (const WPXPropertyList &prop) |
adds a property list: int #prop, #prop*WPXProperty | |
Protected Attributes | |
std::stringstream | m_f |
the streamfile |
write in WPXBinaryData a list of tags/and properties
In order to be read by writerperfect, we must code document consisting in tag and propertyList in an intermediar format:
constructor
void MWAWPropertyHandlerEncoder::characters | ( | WPXString const & | sCharacters | ) |
writes a list of characters
void MWAWPropertyHandlerEncoder::endElement | ( | const char * | psName | ) |
ends an element
bool MWAWPropertyHandlerEncoder::getData | ( | WPXBinaryData & | data | ) |
retrieves the data
void MWAWPropertyHandlerEncoder::insertElement | ( | const char * | psName | ) |
insert a simple element
void MWAWPropertyHandlerEncoder::startElement | ( | const char * | psName, |
const WPXPropertyList & | xPropList | ||
) |
starts an element
void MWAWPropertyHandlerEncoder::startElement | ( | const char * | psName, |
const WPXPropertyList & | xPropList, | ||
const WPXPropertyListVector & | vect | ||
) |
starts an element given a property list vector
void MWAWPropertyHandlerEncoder::startElement | ( | const char * | psName, |
const WPXPropertyList & | xPropList, | ||
const WPXBinaryData & | data | ||
) |
starts an element given a binary data
void MWAWPropertyHandlerEncoder::writeInteger | ( | int | val | ) | [inline, protected] |
adds an integer value in f
Referenced by writePropertyList(), and writeString().
void MWAWPropertyHandlerEncoder::writeLong | ( | long | val | ) | [protected] |
adds a long value if f
Referenced by writeInteger().
void MWAWPropertyHandlerEncoder::writeProperty | ( | const char * | key, |
const WPXProperty & | prop | ||
) | [protected] |
adds a property: a string key, a string corresponding to value
Referenced by writePropertyList().
void MWAWPropertyHandlerEncoder::writePropertyList | ( | const WPXPropertyList & | prop | ) | [protected] |
adds a property list: int #prop, #prop*WPXProperty
void MWAWPropertyHandlerEncoder::writeString | ( | const char * | name | ) | [protected] |
adds a string: size and string
Referenced by characters(), endElement(), insertElement(), and writeProperty().
std::stringstream MWAWPropertyHandlerEncoder::m_f [protected] |
the streamfile
Referenced by characters(), endElement(), getData(), insertElement(), writeLong(), and writeString().