write in WPXBinaryData a list of tags/and properties More...
#include <MWAWPropertyHandler.hxx>
Public Member Functions | |
MWAWPropertyHandlerEncoder () | |
constructor More... | |
void | startElement (const char *psName, const WPXPropertyList &xPropList) |
starts an element More... | |
void | startElement (const char *psName, const WPXPropertyList &xPropList, const WPXPropertyListVector &vect) |
starts an element given a property list vector More... | |
void | startElement (const char *psName, const WPXPropertyList &xPropList, const WPXBinaryData &data) |
starts an element given a binary data More... | |
void | insertElement (const char *psName) |
insert a simple element More... | |
void | endElement (const char *psName) |
ends an element More... | |
void | characters (WPXString const &sCharacters) |
writes a list of characters More... | |
bool | getData (WPXBinaryData &data) |
retrieves the data More... | |
Protected Member Functions | |
void | writeInteger (int val) |
adds an integer value in f More... | |
void | writeLong (long val) |
adds a long value if f More... | |
void | writeString (const char *name) |
adds a string: size and string More... | |
void | writeProperty (const char *key, const WPXProperty &prop) |
adds a property: a string key, a string corresponding to value More... | |
void | writePropertyList (const WPXPropertyList &prop) |
adds a property list: int #prop, #prop*WPXProperty More... | |
Protected Attributes | |
std::stringstream | m_f |
the streamfile More... | |
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:
MWAWPropertyHandlerEncoder::MWAWPropertyHandlerEncoder | ( | ) |
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
|
inlineprotected |
adds an integer value in f
Referenced by writePropertyList(), and writeString().
|
protected |
adds a long value if f
Referenced by writeInteger().
|
protected |
adds a property: a string key, a string corresponding to value
Referenced by writePropertyList().
|
protected |
adds a property list: int #prop, #prop*WPXProperty
|
protected |
adds a string: size and string
Referenced by characters(), endElement(), insertElement(), and writeProperty().
|
protected |
the streamfile
Referenced by characters(), endElement(), getData(), insertElement(), writeLong(), and writeString().