34 #ifndef MWAW_PROPERTY_HANDLER
35 # define MWAW_PROPERTY_HANDLER
44 class WPXPropertyList;
57 virtual void startElement(
const char *psName,
const WPXPropertyList &xPropList) = 0;
59 virtual void endElement(
const char *psName) = 0;
61 virtual void characters(WPXString
const &sCharacters) = 0;
64 bool checkData(WPXBinaryData
const &encoded);
66 bool readData(WPXBinaryData
const &encoded);
89 void startElement(
const char *psName,
const WPXPropertyList &xPropList);
93 void characters(std::string
const &sCharacters);
95 bool getData(WPXBinaryData &data);
void startElement(const char *psName, const WPXPropertyList &xPropList)
starts an element
Definition: MWAWPropertyHandler.cxx:57
virtual void startElement(const char *psName, const WPXPropertyList &xPropList)=0
starts an element
void characters(std::string const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:76
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.hxx:54
write in WPXBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:82
bool checkData(WPXBinaryData const &encoded)
checks a encoded WPXBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:284
void writeInteger(int val)
adds an integer value in f
Definition: MWAWPropertyHandler.cxx:93
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:51
bool getData(WPXBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:100
virtual void endElement(const char *psName)=0
ends an element
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:52
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:86
std::stringstream m_f
the streamfile
Definition: MWAWPropertyHandler.hxx:105
bool readData(WPXBinaryData const &encoded)
reads a encoded WPXBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:290
void endElement(const char *psName)
ends an element
Definition: MWAWPropertyHandler.cxx:70
a generic property handler
Definition: MWAWPropertyHandler.hxx:48