#include <MSPUBParser2k.h>
Public Member Functions | |
| MSPUBParser2k (librevenge::RVNGInputStream *input, MSPUBCollector *collector) | |
| virtual bool | parse () |
| virtual | ~MSPUBParser2k () |
Protected Member Functions | |
| bool | parse2kShapeChunk (const ContentChunkReference &chunk, librevenge::RVNGInputStream *input, boost::optional< unsigned > pageSeqNum=boost::optional< unsigned >(), bool topLevelCall=true) |
| void | parseShapeLine (librevenge::RVNGInputStream *input, bool isRectangle, unsigned offset, unsigned seqNum) |
| void | parseShapeType (librevenge::RVNGInputStream *input, unsigned seqNum, unsigned chunkOffset, bool &isGroup, bool &isLine, bool &isImage, bool &isRectangle, unsigned &flagsOffset) |
| void | parseShapeRotation (librevenge::RVNGInputStream *input, bool isGroup, bool isLine, unsigned seqNum, unsigned chunkOffset) |
| void | parseShapeFlips (librevenge::RVNGInputStream *input, unsigned flagsOffset, unsigned seqNum, unsigned chunkOffset) |
| void | parseShapeCoordinates (librevenge::RVNGInputStream *input, unsigned seqNum, unsigned chunkOffset) |
| bool | parseGroup (librevenge::RVNGInputStream *input, unsigned seqNum, unsigned page) |
| void | assignShapeImgIndex (unsigned seqNum) |
| void | parseShapeFill (librevenge::RVNGInputStream *input, unsigned seqNum, unsigned chunkOffset) |
| bool | parseContents (librevenge::RVNGInputStream *input) |
| virtual bool | parseDocument (librevenge::RVNGInputStream *input) |
| virtual unsigned | getColorIndexByQuillEntry (unsigned entry) |
| virtual int | translateCoordinateIfNecessary (int coordinate) const |
| virtual unsigned | getFirstLineOffset () const |
| virtual unsigned | getSecondLineOffset () const |
| virtual unsigned | getShapeFillTypeOffset () const |
| virtual unsigned | getShapeFillColorOffset () const |
| virtual unsigned short | getTextMarker () const |
| virtual unsigned | getTextIdOffset () const |
| virtual void | parseContentsTextIfNecessary (librevenge::RVNGInputStream *input) |
Static Protected Member Functions | |
| static Color | getColorBy2kIndex (unsigned char index) |
| static Color | getColorBy2kHex (unsigned hex) |
| static unsigned | translate2kColorReference (unsigned ref2k) |
| static PageType | getPageTypeBySeqNum (unsigned seqNum) |
Static Private Member Functions | |
| static ShapeType | getShapeType (unsigned char shapeSpecifier) |
Private Attributes | |
| std::vector< unsigned > | m_imageDataChunkIndices |
| std::vector< unsigned > | m_quillColorEntries |
| std::map< unsigned, std::vector< unsigned > > | m_chunkChildIndicesById |
| libmspub::MSPUBParser2k::MSPUBParser2k | ( | librevenge::RVNGInputStream * | input, |
| MSPUBCollector * | collector | ||
| ) | [explicit] |
| libmspub::MSPUBParser2k::~MSPUBParser2k | ( | ) | [virtual] |
| void libmspub::MSPUBParser2k::assignShapeImgIndex | ( | unsigned | seqNum | ) | [protected] |
Referenced by parse2kShapeChunk().
| Color libmspub::MSPUBParser2k::getColorBy2kHex | ( | unsigned | hex | ) | [static, protected] |
Referenced by parseContents(), and translate2kColorReference().
| Color libmspub::MSPUBParser2k::getColorBy2kIndex | ( | unsigned char | index | ) | [static, protected] |
Referenced by getColorBy2kHex().
| unsigned libmspub::MSPUBParser2k::getColorIndexByQuillEntry | ( | unsigned | entry | ) | [protected, virtual] |
Reimplemented from libmspub::MSPUBParser.
Referenced by libmspub::MSPUBParser97::readCharacterStyle().
| unsigned libmspub::MSPUBParser2k::getFirstLineOffset | ( | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeLine().
| PageType libmspub::MSPUBParser2k::getPageTypeBySeqNum | ( | unsigned | seqNum | ) | [static, protected] |
Reimplemented from libmspub::MSPUBParser.
Referenced by parse2kShapeChunk().
| unsigned libmspub::MSPUBParser2k::getSecondLineOffset | ( | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeLine().
| unsigned libmspub::MSPUBParser2k::getShapeFillColorOffset | ( | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeFill().
| unsigned libmspub::MSPUBParser2k::getShapeFillTypeOffset | ( | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeFill().
| ShapeType libmspub::MSPUBParser2k::getShapeType | ( | unsigned char | shapeSpecifier | ) | [static, private] |
Referenced by parseShapeType().
| unsigned libmspub::MSPUBParser2k::getTextIdOffset | ( | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeType().
| unsigned short libmspub::MSPUBParser2k::getTextMarker | ( | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeType().
| bool libmspub::MSPUBParser2k::parse | ( | ) | [virtual] |
Reimplemented from libmspub::MSPUBParser.
Reimplemented in libmspub::MSPUBParser97.
| bool libmspub::MSPUBParser2k::parse2kShapeChunk | ( | const ContentChunkReference & | chunk, |
| librevenge::RVNGInputStream * | input, | ||
| boost::optional< unsigned > | pageSeqNum = boost::optional<unsigned>(), |
||
| bool | topLevelCall = true |
||
| ) | [protected] |
Referenced by parseContents(), and parseGroup().
| bool libmspub::MSPUBParser2k::parseContents | ( | librevenge::RVNGInputStream * | input | ) | [protected, virtual] |
Reimplemented from libmspub::MSPUBParser.
Referenced by libmspub::MSPUBParser97::parse(), and parse().
| void libmspub::MSPUBParser2k::parseContentsTextIfNecessary | ( | librevenge::RVNGInputStream * | input | ) | [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseContents().
| bool libmspub::MSPUBParser2k::parseDocument | ( | librevenge::RVNGInputStream * | input | ) | [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseContents().
| bool libmspub::MSPUBParser2k::parseGroup | ( | librevenge::RVNGInputStream * | input, |
| unsigned | seqNum, | ||
| unsigned | page | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| void libmspub::MSPUBParser2k::parseShapeCoordinates | ( | librevenge::RVNGInputStream * | input, |
| unsigned | seqNum, | ||
| unsigned | chunkOffset | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| void libmspub::MSPUBParser2k::parseShapeFill | ( | librevenge::RVNGInputStream * | input, |
| unsigned | seqNum, | ||
| unsigned | chunkOffset | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| void libmspub::MSPUBParser2k::parseShapeFlips | ( | librevenge::RVNGInputStream * | input, |
| unsigned | flagsOffset, | ||
| unsigned | seqNum, | ||
| unsigned | chunkOffset | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| void libmspub::MSPUBParser2k::parseShapeLine | ( | librevenge::RVNGInputStream * | input, |
| bool | isRectangle, | ||
| unsigned | offset, | ||
| unsigned | seqNum | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| void libmspub::MSPUBParser2k::parseShapeRotation | ( | librevenge::RVNGInputStream * | input, |
| bool | isGroup, | ||
| bool | isLine, | ||
| unsigned | seqNum, | ||
| unsigned | chunkOffset | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| void libmspub::MSPUBParser2k::parseShapeType | ( | librevenge::RVNGInputStream * | input, |
| unsigned | seqNum, | ||
| unsigned | chunkOffset, | ||
| bool & | isGroup, | ||
| bool & | isLine, | ||
| bool & | isImage, | ||
| bool & | isRectangle, | ||
| unsigned & | flagsOffset | ||
| ) | [protected] |
Referenced by parse2kShapeChunk().
| unsigned libmspub::MSPUBParser2k::translate2kColorReference | ( | unsigned | ref2k | ) | [static, protected] |
Referenced by getColorIndexByQuillEntry(), parseShapeFill(), and parseShapeLine().
| int libmspub::MSPUBParser2k::translateCoordinateIfNecessary | ( | int | coordinate | ) | const [protected, virtual] |
Reimplemented in libmspub::MSPUBParser97.
Referenced by parseShapeCoordinates().
std::map<unsigned, std::vector<unsigned> > libmspub::MSPUBParser2k::m_chunkChildIndicesById [private] |
Referenced by parseContents(), and parseGroup().
std::vector<unsigned> libmspub::MSPUBParser2k::m_imageDataChunkIndices [private] |
Referenced by assignShapeImgIndex(), and parseContents().
std::vector<unsigned> libmspub::MSPUBParser2k::m_quillColorEntries [private] |
Referenced by getColorIndexByQuillEntry().