libetonyek::IWORKCollector Class Referenceabstract

#include <IWORKCollector.h>

Inheritance diagram for libetonyek::IWORKCollector:
libetonyek::KEYCollector libetonyek::NUMCollector libetonyek::PAGCollector libetonyek::KEY2Collector

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
 
IWORKOutputManagergetOutputManager ()
 
virtual std::shared_ptr< IWORKTablecreateTable (const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager) const
 
virtual std::shared_ptr< IWORKTextcreateText (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

IWORKDocumentInterfacem_document
 
std::shared_ptr< IWORKRecorderm_recorder
 
std::stack< Levelm_levelStack
 
IWORKStyleStack m_styleStack
 
std::stack< IWORKStylesheetPtr_tm_stylesheetStack
 
IWORKOutputManager m_outputManager
 
std::deque< IWORKStylePtr_tm_newStyles
 
std::shared_ptr< IWORKTablem_currentTable
 
std::shared_ptr< IWORKTextm_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
 

Private Attributes

IWORKPathPtr_t m_currentPath
 
IWORKDataPtr_t m_currentData
 
IWORKMediaContentPtr_t m_currentUnfiltered
 
IWORKMediaContentPtr_t m_currentFiltered
 
IWORKMediaContentPtr_t m_currentLeveled
 
IWORKMediaContentPtr_t m_currentContent
 
IWORKMetadata m_metadata
 
int m_groupLevel
 

Constructor & Destructor Documentation

◆ IWORKCollector()

libetonyek::IWORKCollector::IWORKCollector ( IWORKDocumentInterface document)
explicit

◆ ~IWORKCollector()

libetonyek::IWORKCollector::~IWORKCollector ( )

Member Function Documentation

◆ collectArrowPath()

void libetonyek::IWORKCollector::collectArrowPath ( const IWORKSize size,
double  headWidth,
double  stemRelYPos,
bool  doubleSided 
)

◆ collectBezier()

void libetonyek::IWORKCollector::collectBezier ( const IWORKPathPtr_t path)

◆ collectBezierPath()

void libetonyek::IWORKCollector::collectBezierPath ( )

◆ collectCalloutPath()

void libetonyek::IWORKCollector::collectCalloutPath ( const IWORKSize size,
double  radius,
double  tailSize,
double  tailX,
double  tailY,
bool  quoteBubble 
)

◆ collectConnectionPath()

void libetonyek::IWORKCollector::collectConnectionPath ( const IWORKSize size,
double  middleX,
double  middleY 
)

◆ collectFooter()

void libetonyek::IWORKCollector::collectFooter ( const std::string &  name)

◆ collectGeometry()

void libetonyek::IWORKCollector::collectGeometry ( const IWORKGeometryPtr_t geometry)

◆ collectHeader()

void libetonyek::IWORKCollector::collectHeader ( const std::string &  name)

◆ collectHeaderFooter()

void libetonyek::IWORKCollector::collectHeaderFooter ( const std::string &  name,
IWORKHeaderFooterMap_t map 
)
private

◆ collectImage()

void libetonyek::IWORKCollector::collectImage ( const IWORKImagePtr_t image)

◆ collectLine()

void libetonyek::IWORKCollector::collectLine ( const IWORKLinePtr_t line)

◆ collectMedia()

void libetonyek::IWORKCollector::collectMedia ( const IWORKMediaContentPtr_t content)

◆ collectMetadata()

void libetonyek::IWORKCollector::collectMetadata ( const IWORKMetadata metadata)

◆ collectPolygonPath()

void libetonyek::IWORKCollector::collectPolygonPath ( const IWORKSize size,
unsigned  edges 
)

◆ collectRoundedRectanglePath()

void libetonyek::IWORKCollector::collectRoundedRectanglePath ( const IWORKSize size,
double  radius 
)

◆ collectShape()

void libetonyek::IWORKCollector::collectShape ( )

◆ collectStarPath()

void libetonyek::IWORKCollector::collectStarPath ( const IWORKSize size,
unsigned  points,
double  innerRadius 
)

◆ collectStyle()

void libetonyek::IWORKCollector::collectStyle ( const IWORKStylePtr_t style)

◆ collectStylesheet()

void libetonyek::IWORKCollector::collectStylesheet ( const IWORKStylesheetPtr_t stylesheet)

◆ collectTable()

void libetonyek::IWORKCollector::collectTable ( const std::shared_ptr< IWORKTable > &  table)

◆ collectText()

◆ createTable()

std::shared_ptr< IWORKTable > libetonyek::IWORKCollector::createTable ( const IWORKTableNameMapPtr_t tableNameMap,
const IWORKLanguageManager langManager 
) const
virtual

◆ createText()

◆ drawMedia() [1/2]

void libetonyek::IWORKCollector::drawMedia ( const IWORKMediaPtr_t media)
private

Referenced by collectMedia(), and getStylesheet().

◆ drawMedia() [2/2]

virtual void libetonyek::IWORKCollector::drawMedia ( double  x,
double  y,
double  w,
double  h,
const std::string &  mimetype,
const librevenge::RVNGBinaryData &  data 
)
privatepure virtual

◆ drawShape()

void libetonyek::IWORKCollector::drawShape ( const IWORKShapePtr_t shape)
private

Referenced by collectShape(), and getStylesheet().

◆ drawTable()

virtual void libetonyek::IWORKCollector::drawTable ( )
privatepure virtual

◆ drawTextBox()

virtual void libetonyek::IWORKCollector::drawTextBox ( const IWORKTextPtr_t text,
const glm::dmat3 &  trafo,
const IWORKGeometryPtr_t boundingBox 
)
privatepure virtual

◆ endDocument()

◆ endGroup()

void libetonyek::IWORKCollector::endGroup ( )

◆ endLevel()

◆ fillMetadata()

void libetonyek::IWORKCollector::fillMetadata ( librevenge::RVNGPropertyList &  props)
protected

◆ fillShapeProperties()

virtual void libetonyek::IWORKCollector::fillShapeProperties ( librevenge::RVNGPropertyList &  props)
privatepure virtual

◆ getOutputManager()

◆ getStylesheet()

IWORKStylesheetPtr_t libetonyek::IWORKCollector::getStylesheet ( ) const
inline

◆ popStyle()

void libetonyek::IWORKCollector::popStyle ( )

Referenced by endLevel().

◆ popStylesheet()

void libetonyek::IWORKCollector::popStylesheet ( )

◆ pushStyle() [1/2]

void libetonyek::IWORKCollector::pushStyle ( )

Referenced by getStylesheet(), and startLevel().

◆ pushStyle() [2/2]

void libetonyek::IWORKCollector::pushStyle ( const IWORKStylePtr_t style)
private

◆ pushStylesheet()

void libetonyek::IWORKCollector::pushStylesheet ( const IWORKStylesheetPtr_t stylesheet)

◆ resolveStyle()

void libetonyek::IWORKCollector::resolveStyle ( IWORKStyle style)
private

Referenced by getStylesheet().

◆ setGraphicStyle()

void libetonyek::IWORKCollector::setGraphicStyle ( const IWORKStylePtr_t style)

◆ setRecorder()

void libetonyek::IWORKCollector::setRecorder ( const std::shared_ptr< IWORKRecorder > &  recorder)

◆ startDocument()

◆ startGroup()

void libetonyek::IWORKCollector::startGroup ( )

◆ startLevel()

◆ writeFill()

void libetonyek::IWORKCollector::writeFill ( const IWORKFill fill,
librevenge::RVNGPropertyList &  props 
)
staticprotected

Member Data Documentation

◆ m_currentContent

IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentContent
private

◆ m_currentData

IWORKDataPtr_t libetonyek::IWORKCollector::m_currentData
private

◆ m_currentFiltered

IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentFiltered
private

◆ m_currentLeveled

IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentLeveled
private

◆ m_currentPath

◆ m_currentTable

std::shared_ptr<IWORKTable> libetonyek::IWORKCollector::m_currentTable
protected

◆ m_currentText

◆ m_currentUnfiltered

IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentUnfiltered
private

◆ m_document

◆ m_footers

IWORKHeaderFooterMap_t libetonyek::IWORKCollector::m_footers
protected

◆ m_groupLevel

int libetonyek::IWORKCollector::m_groupLevel
private

◆ m_headers

IWORKHeaderFooterMap_t libetonyek::IWORKCollector::m_headers
protected

◆ m_levelStack

◆ m_metadata

IWORKMetadata libetonyek::IWORKCollector::m_metadata
private

Referenced by collectMetadata(), and fillMetadata().

◆ m_newStyles

std::deque<IWORKStylePtr_t> libetonyek::IWORKCollector::m_newStyles
protected

Referenced by collectStyle(), and collectStylesheet().

◆ m_outputManager

◆ m_recorder

◆ m_stylesheetStack

std::stack<IWORKStylesheetPtr_t> libetonyek::IWORKCollector::m_stylesheetStack
protected

◆ m_styleStack

IWORKStyleStack libetonyek::IWORKCollector::m_styleStack
protected

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

Generated for libetonyek by doxygen 1.8.13