Public Member Functions | Private Member Functions | Private Attributes | List of all members
libzmf::ZMFCollector Class Reference

`#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)=delete
ZMFCollector & | operator= (const ZMFCollector &other)=delete
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

## Constructor & Destructor Documentation

## ◆ ZMFCollector() [1/2]

libzmf::ZMFCollector::ZMFCollector | ( | const ZMFCollector & | other | ) |
| private delete

## ◆ ZMFCollector() [2/2]

libzmf::ZMFCollector::ZMFCollector | ( | librevenge::RVNGDrawingInterface * | painter | ) |

## ◆ ~ZMFCollector()

libzmf::ZMFCollector::~ZMFCollector | ( |  | ) |

## Member Function Documentation

## ◆ collectArc()

void libzmf::ZMFCollector::collectArc | ( | const Point & | c,
|  | double | rx,
|  | double | ry,
|  | double | beginAngle,
|  | double | endAngle,
|  | bool | closed,
|  | double | rotation
| ) |  |

Referenced by libzmf::ZMF4Parser::readEllipse().

## ◆ collectEllipse()

void libzmf::ZMFCollector::collectEllipse | ( | const Point & | c,
|  | double | rx,
|  | double | ry,
|  | double | rotation
| ) |  |

Referenced by libzmf::ZMF4Parser::readEllipse().

## ◆ collectImage()

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().

## ◆ collectPath() [1/2]

void libzmf::ZMFCollector::collectPath | ( | const Curve & | curve | ) |

## ◆ collectPath() [2/2]

void libzmf::ZMFCollector::collectPath | ( | const std::vector< Curve > & | curves | ) |

Referenced by collectPath(), collectPolygon(), libzmf::ZMF4Parser::readBoundingBox(), libzmf::ZMF4Parser::readCurve(), and libzmf::ZMF4Parser::readRectangle().

## ◆ collectPolygon()

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().

## ◆ collectTable()

void libzmf::ZMFCollector::collectTable | ( | const Table & | table | ) |

Referenced by libzmf::ZMF4Parser::readTable().

## ◆ collectText()

void libzmf::ZMFCollector::collectText | ( | const Text & | text | ) |
| private

Referenced by collectTable(), and collectTextObject().

## ◆ collectTextObject()

void libzmf::ZMFCollector::collectTextObject | ( | const Text & | text,
|  | const Point & | topLeft,
|  | double | width,
|  | double | height,
|  | VerticalAlignment | align,
|  | double | rotation
| ) |  |

Referenced by libzmf::ZMF4Parser::readTextFrame().

## ◆ endDocument()

void libzmf::ZMFCollector::endDocument | ( |  | ) |

Referenced by libzmf::BMIParser::parse(), libzmf::ZBRParser::parse(), libzmf::ZMF4Parser::parse(), and ~ZMFCollector().

## ◆ endGroup()

void libzmf::ZMFCollector::endGroup | ( |  | ) |

Referenced by libzmf::ZMF4Parser::readLayer().

## ◆ endLayer()

void libzmf::ZMFCollector::endLayer | ( |  | ) |

Referenced by libzmf::BMIParser::parse(), libzmf::ZMF4Parser::readLayer(), and startPage().

## ◆ endPage()

void libzmf::ZMFCollector::endPage | ( |  | ) |

Referenced by endDocument(), libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readPage().

## ◆ flushText()

void libzmf::ZMFCollector::flushText | ( | std::string & | text | ) |
| private

Referenced by collectText().

## ◆ operator=()

ZMFCollector & libzmf::ZMFCollector::operator= | ( | const ZMFCollector & | other | ) |
| private delete

## ◆ pageX()

double libzmf::ZMFCollector::pageX | ( | double | canvasX | ) |
| private

Referenced by collectArc(), collectEllipse(), collectImage(), collectTable(), and collectTextObject().

## ◆ pageY()

double libzmf::ZMFCollector::pageY | ( | double | canvasY | ) |
| private

Referenced by collectArc(), collectEllipse(), collectImage(), collectTable(), and collectTextObject().

## ◆ setStyle()

void libzmf::ZMFCollector::setStyle | ( | const Style & | style | ) |

Referenced by libzmf::ZMF4Parser::readBoundingBox(), libzmf::ZMF4Parser::readCurve(), libzmf::ZMF4Parser::readEllipse(), libzmf::ZMF4Parser::readImage(), libzmf::ZMF4Parser::readPolygon(), and libzmf::ZMF4Parser::readRectangle().

## ◆ startDocument()

void libzmf::ZMFCollector::startDocument | ( |  | ) |

Referenced by libzmf::BMIParser::parse(), libzmf::ZBRParser::parse(), and libzmf::ZMF4Parser::parse().

## ◆ startGroup()

void libzmf::ZMFCollector::startGroup | ( |  | ) |

Referenced by libzmf::ZMF4Parser::readLayer().

## ◆ startLayer()

void libzmf::ZMFCollector::startLayer | ( |  | ) |

Referenced by libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readLayer().

## ◆ startPage()

void libzmf::ZMFCollector::startPage | ( | const ZMFPageSettings & | pageSettings | ) |

Referenced by libzmf::BMIParser::parse(), and libzmf::ZMF4Parser::readPage().

## ◆ writeFill()

void libzmf::ZMFCollector::writeFill | ( | librevenge::RVNGPropertyList & | propList,
|  | const Fill & | fill
| ) |  |
| private

Referenced by writeStyle().

## ◆ writePen()

void libzmf::ZMFCollector::writePen | ( | librevenge::RVNGPropertyList & | propList,
|  | const Pen & | pen
| ) |  |
| private

Referenced by writeStyle().

## ◆ writeShadow()

void libzmf::ZMFCollector::writeShadow | ( | librevenge::RVNGPropertyList & | propList,
|  | const Shadow & | shadow
| ) |  |
| private

Referenced by writeStyle().

## ◆ writeStyle()

void libzmf::ZMFCollector::writeStyle | ( | librevenge::RVNGPropertyList & | propList,
|  | const Style & | style,
|  | bool | noFill = `false`
| ) |  |
| private

Referenced by collectArc(), collectEllipse(), collectImage(), and collectPath().

## Member Data Documentation

## ◆ m_isDocumentStarted

bool libzmf::ZMFCollector::m_isDocumentStarted
| private

Referenced by endDocument(), startDocument(), and ~ZMFCollector().

## ◆ m_isLayerStarted

bool libzmf::ZMFCollector::m_isLayerStarted
| private

Referenced by endLayer(), startLayer(), and startPage().

## ◆ m_isPageStarted

bool libzmf::ZMFCollector::m_isPageStarted
| private

Referenced by endDocument(), endPage(), and startPage().

## ◆ m_pageSettings

ZMFPageSettings libzmf::ZMFCollector::m_pageSettings
| private

Referenced by collectPath(), pageX(), pageY(), and startPage().

## ◆ m_painter

librevenge::RVNGDrawingInterface* libzmf::ZMFCollector::m_painter
| private

Referenced by collectArc(), collectEllipse(), collectImage(), collectPath(), collectTable(), collectText(), collectTextObject(), endDocument(), endGroup(), endLayer(), endPage(), flushText(), startDocument(), startGroup(), startLayer(), and startPage().

## ◆ m_style

Style libzmf::ZMFCollector::m_style
| private

Referenced by collectArc(), collectEllipse(), collectImage(), collectPath(), setStyle(), writeFill(), and writePen().

The documentation for this class was generated from the following files:

- ZMFCollector.h
- ZMFCollector.cpp