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 (librevenge::RVNGBinaryData &res, std::string &s) const |
| returns the final librevenge::RVNGBinary 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 (librevenge::RVNGBinaryData &result) const =0 |
| abstract function which creates the result file | |
| MWAWPictBitmap (MWAWVec2i const &sz) | |
| protected constructor: use check to construct a picture | |
Generic class used to construct bitmap.
| MWAWPictBitmap::MWAWPictBitmap | ( | MWAWVec2i 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 | ( | librevenge::RVNGBinaryData & | 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 | ( | librevenge::RVNGBinaryData & | res, |
| std::string & | s | ||
| ) | const [inline, virtual] |
returns the final librevenge::RVNGBinary data
Reimplemented from MWAWPict.
Referenced by MWAWGraphicStyle::Pattern::getBinary(), MacDrawProStyleManager::readColorPatterns(), MacDrawParser::sendBitmap(), MacDraftParser::sendBitmap(), and RagTimeParser::sendBitmap().
| 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().