Generic class used to construct bitmap. More...
#include <MWAWPictBitmap.hxx>
Public Types | |
enum | SubType { BW, Indexed, Color } |
the picture subtype: blackwhite, indexed, color More... | |
Public Member Functions | |
virtual Type | getType () const |
returns the picture type | |
virtual SubType | getSubType () const =0 |
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 | |
Protected Member Functions | |
virtual bool | createFileData (WPXBinaryData &result) const =0 |
abstract function which creates the result file | |
MWAWPictBitmap (Vec2i const &sz) | |
protected constructor: use check to construct a picture |
Generic class used to construct bitmap.
MWAWPictBitmap::MWAWPictBitmap | ( | Vec2i const & | sz | ) | [inline, protected] |
protected constructor: use check to construct a picture
virtual int MWAWPictBitmap::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 MWAWPict.
Reimplemented in MWAWPictBitmapColor, MWAWPictBitmapIndexed, and MWAWPictBitmapBW.
virtual bool MWAWPictBitmap::createFileData | ( | WPXBinaryData & | result | ) | const [protected, pure virtual] |
abstract function which creates the result file
Implemented in MWAWPictBitmapColor, MWAWPictBitmapIndexed, and MWAWPictBitmapBW.
Referenced by getBinary().
virtual bool MWAWPictBitmap::getBinary | ( | WPXBinaryData & | res, |
std::string & | s | ||
) | const [inline, virtual] |
returns the final WPXBinary data
Reimplemented from MWAWPict.
Referenced by MWAWGraphicStyle::Pattern::getBinary().
virtual SubType MWAWPictBitmap::getSubType | ( | ) | const [pure virtual] |
returns the picture subtype
Implemented in MWAWPictBitmapColor, MWAWPictBitmapIndexed, and MWAWPictBitmapBW.
Referenced by cmp().
virtual Type MWAWPictBitmap::getType | ( | ) | const [inline, virtual] |
returns the picture type
Implements MWAWPict.
virtual bool MWAWPictBitmap::valid | ( | ) | const [inline, virtual] |
returns true if the picture is valid
Reimplemented in MWAWPictBitmapColor, MWAWPictBitmapIndexed, and MWAWPictBitmapBW.
Referenced by getBinary().