#include <ZMFCollector.h>
Public Member Functions | |
| ZMFCollector (librevenge::RVNGDrawingInterface *painter) | |
| ~ZMFCollector () | |
| void | startDocument () |
| void | endDocument () |
| void | startPage (const ZMFPageSettings &pageSettings) |
| void | endPage () |
| void | startLayer () |
| void | endLayer () |
| void | startGroup () |
| void | endGroup () |
| void | setStyle (const Style &style) |
| void | collectPath (const std::vector< Curve > &curves) |
| void | collectPath (const Curve &curve) |
| void | collectEllipse (const Point &c, double rx, double ry, double rotation) |
| void | collectArc (const Point &c, double rx, double ry, double beginAngle, double endAngle, bool closed, double rotation) |
| void | collectPolygon (const Point &c, double rx, double ry, uint32_t peaksCount, const Curve &peak, double rotation, bool mirrorHorizontal, bool mirrorVertical) |
| void | collectTextObject (const Text &text, const Point &topLeft, double width, double height, VerticalAlignment align, double rotation) |
| void | collectTable (const Table &table) |
| void | collectImage (const librevenge::RVNGBinaryData &image, const Point &topLeft, double width, double height, double rotation, bool mirrorHorizontal, bool mirrorVertical) |
Private Member Functions | |
| ZMFCollector (const ZMFCollector &other) | |
| ZMFCollector & | operator= (const ZMFCollector &other) |
| double | pageX (double canvasX) |
| double | pageY (double canvasY) |
| void | writeStyle (librevenge::RVNGPropertyList &propList, const Style &style, bool noFill=false) |
| void | writePen (librevenge::RVNGPropertyList &propList, const Pen &pen) |
| void | writeFill (librevenge::RVNGPropertyList &propList, const Fill &fill) |
| void | writeShadow (librevenge::RVNGPropertyList &propList, const Shadow &shadow) |
| void | collectText (const Text &text) |
| void | flushText (std::string &text) |
Private Attributes | |
| librevenge::RVNGDrawingInterface * | m_painter |
| ZMFPageSettings | m_pageSettings |
| bool | m_isDocumentStarted |
| bool | m_isPageStarted |
| bool | m_isLayerStarted |
| Style | m_style |
| libzmf::ZMFCollector::ZMFCollector | ( | const ZMFCollector & | other | ) | [private] |
| libzmf::ZMFCollector::ZMFCollector | ( | librevenge::RVNGDrawingInterface * | painter | ) |
| void libzmf::ZMFCollector::collectArc | ( | const Point & | c, |
| double | rx, | ||
| double | ry, | ||
| double | beginAngle, | ||
| double | endAngle, | ||
| bool | closed, | ||
| double | rotation | ||
| ) |
Referenced by libzmf::ZMF4Parser::readEllipse().
| void libzmf::ZMFCollector::collectEllipse | ( | const Point & | c, |
| double | rx, | ||
| double | ry, | ||
| double | rotation | ||
| ) |
Referenced by libzmf::ZMF4Parser::readEllipse().
| void libzmf::ZMFCollector::collectImage | ( | const librevenge::RVNGBinaryData & | image, |
| const Point & | topLeft, | ||
| double | width, | ||
| double | height, | ||
| double | rotation, | ||
| bool | mirrorHorizontal, | ||
| bool | mirrorVertical | ||
| ) |
Referenced by libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readImage().
| void libzmf::ZMFCollector::collectPath | ( | const std::vector< Curve > & | curves | ) |
| void libzmf::ZMFCollector::collectPath | ( | const Curve & | curve | ) |
| void libzmf::ZMFCollector::collectPolygon | ( | const Point & | c, |
| double | rx, | ||
| double | ry, | ||
| uint32_t | peaksCount, | ||
| const Curve & | peak, | ||
| double | rotation, | ||
| bool | mirrorHorizontal, | ||
| bool | mirrorVertical | ||
| ) |
Referenced by libzmf::ZMF4Parser::readPolygon().
| void libzmf::ZMFCollector::collectTable | ( | const Table & | table | ) |
Referenced by libzmf::ZMF4Parser::readTable().
| void libzmf::ZMFCollector::collectText | ( | const Text & | text | ) | [private] |
Referenced by collectTable(), and collectTextObject().
| void libzmf::ZMFCollector::collectTextObject | ( | const Text & | text, |
| const Point & | topLeft, | ||
| double | width, | ||
| double | height, | ||
| VerticalAlignment | align, | ||
| double | rotation | ||
| ) |
Referenced by libzmf::ZMF4Parser::readTextFrame().
| void libzmf::ZMFCollector::endDocument | ( | ) |
Referenced by libzmf::ZBRParser::parse(), libzmf::BMIParser::parse(), libzmf::ZMF4Parser::parse(), and ~ZMFCollector().
| void libzmf::ZMFCollector::endGroup | ( | ) |
Referenced by libzmf::ZMF4Parser::readLayer().
| void libzmf::ZMFCollector::endLayer | ( | ) |
Referenced by libzmf::BMIParser::parse(), libzmf::ZMF4Parser::readLayer(), and startPage().
| void libzmf::ZMFCollector::endPage | ( | ) |
Referenced by endDocument(), libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readPage().
| void libzmf::ZMFCollector::flushText | ( | std::string & | text | ) | [private] |
Referenced by collectText().
| ZMFCollector& libzmf::ZMFCollector::operator= | ( | const ZMFCollector & | other | ) | [private] |
| double libzmf::ZMFCollector::pageX | ( | double | canvasX | ) | [private] |
Referenced by collectArc(), collectEllipse(), collectImage(), collectTable(), and collectTextObject().
| double libzmf::ZMFCollector::pageY | ( | double | canvasY | ) | [private] |
Referenced by collectArc(), collectEllipse(), collectImage(), collectTable(), and collectTextObject().
| void libzmf::ZMFCollector::setStyle | ( | const Style & | style | ) |
| void libzmf::ZMFCollector::startDocument | ( | ) |
Referenced by libzmf::ZBRParser::parse(), libzmf::ZMF4Parser::parse(), and libzmf::BMIParser::parse().
| void libzmf::ZMFCollector::startGroup | ( | ) |
Referenced by libzmf::ZMF4Parser::readLayer().
| void libzmf::ZMFCollector::startLayer | ( | ) |
Referenced by libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readLayer().
| void libzmf::ZMFCollector::startPage | ( | const ZMFPageSettings & | pageSettings | ) |
Referenced by libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readPage().
| void libzmf::ZMFCollector::writeFill | ( | librevenge::RVNGPropertyList & | propList, |
| const Fill & | fill | ||
| ) | [private] |
Referenced by writeStyle().
| void libzmf::ZMFCollector::writePen | ( | librevenge::RVNGPropertyList & | propList, |
| const Pen & | pen | ||
| ) | [private] |
Referenced by writeStyle().
| void libzmf::ZMFCollector::writeShadow | ( | librevenge::RVNGPropertyList & | propList, |
| const Shadow & | shadow | ||
| ) | [private] |
Referenced by writeStyle().
| void libzmf::ZMFCollector::writeStyle | ( | librevenge::RVNGPropertyList & | propList, |
| const Style & | style, | ||
| bool | noFill = false |
||
| ) | [private] |
Referenced by collectArc(), collectEllipse(), collectImage(), and collectPath().
bool libzmf::ZMFCollector::m_isDocumentStarted [private] |
Referenced by endDocument(), startDocument(), and ~ZMFCollector().
bool libzmf::ZMFCollector::m_isLayerStarted [private] |
Referenced by endLayer(), startLayer(), and startPage().
bool libzmf::ZMFCollector::m_isPageStarted [private] |
Referenced by endDocument(), endPage(), and startPage().
Referenced by collectPath(), pageX(), pageY(), and startPage().
librevenge::RVNGDrawingInterface* libzmf::ZMFCollector::m_painter [private] |
Style libzmf::ZMFCollector::m_style [private] |
Referenced by collectArc(), collectEllipse(), collectImage(), collectPath(), setStyle(), writeFill(), and writePen().