Class to read/store a Mac Pict1.0/2.0. More...
#include <MWAWPictMac.hxx>
Public Member Functions | |
virtual SubType | getSubType () const |
returns the picture subtype | |
virtual bool | getBinary (WPXBinaryData &res, std::string &s) const |
returns the final WPXBinary data | |
virtual bool | valid () const |
returns true if the picture is valid | |
virtual int | cmp (MWAWPict const &a) const |
a virtual function used to obtain a strict order, must be redefined in the subs class | |
Static Public Member Functions | |
static bool | convertPict1To2 (WPXBinaryData const &orig, WPXBinaryData &result) |
convert a Pict1.0 in Pict2.0, if possible | |
static void | parsePict1 (WPXBinaryData const &orig, std::string const &fname) |
tries to parse a Pict1.0 and dump the file Actually mainly used for debugging, but will be a first step, if we want convert such a Pict in a Odg picture | |
static void | parsePict2 (WPXBinaryData const &orig, std::string const &fname) |
tries to parse a Pict2. | |
Protected Member Functions | |
MWAWPictMac (Box2f box) | |
protected constructor: use check to construct a picture | |
Static Protected Member Functions | |
static ReadResult | checkOrGet (MWAWInputStreamPtr input, int size, Box2f &box, MWAWPictData **result=0L) |
checks if the data pointed by input and of given size is a pict 1.0, 2.0 or 2.1 | |
Protected Attributes | |
int | m_version |
the picture version | |
int | m_subVersion |
the picture subversion | |
Friends | |
class | MWAWPictData |
Class to read/store a Mac Pict1.0/2.0.
MWAWPictMac::MWAWPictMac | ( | Box2f | box | ) | [inline, protected] |
protected constructor: use check to construct a picture
MWAWPictMac::ReadResult MWAWPictMac::checkOrGet | ( | MWAWInputStreamPtr | input, |
int | size, | ||
Box2f & | box, | ||
MWAWPictData ** | result = 0L |
||
) | [static, protected] |
checks if the data pointed by input and of given size is a pict 1.0, 2.0 or 2.1
Reimplemented from MWAWPictData.
Referenced by MWAWPictData::checkOrGet().
virtual int MWAWPictMac::cmp | ( | MWAWPict const & | a | ) | const [inline, virtual] |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented from MWAWPictData.
bool MWAWPictMac::convertPict1To2 | ( | WPXBinaryData const & | orig, |
WPXBinaryData & | result | ||
) | [static] |
convert a Pict1.0 in Pict2.0, if possible
Referenced by getBinary().
virtual bool MWAWPictMac::getBinary | ( | WPXBinaryData & | res, |
std::string & | s | ||
) | const [inline, virtual] |
returns the final WPXBinary data
Reimplemented from MWAWPictData.
virtual SubType MWAWPictMac::getSubType | ( | ) | const [inline, virtual] |
returns the picture subtype
Implements MWAWPictData.
void MWAWPictMac::parsePict1 | ( | WPXBinaryData const & | orig, |
std::string const & | fname | ||
) | [static] |
tries to parse a Pict1.0 and dump the file Actually mainly used for debugging, but will be a first step, if we want convert such a Pict in a Odg picture
Referenced by convertPict1To2().
void MWAWPictMac::parsePict2 | ( | WPXBinaryData const & | orig, |
std::string const & | fname | ||
) | [static] |
tries to parse a Pict2.
and dump the file Actually mainly used for debugging, but will be a first step, if we want convert such a Pict in a Odg picture
virtual bool MWAWPictMac::valid | ( | ) | const [inline, virtual] |
friend class MWAWPictData [friend] |
int MWAWPictMac::m_subVersion [protected] |
the picture subversion
Referenced by checkOrGet(), and cmp().
int MWAWPictMac::m_version [protected] |
the picture version
Referenced by checkOrGet(), cmp(), getBinary(), and valid().