44# include <librevenge/librevenge.h>
64 librevenge::RVNGBinaryData res;
66 librevenge::RVNGBinaryData dataV2;
90 if (diff)
return diff;
91 auto const &aPict =
static_cast<MWAWPictMac const &
>(a);
94 if (diff)
return (diff < 0) ? -1 : 1;
96 if (diff)
return (diff < 0) ? -1 : 1;
102 static bool convertPict1To2(librevenge::RVNGBinaryData
const &orig, librevenge::RVNGBinaryData &result);
an abstract class which defines basic formated picture ( AppleŠ Pict, DB3, ...)
Definition: MWAWPictData.hxx:53
static bool createFileData(librevenge::RVNGBinaryData const &orig, librevenge::RVNGBinaryData &result)
a file pict can be created from the data pict by adding a header with size 512, this function do this...
Definition: MWAWPictData.cxx:49
int cmp(MWAWPict const &a) const override
a virtual function used to obtain a strict order, must be redefined in the subs class
Definition: MWAWPictData.hxx:122
SubType
the picture subtype
Definition: MWAWPictData.hxx:56
@ PictMac
Definition: MWAWPictData.hxx:56
librevenge::RVNGBinaryData m_data
the data size (without the empty header of 512 characters)
Definition: MWAWPictData.hxx:176
bool isEmpty() const
returns true if the picture is valid and has size 0 or contains no data
Definition: MWAWPictData.hxx:91
Class to read/store a Mac Pict1.0/2.0.
Definition: MWAWPictMac.hxx:51
int cmp(MWAWPict const &a) const final
a virtual function used to obtain a strict order, must be redefined in the subs class
Definition: MWAWPictMac.hxx:87
bool valid() const final
returns true if the picture is valid
Definition: MWAWPictMac.hxx:80
SubType getSubType() const final
returns the picture subtype
Definition: MWAWPictMac.hxx:56
int m_subVersion
the picture subversion
Definition: MWAWPictMac.hxx:127
~MWAWPictMac() final
destructor
Definition: MWAWPictMac.cxx:54
int m_version
the picture version
Definition: MWAWPictMac.hxx:125
MWAWPictMac(MWAWBox2f box)
protected constructor: use check to construct a picture
Definition: MWAWPictMac.hxx:106
static bool convertPict1To2(librevenge::RVNGBinaryData const &orig, librevenge::RVNGBinaryData &result)
convert a Pict1.0 in Pict2.0, if possible
Definition: MWAWPictMac.cxx:1254
bool getBinary(MWAWEmbeddedObject &picture) const final
returns the final picture
Definition: MWAWPictMac.hxx:61
static ReadResult checkOrGet(MWAWInputStreamPtr input, int size, MWAWBox2f &box, MWAWPictData **result=nullptr)
checks if the data pointed by input and of given size is a pict 1.0, 2.0 or 2.1
Definition: MWAWPictMac.cxx:59
Generic function used to define/store a picture.
Definition: MWAWPict.hxx:52
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
void extendBDBox(float val)
udaptes the bdbox, by extended it by (val-previousVal)
Definition: MWAWPict.hxx:137
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467