Go to the documentation of this file.
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 readPropertyList(librevenge::RVNGInputStream &input, librevenge::RVNGPropertyList &lists)
low level: reads a property list: number of properties followed by list of properties
Definition: MWAWPropertyHandler.cxx:266
virtual void characters(librevenge::RVNGString const &sCharacters)=0
writes a list of characters
static bool readLong(librevenge::RVNGInputStream &input, long &val)
low level: reads an long value
Definition: MWAWPropertyHandler.cxx:345
bool readPropertyListVector(librevenge::RVNGInputStream &input, librevenge::RVNGPropertyListVector &vect)
low level: reads a property vector: number of properties list followed by list of properties list
Definition: MWAWPropertyHandler.cxx:243
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
bool readCharacters(librevenge::RVNGInputStream &input)
reads a set of characters
Definition: MWAWPropertyHandler.cxx:229
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:55
bool readString(librevenge::RVNGInputStream &input, librevenge::RVNGString &s)
low level: reads a string : size and string
Definition: MWAWPropertyHandler.cxx:326
virtual void insertElement(const char *psName, const librevenge::RVNGPropertyList &xPropList)=0
inserts an element ( given a property list )
MWAWPropertyHandlerDecoder & operator=(MWAWPropertyHandlerDecoder const &)
void writePropertyListVector(const librevenge::RVNGPropertyListVector &vect)
adds a property vector: a int: #vect followed by vect[0], vect[1], ...
Definition: MWAWPropertyHandler.cxx:128
MWAWPropertyHandlerDecoder(MWAWPropertyHandler *hdl=0L)
constructor given a MWAWPropertyHandler
Definition: MWAWPropertyHandler.cxx:152
virtual void insertElement(const char *psName)=0
inserts a simple element
bool readData(librevenge::RVNGBinaryData const &encoded)
tries to read the data
Definition: MWAWPropertyHandler.cxx:155
bool readInsertElement(librevenge::RVNGInputStream &input)
reads an simple element
Definition: MWAWPropertyHandler.cxx:194
void characters(librevenge::RVNGString const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:78
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
void writeString(const librevenge::RVNGString &name)
adds a string: size and string
Definition: MWAWPropertyHandler.cxx:85
a generic property handler
Definition: MWAWPropertyHandler.hxx:43
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.cxx:60
std::stringstream m_f
the streamfile
Definition: MWAWPropertyHandler.hxx:109
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 insertElement(const char *psName)
inserts an element
Definition: MWAWPropertyHandler.cxx:64
Definition: MWAWPropertyHandler.cxx:149
bool checkData(librevenge::RVNGBinaryData const &encoded)
checks a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:370
MWAWPropertyHandler * m_handler
the streamfile
Definition: MWAWPropertyHandler.cxx:362
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:82
bool readInsertElementWithList(librevenge::RVNGInputStream &input)
reads an element with a property list
Definition: MWAWPropertyHandler.cxx:208
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:46
libmwaw API: main libmwaw interface header
bool readProperty(librevenge::RVNGInputStream &input, librevenge::RVNGPropertyList &list)
low level: reads a property and its value, adds it to list
Definition: MWAWPropertyHandler.cxx:308
void writeLong(long val)
adds a long value if f
Definition: MWAWPropertyHandler.cxx:92
MWAWPropertyHandlerDecoder(MWAWPropertyHandlerDecoder const &orig)
bool getData(librevenge::RVNGBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:135
Generated on Wed Jun 17 2020 06:30:12 for libmwaw by
doxygen 1.8.18