libetonyek::PAGCollector Class Reference

#include <PAGCollector.h>

Inheritance diagram for libetonyek::PAGCollector:
libetonyek::IWORKCollector

Classes

struct  Section
 

Public Member Functions

 PAGCollector (IWORKDocumentInterface *document)
 
void collectPublicationInfo (const PAGPublicationInfo &pubInfo)
 
void collectTextBody ()
 
void collectAttachment (const IWORKOutputID_t &id, bool block)
 
void collectAttachmentPosition (const IWORKPosition &position)
 
void collectFootnote (const std::string &mark)
 
void insertFootnote ()
 
void openPageGroup (const boost::optional< int > &page)
 
void closePageGroup ()
 
void openSection (const std::string &style, double width, double height, double horizontalMargin, double verticalMargin)
 
void closeSection ()
 
void openAttachments ()
 
void closeAttachments ()
 
- Public Member Functions inherited from libetonyek::IWORKCollector
 IWORKCollector (IWORKDocumentInterface *document)
 
 ~IWORKCollector ()
 
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 collectText (const std::string &text)
 
void collectTab ()
 
void collectLineBreak ()
 
void collectTableSizes (const IWORKRowSizes_t &rowSizes, const IWORKColumnSizes_t &columnSizes)
 
void collectTableBorders (const IWORKGridLineList_t &verticalLines, const IWORKGridLineList_t &horizontalLines)
 
void collectTableCell (unsigned row, unsigned column, const boost::optional< std::string > &content, unsigned rowSpan, unsigned columnSpan)
 
void collectCoveredTableCell (unsigned row, unsigned column)
 
void collectTableRow ()
 
void collectTable ()
 
void collectMetadata (const IWORKMetadata &metadata)
 
void collectHeader (const std::string &name)
 
void collectFooter (const std::string &name)
 
void startDocument ()
 
void endDocument ()
 
void startGroup ()
 
void endGroup ()
 
void startLayout (const IWORKStylePtr_t &style)
 
void endLayout ()
 
void startParagraph (const IWORKStylePtr_t &style)
 
void endParagraph ()
 
void openSpan (const IWORKStylePtr_t &style)
 
void closeSpan ()
 
void openLink (const std::string &url)
 
void closeLink ()
 
void startText (bool discardEmptyContent=false)
 
void endText ()
 
void startLevel ()
 
void endLevel ()
 
void pushStyle ()
 
void popStyle ()
 
void pushStylesheet (const IWORKStylesheetPtr_t &stylesheet)
 
void popStylesheet ()
 
IWORKOutputManagergetOutputManager ()
 

Private Types

typedef std::map< unsigned, IWORKOutputID_tPageGroupsMap_t
 

Private Member Functions

virtual void drawTable ()
 
virtual void drawMedia (double x, double y, double w, double h, const std::string &mimetype, const librevenge::RVNGBinaryData &data)
 
virtual void fillShapeProperties (librevenge::RVNGPropertyList &props)
 
virtual void drawTextBox (const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox)
 
void flushPageSpan (bool writeEmpty=true)
 
void writePageGroupsObjects ()
 

Private Attributes

Section m_currentSection
 
bool m_firstPageSpan
 
std::deque< IWORKOutputElementsm_footnotes
 
std::deque< IWORKOutputElements >::const_iterator m_nextFootnote
 
PAGPublicationInfo m_pubInfo
 
PageGroupsMap_t m_pageGroups
 
int m_page
 
boost::optional< IWORKPositionm_attachmentPosition
 
bool m_inAttachments
 

Additional Inherited Members

- Protected Member Functions inherited from libetonyek::IWORKCollector
void fillMetadata (librevenge::RVNGPropertyList &props)
 
- Protected Attributes inherited from libetonyek::IWORKCollector
IWORKDocumentInterfacem_document
 
std::stack< Levelm_levelStack
 
IWORKStyleStack m_styleStack
 
std::stack< IWORKStylesheetPtr_tm_stylesheetStack
 
IWORKOutputManager m_outputManager
 
std::deque< IWORKStylePtr_tm_newStyles
 
std::stack< IWORKTextPtr_tm_textStack
 
IWORKTable m_currentTable
 
IWORKHeaderFooterMap_t m_headers
 
IWORKHeaderFooterMap_t m_footers
 

Member Typedef Documentation

typedef std::map<unsigned, IWORKOutputID_t> libetonyek::PAGCollector::PageGroupsMap_t
private

Constructor & Destructor Documentation

libetonyek::PAGCollector::PAGCollector ( IWORKDocumentInterface document)
explicit

Member Function Documentation

void libetonyek::PAGCollector::closeAttachments ( )
void libetonyek::PAGCollector::closePageGroup ( )
void libetonyek::PAGCollector::closeSection ( )
void libetonyek::PAGCollector::collectAttachment ( const IWORKOutputID_t id,
bool  block 
)
void libetonyek::PAGCollector::collectAttachmentPosition ( const IWORKPosition position)
void libetonyek::PAGCollector::collectFootnote ( const std::string &  mark)
void libetonyek::PAGCollector::collectPublicationInfo ( const PAGPublicationInfo pubInfo)
void libetonyek::PAGCollector::collectTextBody ( )
void libetonyek::PAGCollector::drawMedia ( double  x,
double  y,
double  w,
double  h,
const std::string &  mimetype,
const librevenge::RVNGBinaryData &  data 
)
privatevirtual
void libetonyek::PAGCollector::drawTable ( )
privatevirtual
void libetonyek::PAGCollector::drawTextBox ( const IWORKTextPtr_t text,
const glm::dmat3 &  trafo,
const IWORKGeometryPtr_t boundingBox 
)
privatevirtual
void libetonyek::PAGCollector::fillShapeProperties ( librevenge::RVNGPropertyList &  props)
privatevirtual

Implements libetonyek::IWORKCollector.

Referenced by drawTextBox().

void libetonyek::PAGCollector::flushPageSpan ( bool  writeEmpty = true)
private

Referenced by closeSection(), and collectTextBody().

void libetonyek::PAGCollector::insertFootnote ( )
void libetonyek::PAGCollector::openAttachments ( )
void libetonyek::PAGCollector::openPageGroup ( const boost::optional< int > &  page)
void libetonyek::PAGCollector::openSection ( const std::string &  style,
double  width,
double  height,
double  horizontalMargin,
double  verticalMargin 
)
void libetonyek::PAGCollector::writePageGroupsObjects ( )
private

Referenced by flushPageSpan().

Member Data Documentation

boost::optional<IWORKPosition> libetonyek::PAGCollector::m_attachmentPosition
private
Section libetonyek::PAGCollector::m_currentSection
private

Referenced by flushPageSpan(), and openSection().

bool libetonyek::PAGCollector::m_firstPageSpan
private

Referenced by flushPageSpan().

std::deque<IWORKOutputElements> libetonyek::PAGCollector::m_footnotes
private

Referenced by collectFootnote(), and insertFootnote().

bool libetonyek::PAGCollector::m_inAttachments
private
std::deque<IWORKOutputElements>::const_iterator libetonyek::PAGCollector::m_nextFootnote
private

Referenced by collectFootnote(), and insertFootnote().

int libetonyek::PAGCollector::m_page
private
PageGroupsMap_t libetonyek::PAGCollector::m_pageGroups
private
PAGPublicationInfo libetonyek::PAGCollector::m_pubInfo
private

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

Generated for libetonyek by doxygen 1.8.9.1