34 #ifndef MWAW_PROPERTY_HANDLER
35 # define MWAW_PROPERTY_HANDLER
53 virtual void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList) = 0;
55 virtual void characters(librevenge::RVNGString
const &sCharacters) = 0;
58 bool checkData(librevenge::RVNGBinaryData
const &encoded);
60 bool readData(librevenge::RVNGBinaryData
const &encoded);
90 void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList);
92 void characters(librevenge::RVNGString
const &sCharacters);
94 bool getData(librevenge::RVNGBinaryData &data);
100 void writeString(
const librevenge::RVNGString &name);
102 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:370
void writeProperty(const char *key, const librevenge::RVNGProperty &prop)
adds a property: a string key, a string corresponding to value
Definition: MWAWPropertyHandler.cxx:99
void writePropertyListVector(const librevenge::RVNGPropertyListVector &vect)
adds a property vector: a int: #vect followed by vect[0], vect[1], ...
Definition: MWAWPropertyHandler.cxx:128
void writeString(const librevenge::RVNGString &name)
adds a string: size and string
Definition: MWAWPropertyHandler.cxx:85
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:81
virtual void characters(librevenge::RVNGString const &sCharacters)=0
writes a list of characters
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:55
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.cxx:60
virtual void insertElement(const char *psName)=0
inserts a simple element
bool getData(librevenge::RVNGBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:135
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:46
bool readData(librevenge::RVNGBinaryData const &encoded)
reads a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:376
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:109
a generic property handler
Definition: MWAWPropertyHandler.hxx:42
void characters(librevenge::RVNGString const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:78
void writeLong(long val)
adds a long value if f
Definition: MWAWPropertyHandler.cxx:92
void insertElement(const char *psName)
inserts an element
Definition: MWAWPropertyHandler.cxx:64