#include <QXPParser.h>
Public Member Functions | |
QXPParser (const std::shared_ptr< librevenge::RVNGInputStream > &input, librevenge::RVNGDrawingInterface *painter, const std::shared_ptr< QXPHeader > &header) | |
virtual | ~QXPParser ()=default |
bool | parse () |
Protected Member Functions | |
Color | getColor (unsigned id, Color defaultColor=Color(0, 0, 0)) const |
const LineStyle * | getLineStyle (unsigned id) const |
std::string | getFont (int id, std::string defaultFont="Arial") const |
void | convertCharFormatFlags (unsigned flags, CharFormat &format) |
TabStopType | convertTabStopType (unsigned type) |
virtual bool | parseDocument (const std::shared_ptr< librevenge::RVNGInputStream > &docStream, QXPCollector &collector)=0 |
virtual bool | parsePages (const std::shared_ptr< librevenge::RVNGInputStream > &stream, QXPCollector &collector)=0 |
void | skipRecord (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
void | parseFonts (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
void | parseHJs (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
void | parseCharFormats (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
void | parseCommonCharFormatProps (const std::shared_ptr< librevenge::RVNGInputStream > &stream, CharFormat &result) |
void | parseHJProps (const std::shared_ptr< librevenge::RVNGInputStream > &stream, HJ &result) |
TabStop | parseTabStop (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
void | parseParagraphFormats (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
virtual CharFormat | parseCharFormat (const std::shared_ptr< librevenge::RVNGInputStream > &stream)=0 |
virtual ParagraphFormat | parseParagraphFormat (const std::shared_ptr< librevenge::RVNGInputStream > &stream)=0 |
virtual std::shared_ptr< HJ > | parseHJ (const std::shared_ptr< librevenge::RVNGInputStream > &stream)=0 |
void | parseCollection (const std::shared_ptr< librevenge::RVNGInputStream >stream, std::function< void()> itemHandler) |
std::vector< PageSettings > | parsePageSettings (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
std::shared_ptr< Text > | parseText (unsigned index, unsigned linkId, QXPCollector &collector) |
uint32_t | readRecordEndOffset (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
uint8_t | readColorComp (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
Rect | readObjectBBox (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
Gradient | readGradient (const std::shared_ptr< librevenge::RVNGInputStream > &stream, const Color &color1) |
HorizontalAlignment | readHorAlign (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
VerticalAlignment | readVertAlign (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
Point | readYX (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
std::shared_ptr< ParagraphRule > | readParagraphRule (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
uint8_t | readParagraphFlags (const std::shared_ptr< librevenge::RVNGInputStream > &stream, bool &incrementalLeading, bool &ruleAbove, bool &ruleBelow) |
uint8_t | readObjectFlags (const std::shared_ptr< librevenge::RVNGInputStream > &stream, bool &noColor) |
void | readGroupElements (const std::shared_ptr< librevenge::RVNGInputStream > &stream, unsigned count, unsigned objectsCount, unsigned index, std::vector< unsigned > &elements) |
void | setArrow (const unsigned index, Frame &frame) const |
void | skipFileInfo (const std::shared_ptr< librevenge::RVNGInputStream > &stream) |
Protected Attributes | |
const std::shared_ptr< librevenge::RVNGInputStream > | m_input |
librevenge::RVNGDrawingInterface * | m_painter |
const bool | be |
QXPBlockParser | m_blockParser |
QXPTextParser | m_textParser |
std::map< unsigned, Color > | m_colors |
std::map< int, std::string > | m_fonts |
std::vector< std::shared_ptr< CharFormat > > | m_charFormats |
std::vector< std::shared_ptr< ParagraphFormat > > | m_paragraphFormats |
std::map< unsigned, LineStyle > | m_lineStyles |
std::vector< Arrow > | m_arrows |
std::deque< std::shared_ptr< HJ > > | m_hjs |
std::set< unsigned > | m_groupObjects |
Private Member Functions | |
QXPParser (const QXPParser &other)=delete | |
QXPParser & | operator= (const QXPParser &other)=delete |
Private Attributes | |
const std::shared_ptr< QXPHeader > | m_header |
|
privatedelete |
libqxp::QXPParser::QXPParser | ( | const std::shared_ptr< librevenge::RVNGInputStream > & | input, |
librevenge::RVNGDrawingInterface * | painter, | ||
const std::shared_ptr< QXPHeader > & | header | ||
) |
|
virtualdefault |
|
protected |
Referenced by libqxp::QXP1Parser::parseCharFormat(), and parseCommonCharFormatProps().
|
protected |
Referenced by libqxp::QXP1Parser::parseParagraphFormat(), and parseTabStop().
|
protected |
Referenced by libqxp::QXP1Parser::parseCharFormat(), libqxp::QXP33Parser::parseCharFormat(), libqxp::QXP4Parser::parseCharFormat(), libqxp::QXP1Parser::parseObject(), libqxp::QXP33Parser::parseObjectHeader(), libqxp::QXP4Parser::parseObjectHeader(), libqxp::QXP33Parser::readFrame(), libqxp::QXP4Parser::readFrame(), readGradient(), and readParagraphRule().
|
protected |
Referenced by parseCommonCharFormatProps().
|
protected |
Referenced by libqxp::QXP33Parser::parseLine(), libqxp::QXP4Parser::readFrame(), and readParagraphRule().
bool libqxp::QXPParser::parse | ( | ) |
|
protectedpure virtual |
Implemented in libqxp::QXP4Parser, libqxp::QXP33Parser, and libqxp::QXP1Parser.
Referenced by parseCharFormats().
|
protected |
|
protected |
Referenced by parseCharFormats(), parseHJs(), libqxp::QXP4Parser::parseLineStyles(), and parseParagraphFormats().
|
protected |
Referenced by libqxp::QXP33Parser::parseCharFormat(), and libqxp::QXP4Parser::parseCharFormat().
|
protectedpure virtual |
Implemented in libqxp::QXP4Parser, libqxp::QXP33Parser, and libqxp::QXP1Parser.
Referenced by parse().
|
protected |
Referenced by libqxp::QXP33Parser::parseDocument(), and libqxp::QXP4Parser::parseDocument().
|
protectedpure virtual |
Implemented in libqxp::QXP4Parser, libqxp::QXP33Parser, and libqxp::QXP1Parser.
Referenced by parseHJs().
|
protected |
Referenced by libqxp::QXP33Parser::parseHJ(), and libqxp::QXP4Parser::parseHJ().
|
protected |
Referenced by libqxp::QXP33Parser::parseDocument(), and libqxp::QXP4Parser::parseDocument().
|
protectedpure virtual |
Implemented in libqxp::QXP4Parser, libqxp::QXP33Parser, and libqxp::QXP1Parser.
Referenced by parse().
|
protected |
Referenced by libqxp::QXP33Parser::parsePage(), and libqxp::QXP4Parser::parsePage().
|
protectedpure virtual |
Implemented in libqxp::QXP4Parser, libqxp::QXP33Parser, and libqxp::QXP1Parser.
Referenced by parseParagraphFormats().
|
protected |
|
protected |
Referenced by libqxp::QXP33Parser::parseParagraphFormat(), and libqxp::QXP4Parser::parseTabStops().
|
protected |
|
protected |
Referenced by libqxp::QXP4Parser::parseColor(), and libqxp::QXP33Parser::parseColors().
|
protected |
Referenced by libqxp::QXP4Parser::parseBezierEmptyBox(), libqxp::QXP4Parser::parseBezierPictureBox(), libqxp::QXP4Parser::parseBezierTextBox(), libqxp::QXP4Parser::parseEmptyBox(), libqxp::QXP33Parser::parseObjectHeader(), libqxp::QXP4Parser::parsePictureBox(), and libqxp::QXP4Parser::parseTextBox().
|
protected |
Referenced by libqxp::QXP33Parser::parseGroup(), and libqxp::QXP4Parser::parseGroup().
|
protected |
|
protected |
Referenced by libqxp::QXP4Parser::parseEmptyBox(), libqxp::QXP4Parser::parseGroup(), libqxp::QXP4Parser::parseLine(), libqxp::QXP4Parser::parseLineText(), libqxp::QXP33Parser::parseObjectHeader(), libqxp::QXP4Parser::parsePictureBox(), libqxp::QXP4Parser::parseTextBox(), and libqxp::QXP4Parser::readBezierData().
|
protected |
Referenced by libqxp::QXP4Parser::parseObjectHeader(), and libqxp::QXP33Parser::readObjectFlags().
|
protected |
|
protected |
|
protected |
Referenced by libqxp::QXP33Parser::parseColors().
|
protected |
Referenced by libqxp::QXP33Parser::parseTextBox(), and libqxp::QXP4Parser::readTextSettings().
|
protected |
Referenced by libqxp::QXP4Parser::readBezierData(), and libqxp::QXP33Parser::readPolygonData().
|
protected |
Referenced by libqxp::QXP33Parser::parseLine(), and libqxp::QXP4Parser::readFrame().
|
protected |
Referenced by libqxp::QXP33Parser::parseTextBox(), and libqxp::QXP4Parser::skipTextObjectEnd().
|
protected |
|
protected |
Referenced by libqxp::QXP4Parser::parseBezierText(), libqxp::QXP4Parser::parseBezierTextBox(), libqxp::QXP33Parser::parseCharFormat(), libqxp::QXP4Parser::parseCharFormat(), parseCollection(), libqxp::QXP4Parser::parseColor(), libqxp::QXP4Parser::parseColorBlockSpec(), libqxp::QXP4Parser::parseColors(), parseCommonCharFormatProps(), libqxp::QXP33Parser::parseEmptyBox(), libqxp::QXP4Parser::parseEmptyBox(), parseFonts(), libqxp::QXP33Parser::parseGroup(), libqxp::QXP4Parser::parseGroup(), libqxp::QXP33Parser::parseLine(), libqxp::QXP4Parser::parseLineStyles(), libqxp::QXP4Parser::parseLineText(), libqxp::QXP33Parser::parseObjectHeader(), libqxp::QXP4Parser::parseObjectHeader(), libqxp::QXP33Parser::parsePage(), libqxp::QXP4Parser::parsePage(), parsePageSettings(), libqxp::QXP33Parser::parseParagraphFormat(), libqxp::QXP4Parser::parseParagraphFormat(), libqxp::QXP33Parser::parsePictureBox(), libqxp::QXP4Parser::parsePictureBox(), parseTabStop(), libqxp::QXP4Parser::parseTabStops(), libqxp::QXP33Parser::parseTextBox(), libqxp::QXP4Parser::parseTextBox(), libqxp::QXP4Parser::readBezierData(), readColorComp(), libqxp::QXP33Parser::readFrame(), libqxp::QXP4Parser::readFrame(), readGradient(), readGroupElements(), libqxp::QXP4Parser::readImageData(), libqxp::QXP4Parser::readLinkedTextSettings(), libqxp::QXP33Parser::readName(), readObjectBBox(), libqxp::QXP33Parser::readObjectFlags(), readObjectFlags(), libqxp::QXP4Parser::readOleObject(), readParagraphFlags(), readParagraphRule(), libqxp::QXP4Parser::readPictureSettings(), libqxp::QXP33Parser::readPolygonData(), readRecordEndOffset(), libqxp::QXP4Parser::readTextSettings(), readYX(), skipFileInfo(), libqxp::QXP4Parser::skipParagraphStylesheets(), skipRecord(), libqxp::QXP4Parser::skipTemplates(), and libqxp::QXP4Parser::skipTextObjectEnd().
|
protected |
Referenced by QXPParser(), and setArrow().
|
protected |
Referenced by parse().
|
protected |
Referenced by parseCharFormats(), and parseText().
|
protected |
Referenced by getColor(), libqxp::QXP4Parser::parseColor(), libqxp::QXP33Parser::parseColors(), and QXPParser().
|
protected |
Referenced by getFont(), and parseFonts().
|
protected |
Referenced by libqxp::QXP33Parser::parsePages(), libqxp::QXP4Parser::parsePages(), and readGroupElements().
|
private |
Referenced by parseFonts(), parsePageSettings(), readGradient(), and readParagraphRule().
|
protected |
|
protected |
|
protected |
Referenced by getLineStyle(), libqxp::QXP4Parser::parseLineStyles(), and QXPParser().
|
protected |
Referenced by parse().
|
protected |
Referenced by parseParagraphFormats(), and parseText().
|
protected |
Referenced by parseText().