Builder class for PMD Documents. More...
#include <PMDCollector.h>
Public Member Functions | |
PMDCollector () | |
void | setPageWidth (PMDShapeUnit) |
void | setPageHeight (PMDShapeUnit) |
void | setDoubleSided (bool) |
void | addShapeToPage (unsigned pageID, const std::shared_ptr< PMDLineSet > &shape) |
void | addColor (const PMDColor &color) |
void | addFont (const PMDFont &font) |
unsigned | addPage () |
void | draw (librevenge::RVNGDrawingInterface *) const |
Private Types | |
typedef std::vector< std::shared_ptr< const OutputShape > > | PageShapes_t |
typedef std::vector< PageShapes_t > | PageShapesList_t |
Private Member Functions | |
void | writePage (const PMDPage &, librevenge::RVNGDrawingInterface *, const std::vector< std::shared_ptr< const OutputShape > > &) const |
void | paintShape (const OutputShape &shape, librevenge::RVNGDrawingInterface *) const |
void | fillOutputShapesByPage_OneSided (PageShapesList_t &pageShapes) const |
void | fillOutputShapesByPage_TwoSided (PageShapesList_t &pageShapes) const |
void | fillOutputShapesByPage (PageShapesList_t &pageShapes) const |
Private Attributes | |
boost::optional< PMDShapeUnit > | m_pageWidth |
boost::optional< PMDShapeUnit > | m_pageHeight |
std::vector< PMDPage > | m_pages |
std::vector< PMDColor > | m_color |
std::vector< PMDFont > | m_font |
bool | m_doubleSided |
Builder class for PMD Documents.
Methods are called by the PMD parser to build the document. This done, the draw() method may be called to output the document to the supplied drawing interface.
|
private |
|
private |
libpagemaker::PMDCollector::PMDCollector | ( | ) |
void libpagemaker::PMDCollector::addColor | ( | const PMDColor & | color | ) |
void libpagemaker::PMDCollector::addFont | ( | const PMDFont & | font | ) |
unsigned libpagemaker::PMDCollector::addPage | ( | ) |
void libpagemaker::PMDCollector::addShapeToPage | ( | unsigned | pageID, |
const std::shared_ptr< PMDLineSet > & | shape ) |
void libpagemaker::PMDCollector::draw | ( | librevenge::RVNGDrawingInterface * | painter | ) | const |
|
private |
Referenced by draw().
|
private |
Referenced by fillOutputShapesByPage().
|
private |
Referenced by fillOutputShapesByPage().
|
private |
Referenced by writePage().
void libpagemaker::PMDCollector::setDoubleSided | ( | bool | doubleSided | ) |
void libpagemaker::PMDCollector::setPageHeight | ( | PMDShapeUnit | pageHeight | ) |
void libpagemaker::PMDCollector::setPageWidth | ( | PMDShapeUnit | pageWidth | ) |
|
private |
Referenced by draw().
|
private |
Referenced by addColor(), paintShape(), and PMDCollector().
|
private |
Referenced by fillOutputShapesByPage(), PMDCollector(), and setDoubleSided().
|
private |
Referenced by addFont(), paintShape(), and PMDCollector().
|
private |
Referenced by fillOutputShapesByPage_OneSided(), fillOutputShapesByPage_TwoSided(), PMDCollector(), setPageHeight(), and writePage().
|
private |
Referenced by addPage(), addShapeToPage(), draw(), fillOutputShapesByPage_OneSided(), fillOutputShapesByPage_TwoSided(), and PMDCollector().
|
private |
Referenced by fillOutputShapesByPage_OneSided(), fillOutputShapesByPage_TwoSided(), PMDCollector(), setPageWidth(), and writePage().