#include <MSPUBParser.h>
Classes | |
| struct | TextParagraphReference |
| struct | TextSpanReference |
Public Member Functions | |
| MSPUBParser (librevenge::RVNGInputStream *input, MSPUBCollector *collector) | |
| virtual | ~MSPUBParser () |
| virtual bool | parse () |
Protected Types | |
| typedef std::vector< ContentChunkReference >::const_iterator | ccr_iterator_t |
Protected Member Functions | |
| virtual unsigned | getColorIndexByQuillEntry (unsigned entry) |
| MSPUBParser () | |
| MSPUBParser (const MSPUBParser &) | |
| MSPUBParser & | operator= (const MSPUBParser &) |
| virtual bool | parseContents (librevenge::RVNGInputStream *input) |
| bool | parseMetaData () |
| bool | parseQuill (librevenge::RVNGInputStream *input) |
| bool | parseEscher (librevenge::RVNGInputStream *input) |
| bool | parseEscherDelay (librevenge::RVNGInputStream *input) |
| MSPUBBlockInfo | parseBlock (librevenge::RVNGInputStream *input, bool skipHierarchicalData=false) |
| EscherContainerInfo | parseEscherContainer (librevenge::RVNGInputStream *input) |
| bool | parseContentChunkReference (librevenge::RVNGInputStream *input, MSPUBBlockInfo block) |
| QuillChunkReference | parseQuillChunkReference (librevenge::RVNGInputStream *input) |
| bool | parseDocumentChunk (librevenge::RVNGInputStream *input, const ContentChunkReference &chunk) |
| bool | parsePageChunk (librevenge::RVNGInputStream *input, const ContentChunkReference &chunk) |
| bool | parsePaletteChunk (librevenge::RVNGInputStream *input, const ContentChunkReference &chunk) |
| bool | parsePageShapeList (librevenge::RVNGInputStream *input, MSPUBBlockInfo block, unsigned pageSeqNum) |
| bool | parseShape (librevenge::RVNGInputStream *input, const ContentChunkReference &chunk) |
| bool | parseBorderArtChunk (librevenge::RVNGInputStream *input, const ContentChunkReference &chunk) |
| bool | parseFontChunk (librevenge::RVNGInputStream *input, const ContentChunkReference &chunk) |
| void | parsePaletteEntry (librevenge::RVNGInputStream *input, MSPUBBlockInfo block) |
| void | parseColors (librevenge::RVNGInputStream *input, const QuillChunkReference &chunk) |
| void | parseFonts (librevenge::RVNGInputStream *input, const QuillChunkReference &chunk) |
| void | parseDefaultStyle (librevenge::RVNGInputStream *input, const QuillChunkReference &chunk) |
| void | parseShapeGroup (librevenge::RVNGInputStream *input, const EscherContainerInfo &spgr, Coordinate parentCoordinateSystem, Coordinate parentGroupAbsoluteCoord) |
| void | skipBlock (librevenge::RVNGInputStream *input, MSPUBBlockInfo block) |
| void | parseEscherShape (librevenge::RVNGInputStream *input, const EscherContainerInfo &sp, Coordinate &parentCoordinateSystem, Coordinate &parentGroupAbsoluteCoord) |
| bool | findEscherContainer (librevenge::RVNGInputStream *input, const EscherContainerInfo &parent, EscherContainerInfo &out, unsigned short type) |
| bool | findEscherContainerWithTypeInSet (librevenge::RVNGInputStream *input, const EscherContainerInfo &parent, EscherContainerInfo &out, std::set< unsigned short > types) |
| std::map< unsigned short, unsigned > | extractEscherValues (librevenge::RVNGInputStream *input, const EscherContainerInfo &record) |
| FOPTValues | extractFOPTValues (librevenge::RVNGInputStream *input, const libmspub::EscherContainerInfo &record) |
| std::vector< TextSpanReference > | parseCharacterStyles (librevenge::RVNGInputStream *input, const QuillChunkReference &chunk) |
| std::vector< TextParagraphReference > | parseParagraphStyles (librevenge::RVNGInputStream *input, const QuillChunkReference &chunk) |
| std::vector< Calculation > | parseGuides (const std::vector< unsigned char > &guideData) |
| std::vector< Vertex > | parseVertices (const std::vector< unsigned char > &vertexData) |
| std::vector< unsigned > | parseTableCellDefinitions (librevenge::RVNGInputStream *input, const QuillChunkReference &chunk) |
| std::vector< unsigned short > | parseSegments (const std::vector< unsigned char > &segmentData) |
| DynamicCustomShape | getDynamicCustomShape (const std::vector< unsigned char > &vertexData, const std::vector< unsigned char > &segmentData, const std::vector< unsigned char > &guideData, unsigned geoWidth, unsigned geoHeight) |
| int | getColorIndex (librevenge::RVNGInputStream *input, const MSPUBBlockInfo &info) |
| unsigned | getFontIndex (librevenge::RVNGInputStream *input, const MSPUBBlockInfo &info) |
| CharacterStyle | getCharacterStyle (librevenge::RVNGInputStream *input) |
| ParagraphStyle | getParagraphStyle (librevenge::RVNGInputStream *input) |
| std::shared_ptr< Fill > | getNewFill (const std::map< unsigned short, unsigned > &foptProperties, bool &skipIfNotBg, std::map< unsigned short, std::vector< unsigned char > > &foptValues) |
Static Protected Member Functions | |
| static short | getBlockDataLength (unsigned type) |
| static bool | isBlockDataString (unsigned type) |
| static PageType | getPageTypeBySeqNum (unsigned seqNum) |
| static unsigned | getEscherElementTailLength (unsigned short type) |
| static unsigned | getEscherElementAdditionalHeaderLength (unsigned short type) |
| static ImgType | imgTypeByBlipType (unsigned short type) |
| static int | getStartOffset (ImgType type, unsigned short initial) |
| static bool | lineExistsByFlagPointer (unsigned *flags, unsigned *geomFlags=nullptr) |
Protected Attributes | |
| librevenge::RVNGInputStream * | m_input |
| unsigned | m_length |
| MSPUBCollector * | m_collector |
| std::vector< MSPUBBlockInfo > | m_blockInfo |
| std::vector< ContentChunkReference > | m_contentChunks |
| std::vector< unsigned > | m_cellsChunkIndices |
| std::vector< unsigned > | m_pageChunkIndices |
| std::vector< unsigned > | m_shapeChunkIndices |
| std::vector< unsigned > | m_paletteChunkIndices |
| std::vector< unsigned > | m_borderArtChunkIndices |
| std::vector< unsigned > | m_fontChunkIndices |
| std::vector< unsigned > | m_unknownChunkIndices |
| boost::optional< unsigned > | m_documentChunkIndex |
| int | m_lastSeenSeqNum |
| unsigned | m_lastAddedImage |
| std::vector< int > | m_alternateShapeSeqNums |
| std::vector< int > | m_escherDelayIndices |
|
protected |
|
explicit |
|
virtual |
|
protected |
|
protected |
|
protected |
Referenced by parseEscherShape().
|
protected |
Referenced by parseEscherShape().
|
protected |
Referenced by parseEscher(), and parseEscherShape().
|
protected |
Referenced by parseEscherShape(), and parseShapeGroup().
|
staticprotected |
Referenced by parseBlock().
|
protected |
Referenced by parseCharacterStyles(), and parseDefaultStyle().
|
protected |
Referenced by getCharacterStyle().
|
protectedvirtual |
Reimplemented in libmspub::MSPUBParser2k.
Referenced by getCharacterStyle().
|
protected |
Referenced by parseEscherShape().
|
staticprotected |
Referenced by extractEscherValues().
|
staticprotected |
Referenced by findEscherContainer(), findEscherContainerWithTypeInSet(), parseEscher(), and parseShapeGroup().
|
protected |
Referenced by getCharacterStyle().
|
protected |
Referenced by parseEscherShape().
|
staticprotected |
Referenced by parsePageChunk().
|
protected |
Referenced by parseDefaultStyle(), and parseParagraphStyles().
|
staticprotected |
Referenced by parseEscherDelay().
|
staticprotected |
Referenced by parseEscherDelay().
|
staticprotected |
Referenced by parseBlock().
|
staticprotected |
Referenced by parseEscherShape().
|
protected |
|
virtual |
Reimplemented in libmspub::MSPUBParser2k, and libmspub::MSPUBParser97.
|
protected |
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by parseContents().
|
protectedvirtual |
Reimplemented in libmspub::MSPUBParser2k.
Referenced by parse().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parse().
|
protected |
Referenced by findEscherContainer(), findEscherContainerWithTypeInSet(), and parseEscherDelay().
|
protected |
Referenced by parse().
|
protected |
Referenced by parseShapeGroup().
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by getDynamicCustomShape().
|
protected |
Referenced by parse().
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parsePageChunk().
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parsePaletteChunk().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by parse(), and libmspub::MSPUBParser2k::parse().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by getDynamicCustomShape().
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parseEscher(), and parseShapeGroup().
|
protected |
Referenced by parseQuill().
|
protected |
Referenced by getDynamicCustomShape(), and parseEscherShape().
|
protected |
Referenced by getColorIndex(), getFontIndex(), parseBlock(), parseContents(), parsePageChunk(), and parsePaletteChunk().
|
protected |
Referenced by parseContentChunkReference().
|
protected |
Referenced by parseContents().
|
protected |
Referenced by parseContentChunkReference(), and parseContents().
|
protected |
Referenced by parseContentChunkReference(), and parseShape().
|
protected |
Referenced by libmspub::MSPUBParser2k::assignShapeImgIndex(), libmspub::MSPUBParser2k::getColorIndexByQuillEntry(), getNewFill(), libmspub::MSPUBParser97::MSPUBParser97(), parse(), libmspub::MSPUBParser2k::parse(), libmspub::MSPUBParser97::parse(), libmspub::MSPUBParser2k::parse2kShapeChunk(), parseBorderArtChunk(), parseColors(), libmspub::MSPUBParser2k::parseContents(), libmspub::MSPUBParser97::parseContentsTextIfNecessary(), parseDefaultStyle(), libmspub::MSPUBParser2k::parseDocument(), libmspub::MSPUBParser97::parseDocument(), parseEscherDelay(), parseEscherShape(), parseFontChunk(), parseFonts(), libmspub::MSPUBParser2k::parseGroup(), parseMetaData(), parsePageChunk(), parsePageShapeList(), parsePaletteChunk(), parsePaletteEntry(), parseQuill(), parseShape(), libmspub::MSPUBParser2k::parseShapeCoordinates(), libmspub::MSPUBParser2k::parseShapeFill(), libmspub::MSPUBParser2k::parseShapeFlips(), parseShapeGroup(), libmspub::MSPUBParser2k::parseShapeLine(), libmspub::MSPUBParser2k::parseShapeRotation(), and libmspub::MSPUBParser2k::parseShapeType().
|
protected |
Referenced by libmspub::MSPUBParser2k::assignShapeImgIndex(), libmspub::MSPUBParser2k::parse2kShapeChunk(), parseContentChunkReference(), parseContents(), libmspub::MSPUBParser2k::parseContents(), libmspub::MSPUBParser2k::parseDocument(), libmspub::MSPUBParser97::parseDocument(), libmspub::MSPUBParser2k::parseGroup(), and parseShape().
|
protected |
|
protected |
Referenced by getNewFill(), parseEscher(), and parseEscherShape().
|
protected |
Referenced by parseContentChunkReference(), and parseContents().
|
protected |
Referenced by parse(), libmspub::MSPUBParser2k::parse(), libmspub::MSPUBParser97::parse(), and parseMetaData().
|
protected |
Referenced by libmspub::MSPUBParser2k::parseContents(), and parseEscherDelay().
|
protected |
Referenced by parseContentChunkReference(), and parseContents().
|
protected |
|
protected |
|
protected |
Referenced by parseContentChunkReference(), parseContents(), and libmspub::MSPUBParser2k::parseContents().
|
protected |
Referenced by parseContentChunkReference(), parseContents(), and libmspub::MSPUBParser2k::parseContents().
|
protected |
Referenced by parseContentChunkReference(), and libmspub::MSPUBParser2k::parseContents().