#include <IWORKCollector.h>
Classes | |
struct | Level |
Public Member Functions | |
IWORKCollector (IWORKDocumentInterface *document) | |
~IWORKCollector () | |
void | setRecorder (const std::shared_ptr< IWORKRecorder > &recorder) |
void | collectStyle (const IWORKStylePtr_t &style) |
void | setGraphicStyle (const IWORKStylePtr_t &style) |
void | collectGeometry (const IWORKGeometryPtr_t &geometry) |
void | collectBezier (const IWORKPathPtr_t &path) |
void | collectImage (const IWORKImagePtr_t &image) |
void | collectLine (const IWORKLinePtr_t &line) |
void | collectShape () |
void | collectBezierPath () |
void | collectPolygonPath (const IWORKSize &size, unsigned edges) |
void | collectRoundedRectanglePath (const IWORKSize &size, double radius) |
void | collectArrowPath (const IWORKSize &size, double headWidth, double stemRelYPos, bool doubleSided) |
void | collectStarPath (const IWORKSize &size, unsigned points, double innerRadius) |
void | collectConnectionPath (const IWORKSize &size, double middleX, double middleY) |
void | collectCalloutPath (const IWORKSize &size, double radius, double tailSize, double tailX, double tailY, bool quoteBubble) |
void | collectMedia (const IWORKMediaContentPtr_t &content) |
void | collectStylesheet (const IWORKStylesheetPtr_t &stylesheet) |
void | collectMetadata (const IWORKMetadata &metadata) |
void | collectHeader (const std::string &name) |
void | collectFooter (const std::string &name) |
void | collectTable (const std::shared_ptr< IWORKTable > &table) |
void | collectText (const std::shared_ptr< IWORKText > &text) |
void | startDocument () |
void | endDocument () |
void | startGroup () |
void | endGroup () |
void | startLevel () |
void | endLevel () |
void | pushStyle () |
void | popStyle () |
void | pushStylesheet (const IWORKStylesheetPtr_t &stylesheet) |
void | popStylesheet () |
IWORKStylesheetPtr_t | getStylesheet () const |
IWORKOutputManager & | getOutputManager () |
virtual std::shared_ptr< IWORKTable > | createTable (const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager) const |
virtual std::shared_ptr< IWORKText > | createText (const IWORKLanguageManager &langManager, bool discardEmptyContent=false) const |
Protected Member Functions | |
void | fillMetadata (librevenge::RVNGPropertyList &props) |
Static Protected Member Functions | |
static void | writeFill (const IWORKFill &fill, librevenge::RVNGPropertyList &props) |
Protected Attributes | |
IWORKDocumentInterface * | m_document |
std::shared_ptr< IWORKRecorder > | m_recorder |
std::stack< Level > | m_levelStack |
IWORKStyleStack | m_styleStack |
std::stack< IWORKStylesheetPtr_t > | m_stylesheetStack |
IWORKOutputManager | m_outputManager |
std::deque< IWORKStylePtr_t > | m_newStyles |
std::shared_ptr< IWORKTable > | m_currentTable |
std::shared_ptr< IWORKText > | m_currentText |
IWORKHeaderFooterMap_t | m_headers |
IWORKHeaderFooterMap_t | m_footers |
Private Member Functions | |
void | pushStyle (const IWORKStylePtr_t &style) |
void | resolveStyle (IWORKStyle &style) |
void | collectHeaderFooter (const std::string &name, IWORKHeaderFooterMap_t &map) |
void | drawMedia (const IWORKMediaPtr_t &media) |
void | drawShape (const IWORKShapePtr_t &shape) |
virtual void | drawTable ()=0 |
virtual void | drawMedia (double x, double y, double w, double h, const std::string &mimetype, const librevenge::RVNGBinaryData &data)=0 |
virtual void | fillShapeProperties (librevenge::RVNGPropertyList &props)=0 |
virtual void | drawTextBox (const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox)=0 |
|
explicit |
libetonyek::IWORKCollector::~IWORKCollector | ( | ) |
void libetonyek::IWORKCollector::collectArrowPath | ( | const IWORKSize & | size, |
double | headWidth, | ||
double | stemRelYPos, | ||
bool | doubleSided | ||
) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectBezier | ( | const IWORKPathPtr_t & | path | ) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectBezierPath | ( | ) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectCalloutPath | ( | const IWORKSize & | size, |
double | radius, | ||
double | tailSize, | ||
double | tailX, | ||
double | tailY, | ||
bool | quoteBubble | ||
) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectConnectionPath | ( | const IWORKSize & | size, |
double | middleX, | ||
double | middleY | ||
) |
void libetonyek::IWORKCollector::collectFooter | ( | const std::string & | name | ) |
void libetonyek::IWORKCollector::collectGeometry | ( | const IWORKGeometryPtr_t & | geometry | ) |
Referenced by libetonyek::IWAParser::parseShapePlacement().
void libetonyek::IWORKCollector::collectHeader | ( | const std::string & | name | ) |
|
private |
Referenced by collectFooter(), collectHeader(), and getStylesheet().
void libetonyek::IWORKCollector::collectImage | ( | const IWORKImagePtr_t & | image | ) |
void libetonyek::IWORKCollector::collectLine | ( | const IWORKLinePtr_t & | line | ) |
void libetonyek::IWORKCollector::collectMedia | ( | const IWORKMediaContentPtr_t & | content | ) |
Referenced by libetonyek::IWAParser::parseImage().
void libetonyek::IWORKCollector::collectMetadata | ( | const IWORKMetadata & | metadata | ) |
void libetonyek::IWORKCollector::collectPolygonPath | ( | const IWORKSize & | size, |
unsigned | edges | ||
) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectRoundedRectanglePath | ( | const IWORKSize & | size, |
double | radius | ||
) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectShape | ( | ) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectStarPath | ( | const IWORKSize & | size, |
unsigned | points, | ||
double | innerRadius | ||
) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::collectStyle | ( | const IWORKStylePtr_t & | style | ) |
Referenced by libetonyek::KEY2StyleContext::endOfElement().
void libetonyek::IWORKCollector::collectStylesheet | ( | const IWORKStylesheetPtr_t & | stylesheet | ) |
void libetonyek::IWORKCollector::collectTable | ( | const std::shared_ptr< IWORKTable > & | table | ) |
Referenced by libetonyek::IWAParser::parseTabularModel().
void libetonyek::IWORKCollector::collectText | ( | const std::shared_ptr< IWORKText > & | text | ) |
|
virtual |
Reimplemented in libetonyek::KEY2Collector.
Referenced by libetonyek::KEY2Collector::createTable(), getStylesheet(), and libetonyek::IWAParser::parseTabularModel().
|
virtual |
Reimplemented in libetonyek::KEY2Collector.
Referenced by libetonyek::KEY2Collector::createText(), libetonyek::PAG1TextStorageElement::element(), getStylesheet(), libetonyek::PAG5Parser::parseDocument(), libetonyek::IWAParser::parseDrawableShape(), libetonyek::KEY6Parser::parseNotes(), libetonyek::KEY6Parser::parsePlaceholder(), libetonyek::KEY6Parser::parseStickyNote(), and libetonyek::IWAParser::parseTile().
|
private |
Referenced by collectMedia(), and getStylesheet().
|
privatepure virtual |
Implemented in libetonyek::KEYCollector, libetonyek::PAGCollector, and libetonyek::NUMCollector.
|
private |
Referenced by collectShape(), and getStylesheet().
|
privatepure virtual |
Implemented in libetonyek::KEYCollector, libetonyek::PAGCollector, and libetonyek::NUMCollector.
Referenced by collectTable(), and getStylesheet().
|
privatepure virtual |
Implemented in libetonyek::KEYCollector, libetonyek::PAGCollector, and libetonyek::NUMCollector.
Referenced by drawShape(), and getStylesheet().
void libetonyek::IWORKCollector::endDocument | ( | ) |
void libetonyek::IWORKCollector::endGroup | ( | ) |
Referenced by libetonyek::IWAParser::parseGroup().
void libetonyek::IWORKCollector::endLevel | ( | ) |
Referenced by libetonyek::KEYCollector::endLayer(), libetonyek::KEYCollector::endPage(), libetonyek::IWAParser::parseDrawableShape(), libetonyek::IWAParser::parseGroup(), libetonyek::IWAParser::parseImage(), libetonyek::KEY6Parser::parsePlaceholder(), libetonyek::KEY6Parser::parseStickyNote(), and libetonyek::IWAParser::parseTabularInfo().
|
protected |
|
privatepure virtual |
Implemented in libetonyek::KEYCollector, libetonyek::PAGCollector, and libetonyek::NUMCollector.
Referenced by drawShape(), and getStylesheet().
IWORKOutputManager & libetonyek::IWORKCollector::getOutputManager | ( | ) |
Referenced by libetonyek::PAGCollector::closePageGroup(), libetonyek::KEYCollector::collectLayer(), libetonyek::PAGCollector::drawMedia(), libetonyek::KEYCollector::drawMedia(), libetonyek::NUMCollector::endDocument(), libetonyek::KEYCollector::endLayer(), getStylesheet(), libetonyek::KEYCollector::insertLayer(), libetonyek::PAGCollector::openPageGroup(), libetonyek::KEYCollector::startLayer(), and libetonyek::PAGCollector::writePageGroupsObjects().
|
inline |
void libetonyek::IWORKCollector::popStyle | ( | ) |
Referenced by endLevel().
void libetonyek::IWORKCollector::popStylesheet | ( | ) |
void libetonyek::IWORKCollector::pushStyle | ( | ) |
Referenced by getStylesheet(), and startLevel().
|
private |
void libetonyek::IWORKCollector::pushStylesheet | ( | const IWORKStylesheetPtr_t & | stylesheet | ) |
|
private |
Referenced by getStylesheet().
void libetonyek::IWORKCollector::setGraphicStyle | ( | const IWORKStylePtr_t & | style | ) |
Referenced by libetonyek::IWAParser::parseDrawableShape().
void libetonyek::IWORKCollector::setRecorder | ( | const std::shared_ptr< IWORKRecorder > & | recorder | ) |
void libetonyek::IWORKCollector::startDocument | ( | ) |
void libetonyek::IWORKCollector::startGroup | ( | ) |
Referenced by libetonyek::IWAParser::parseGroup().
void libetonyek::IWORKCollector::startLevel | ( | ) |
Referenced by libetonyek::IWAParser::parseDrawableShape(), libetonyek::IWAParser::parseGroup(), libetonyek::IWAParser::parseImage(), libetonyek::KEY6Parser::parsePlaceholder(), libetonyek::KEY6Parser::parseStickyNote(), libetonyek::IWAParser::parseTabularInfo(), libetonyek::KEYCollector::startLayer(), and libetonyek::KEYCollector::startPage().
|
staticprotected |
Referenced by getStylesheet(), and libetonyek::KEYCollector::writeSlide().
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
Referenced by collectFooter(), and libetonyek::PAGCollector::flushPageSpan().
|
private |
Referenced by endDocument(), endGroup(), startGroup(), and ~IWORKCollector().
|
protected |
Referenced by collectHeader(), and libetonyek::PAGCollector::flushPageSpan().
|
protected |
Referenced by collectGeometry(), collectImage(), collectLine(), collectMedia(), collectShape(), libetonyek::KEYCollector::collectStickyNote(), drawMedia(), drawShape(), libetonyek::PAGCollector::drawTable(), libetonyek::KEYCollector::drawTable(), endDocument(), endLevel(), libetonyek::KEYCollector::insertTextPlaceholder(), setGraphicStyle(), startLevel(), and ~IWORKCollector().
|
private |
Referenced by collectMetadata(), and fillMetadata().
|
protected |
Referenced by collectStyle(), and collectStylesheet().
|
protected |
|
protected |
Referenced by collectArrowPath(), collectBezier(), collectCalloutPath(), collectConnectionPath(), collectGeometry(), collectImage(), collectLine(), collectMedia(), collectPolygonPath(), collectRoundedRectanglePath(), collectShape(), collectStarPath(), collectStyle(), collectStylesheet(), collectTable(), collectText(), endGroup(), endLevel(), libetonyek::KEYCollector::endPage(), popStylesheet(), pushStylesheet(), setGraphicStyle(), setRecorder(), startGroup(), and startLevel().
|
protected |
Referenced by getStylesheet(), libetonyek::PAGCollector::openSection(), popStylesheet(), pushStylesheet(), and ~IWORKCollector().
|
protected |
Referenced by libetonyek::KEYCollector::collectTextPlaceholder(), popStyle(), pushStyle(), and setGraphicStyle().