34#ifndef MWAW_PROPERTY_HANDLER
35# define MWAW_PROPERTY_HANDLER
55 virtual void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList) = 0;
57 virtual void characters(librevenge::RVNGString
const &sCharacters) = 0;
60 bool checkData(librevenge::RVNGBinaryData
const &encoded);
62 bool readData(librevenge::RVNGBinaryData
const &encoded);
92 void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList);
94 void characters(librevenge::RVNGString
const &sCharacters);
96 bool getData(librevenge::RVNGBinaryData &data);
102 void writeString(
const librevenge::RVNGString &name);
104 void writeProperty(
const char *key,
const librevenge::RVNGProperty &prop);
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:84
void writeString(const librevenge::RVNGString &name)
adds a string: size and string
Definition: MWAWPropertyHandler.cxx:85
void writeLong(long val)
adds a long value if f
Definition: MWAWPropertyHandler.cxx:92
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:55
void writePropertyList(const librevenge::RVNGPropertyList &prop)
adds a property list: int #prop followed by the different properties
Definition: MWAWPropertyHandler.cxx:109
std::stringstream m_f
the streamfile
Definition: MWAWPropertyHandler.hxx:111
void insertElement(const char *psName)
inserts an element
Definition: MWAWPropertyHandler.cxx:64
void writePropertyListVector(const librevenge::RVNGPropertyListVector &vect)
adds a property vector: a int: #vect followed by vect[0], vect[1], ...
Definition: MWAWPropertyHandler.cxx:128
void characters(librevenge::RVNGString const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:78
bool getData(librevenge::RVNGBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:135
void writeProperty(const char *key, const librevenge::RVNGProperty &prop)
adds a property: a string key, a string corresponding to value
Definition: MWAWPropertyHandler.cxx:99
a generic property handler
Definition: MWAWPropertyHandler.hxx:43
virtual void insertElement(const char *psName, const librevenge::RVNGPropertyList &xPropList)=0
inserts an element ( given a property list )
bool readData(librevenge::RVNGBinaryData const &encoded)
reads a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:379
virtual void characters(librevenge::RVNGString const &sCharacters)=0
writes a list of characters
bool checkData(librevenge::RVNGBinaryData const &encoded)
checks a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:373
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:46
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.cxx:60
virtual void insertElement(const char *psName)=0
inserts a simple element