34 #ifndef MWAW_PROPERTY_HANDLER
35 # define MWAW_PROPERTY_HANDLER
44 class WPXPropertyList;
45 class WPXPropertyListVector;
58 virtual void startElement(
const char *psName,
const WPXPropertyList &xPropList) = 0;
60 virtual void startElement(
const char *psName,
const WPXPropertyList &xPropList,
61 const WPXPropertyListVector &vect);
63 virtual void startElement(
const char *psName,
const WPXPropertyList &xPropList,
64 const WPXBinaryData &data);
66 virtual void endElement(
const char *psName) = 0;
70 virtual void characters(WPXString
const &sCharacters) = 0;
73 bool checkData(WPXBinaryData
const &encoded);
75 bool readData(WPXBinaryData
const &encoded);
106 void startElement(
const char *psName,
const WPXPropertyList &xPropList);
108 void startElement(
const char *psName,
const WPXPropertyList &xPropList,
109 const WPXPropertyListVector &vect);
111 void startElement(
const char *psName,
const WPXPropertyList &xPropList,
112 const WPXBinaryData &data);
118 void characters(WPXString
const &sCharacters);
120 bool getData(WPXBinaryData &data);
132 void writeProperty(
const char *key,
const WPXProperty &prop);
void startElement(const char *psName, const WPXPropertyList &xPropList)
starts an element
Definition: MWAWPropertyHandler.cxx:61
virtual void startElement(const char *psName, const WPXPropertyList &xPropList)=0
starts an element
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.hxx:55
write in WPXBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:99
virtual void insertElement(const char *psName)
inserts a simple element ( note: maybe used one day to code insertEOL, insertTab...)
Definition: MWAWPropertyHandler.cxx:528
bool checkData(WPXBinaryData const &encoded)
checks a encoded WPXBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:504
void writeInteger(int val)
adds an integer value in f
Definition: MWAWPropertyHandler.hxx:124
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:55
bool getData(WPXBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:148
virtual void endElement(const char *psName)=0
ends an element
void writePropertyList(const WPXPropertyList &prop)
adds a property list: int #prop, #prop*WPXProperty
Definition: MWAWPropertyHandler.cxx:138
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:53
virtual void characters(WPXString const &sCharacters)=0
writes a list of characters
void writeString(const char *name)
adds a string: size and string
Definition: MWAWPropertyHandler.cxx:114
std::stringstream m_f
the streamfile
Definition: MWAWPropertyHandler.hxx:137
bool readData(WPXBinaryData const &encoded)
reads a encoded WPXBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:510
void characters(WPXString const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:107
void writeProperty(const char *key, const WPXProperty &prop)
adds a property: a string key, a string corresponding to value
Definition: MWAWPropertyHandler.cxx:128
void endElement(const char *psName)
ends an element
Definition: MWAWPropertyHandler.cxx:101
a generic property handler
Definition: MWAWPropertyHandler.hxx:49
void writeLong(long val)
adds a long value if f
Definition: MWAWPropertyHandler.cxx:121
void insertElement(const char *psName)
insert a simple element
Definition: MWAWPropertyHandler.cxx:95