38 #ifndef MWAW_PICT_OLECONTAINER
39 # define MWAW_PICT_OLECONTAINER
44 # include <libwpd/libwpd.h>
63 virtual bool getBinary(WPXBinaryData &res, std::string &s)
const {
95 if (diff)
return diff;
99 if (diff)
return (diff < 0) ? -1 : 1;
100 long diffL = (long)
m_data.size() - (long) aPict.
m_data.size();
101 if (diffL)
return (diffL < 0) ? -1 : 1;
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
Definition: ACText.hxx:44
virtual int cmp(MWAWPict const &a) const
a virtual function used to obtain a strict order, must be redefined in the subs class ...
Definition: MWAWPictOLEContainer.hxx:93
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data ...
Definition: MWAWPict.hxx:79
bool m_empty
some picture can be valid but empty
Definition: MWAWPictOLEContainer.hxx:122
MWAWPictOLEContainer()
Definition: MWAWPictOLEContainer.hxx:109
virtual int cmp(MWAWPict const &a) const
a virtual function used to obtain a strict order, must be redefined in the subs class ...
Definition: MWAWPict.hxx:104
virtual bool valid() const
returns true if the picture is valid
Definition: MWAWPictOLEContainer.hxx:72
bool isEmpty() const
returns true if the picture is valid and has size 0 or contains no oleContainer
Definition: MWAWPictOLEContainer.hxx:77
Definition: MWAWPict.hxx:69
static ReadResult checkOrGet(MWAWInputStreamPtr input, int size, Box2f &box, MWAWPictOLEContainer **result=0L)
checks if size is >= 0
Definition: MWAWPictOLEContainer.cxx:45
virtual bool getBinary(WPXBinaryData &res, std::string &s) const
returns the final WPXBinary oleContainer
Definition: MWAWPictOLEContainer.hxx:63
Type
the different picture types:
Definition: MWAWPict.hxx:69
virtual Type getType() const
returns the picture type
Definition: MWAWPictOLEContainer.hxx:58
WPXBinaryData m_data
the oleContainer size (without the empty header of 512 characters)
Definition: MWAWPictOLEContainer.hxx:119
Definition: MWAWPict.hxx:79
MWAWPictOLEContainer(Box2f)
protected constructor: use check to construct a picture
Definition: MWAWPictOLEContainer.hxx:108
an abstract class which defines a simple container to store ole data
Definition: MWAWPictOLEContainer.hxx:54
Generic function used to define/store a picture.
Definition: MWAWPict.hxx:55