34 #ifndef MWAW_PROPERTY_HANDLER
35 # define MWAW_PROPERTY_HANDLER
54 virtual void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList) = 0;
56 virtual void characters(librevenge::RVNGString
const &sCharacters) = 0;
59 bool checkData(librevenge::RVNGBinaryData
const &encoded);
61 bool readData(librevenge::RVNGBinaryData
const &encoded);
91 void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList);
93 void characters(librevenge::RVNGString
const &sCharacters);
95 bool getData(librevenge::RVNGBinaryData &data);
101 void writeString(
const librevenge::RVNGString &name);
103 void writeProperty(
const char *key,
const librevenge::RVNGProperty &prop);
bool checkData(librevenge::RVNGBinaryData const &encoded)
checks a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder ...
Definition: MWAWPropertyHandler.cxx:366
void writeProperty(const char *key, const librevenge::RVNGProperty &prop)
adds a property: a string key, a string corresponding to value
Definition: MWAWPropertyHandler.cxx:95
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.hxx:49
void writePropertyListVector(const librevenge::RVNGPropertyListVector &vect)
adds a property vector: a int: #vect followed by vect[0], vect[1], ...
Definition: MWAWPropertyHandler.cxx:124
void writeString(const librevenge::RVNGString &name)
adds a string: size and string
Definition: MWAWPropertyHandler.cxx:81
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:82
virtual void characters(librevenge::RVNGString const &sCharacters)=0
writes a list of characters
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:55
virtual void insertElement(const char *psName)=0
inserts a simple element
bool getData(librevenge::RVNGBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:131
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:47
bool readData(librevenge::RVNGBinaryData const &encoded)
reads a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:372
void writePropertyList(const librevenge::RVNGPropertyList &prop)
adds a property list: int #prop followed by the different properties
Definition: MWAWPropertyHandler.cxx:105
std::stringstream m_f
the streamfile
Definition: MWAWPropertyHandler.hxx:110
a generic property handler
Definition: MWAWPropertyHandler.hxx:43
void characters(librevenge::RVNGString const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:74
void writeLong(long val)
adds a long value if f
Definition: MWAWPropertyHandler.cxx:88
void insertElement(const char *psName)
inserts an element
Definition: MWAWPropertyHandler.cxx:60