libetonyek::IWORKCollector Class Referenceabstract

#include <IWORKCollector.h>

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

Classes

struct  Level
 

Public Member Functions

 IWORKCollector (IWORKDocumentInterface *document)
 
virtual ~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 setAccumulateTransformTo (bool accumulate)
 
void collectBezier (const IWORKPathPtr_t &path)
 
void collectLine (const IWORKLinePtr_t &line)
 
void collectShape (const boost::optional< int > &order=boost::none, const boost::optional< unsigned > &resizeFlags=boost::none, bool locked=false)
 
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 IWORKConnectionPath &path)
 
void collectCalloutPath (const IWORKSize &size, double radius, double tailSize, double tailX, double tailY, bool quoteBubble)
 
void collectImage (const IWORKMediaContentPtr_t &image, const IWORKGeometryPtr_t &cropGeometry=IWORKGeometryPtr_t(), const boost::optional< int > &order=boost::none, bool locked=false)
 
void collectMedia (const IWORKMediaContentPtr_t &content, const IWORKGeometryPtr_t &cropGeometry=IWORKGeometryPtr_t(), const boost::optional< int > &order=boost::none)
 
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)
 
virtual void collectStickyNote ()
 
void startDocument (const librevenge::RVNGPropertyList &props)
 
void endDocument ()
 
void startAttachment ()
 
void endAttachment ()
 
void startAttachments ()
 
void endAttachments ()
 
void startGroup ()
 
void endGroup ()
 
void openGroup ()
 
void closeGroup ()
 
bool getOpenGroupLevel () const
 
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
< IWORKTable
createTable (const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager) const
 
virtual std::shared_ptr
< IWORKText
createText (const IWORKLanguageManager &langManager, bool discardEmptyContent=false, bool allowListInsertion=true) const
 

Protected Member Functions

void fillMetadata (librevenge::RVNGPropertyList &props)
 
void drawShape (const IWORKShapePtr_t &shape)
 
 IWORKCollector (const IWORKCollector &)
 
IWORKCollectoroperator= (const IWORKCollector &)
 

Static Protected Member Functions

static void fillGraphicProps (const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props, bool isSurface=true, bool isFrame=false)
 
static void fillLayoutProps (const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props)
 
static void fillTextAutoSizeProps (const boost::optional< unsigned > &resizeFlags, const IWORKGeometryPtr_t &boundingBox, librevenge::RVNGPropertyList &props)
 
static void fillWrapProps (const IWORKStylePtr_t style, librevenge::RVNGPropertyList &props, const boost::optional< int > &order)
 
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
 
std::stack< IWORKPathPtr_tm_pathStack
 
IWORKPathPtr_t m_currentPath
 
std::stack< bool > m_attachmentStack
 
bool m_inAttachment
 
bool m_inAttachments
 

Private Member Functions

void pushStyle (const IWORKStylePtr_t &style)
 
void collectHeaderFooter (const std::string &name, IWORKHeaderFooterMap_t &map)
 
void drawLine (const IWORKLinePtr_t &line)
 
void drawMedia (const IWORKMediaPtr_t &media)
 
virtual void drawTable ()=0
 
virtual void drawMedia (double x, double y, const librevenge::RVNGPropertyList &data)=0
 
virtual void fillShapeProperties (librevenge::RVNGPropertyList &props)=0
 
virtual bool createFrameStylesForTextBox () const =0
 
virtual void drawTextBox (const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox, const librevenge::RVNGPropertyList &style)=0
 

Private Attributes

IWORKDataPtr_t m_currentData
 
IWORKMediaContentPtr_t m_currentUnfiltered
 
IWORKMediaContentPtr_t m_currentFiltered
 
IWORKMediaContentPtr_t m_currentLeveled
 
IWORKMediaContentPtr_t m_currentContent
 
IWORKMetadata m_metadata
 
bool m_accumulateTransform
 
int m_groupLevel
 
int m_groupOpenLevel
 

Constructor & Destructor Documentation

libetonyek::IWORKCollector::IWORKCollector ( IWORKDocumentInterface document)
explicit
libetonyek::IWORKCollector::~IWORKCollector ( )
virtual
libetonyek::IWORKCollector::IWORKCollector ( const IWORKCollector )
protected

Member Function Documentation

void libetonyek::IWORKCollector::closeGroup ( )
void libetonyek::IWORKCollector::collectArrowPath ( const IWORKSize size,
double  headWidth,
double  stemRelYPos,
bool  doubleSided 
)
void libetonyek::IWORKCollector::collectBezier ( const IWORKPathPtr_t path)
void libetonyek::IWORKCollector::collectBezierPath ( )
void libetonyek::IWORKCollector::collectCalloutPath ( const IWORKSize size,
double  radius,
double  tailSize,
double  tailX,
double  tailY,
bool  quoteBubble 
)
void libetonyek::IWORKCollector::collectConnectionPath ( const IWORKConnectionPath path)
void libetonyek::IWORKCollector::collectFooter ( const std::string &  name)
void libetonyek::IWORKCollector::collectGeometry ( const IWORKGeometryPtr_t geometry)
void libetonyek::IWORKCollector::collectHeader ( const std::string &  name)
void libetonyek::IWORKCollector::collectHeaderFooter ( const std::string &  name,
IWORKHeaderFooterMap_t map 
)
private

Referenced by collectFooter(), and collectHeader().

void libetonyek::IWORKCollector::collectImage ( const IWORKMediaContentPtr_t image,
const IWORKGeometryPtr_t cropGeometry = IWORKGeometryPtr_t(),
const boost::optional< int > &  order = boost::none,
bool  locked = false 
)
void libetonyek::IWORKCollector::collectLine ( const IWORKLinePtr_t line)
void libetonyek::IWORKCollector::collectMedia ( const IWORKMediaContentPtr_t content,
const IWORKGeometryPtr_t cropGeometry = IWORKGeometryPtr_t(),
const boost::optional< int > &  order = boost::none 
)
void libetonyek::IWORKCollector::collectMetadata ( const IWORKMetadata metadata)
void libetonyek::IWORKCollector::collectPolygonPath ( const IWORKSize size,
unsigned  edges 
)
void libetonyek::IWORKCollector::collectRoundedRectanglePath ( const IWORKSize size,
double  radius 
)
void libetonyek::IWORKCollector::collectShape ( const boost::optional< int > &  order = boost::none,
const boost::optional< unsigned > &  resizeFlags = boost::none,
bool  locked = false 
)
void libetonyek::IWORKCollector::collectStarPath ( const IWORKSize size,
unsigned  points,
double  innerRadius 
)
void libetonyek::IWORKCollector::collectStickyNote ( )
virtual
void libetonyek::IWORKCollector::collectStyle ( const IWORKStylePtr_t style)
void libetonyek::IWORKCollector::collectStylesheet ( const IWORKStylesheetPtr_t stylesheet)
void libetonyek::IWORKCollector::collectTable ( const std::shared_ptr< IWORKTable > &  table)
virtual bool libetonyek::IWORKCollector::createFrameStylesForTextBox ( ) const
privatepure virtual
std::shared_ptr< IWORKTable > libetonyek::IWORKCollector::createTable ( const IWORKTableNameMapPtr_t tableNameMap,
const IWORKLanguageManager langManager 
) const
virtual
void libetonyek::IWORKCollector::drawLine ( const IWORKLinePtr_t line)
private

Referenced by collectLine().

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

Referenced by collectImage(), and collectMedia().

virtual void libetonyek::IWORKCollector::drawMedia ( double  x,
double  y,
const librevenge::RVNGPropertyList &  data 
)
privatepure virtual
void libetonyek::IWORKCollector::drawShape ( const IWORKShapePtr_t shape)
protected

Referenced by collectShape().

virtual void libetonyek::IWORKCollector::drawTable ( )
privatepure virtual
virtual void libetonyek::IWORKCollector::drawTextBox ( const IWORKTextPtr_t text,
const glm::dmat3 &  trafo,
const IWORKGeometryPtr_t boundingBox,
const librevenge::RVNGPropertyList &  style 
)
privatepure virtual
void libetonyek::IWORKCollector::endAttachment ( )
void libetonyek::IWORKCollector::endAttachments ( )
void libetonyek::IWORKCollector::endGroup ( )
void libetonyek::IWORKCollector::fillGraphicProps ( const IWORKStylePtr_t  style,
librevenge::RVNGPropertyList &  props,
bool  isSurface = true,
bool  isFrame = false 
)
staticprotected

Referenced by drawLine(), drawMedia(), and drawShape().

void libetonyek::IWORKCollector::fillLayoutProps ( const IWORKStylePtr_t  style,
librevenge::RVNGPropertyList &  props 
)
staticprotected
void libetonyek::IWORKCollector::fillMetadata ( librevenge::RVNGPropertyList &  props)
protected
virtual void libetonyek::IWORKCollector::fillShapeProperties ( librevenge::RVNGPropertyList &  props)
privatepure virtual
void libetonyek::IWORKCollector::fillTextAutoSizeProps ( const boost::optional< unsigned > &  resizeFlags,
const IWORKGeometryPtr_t boundingBox,
librevenge::RVNGPropertyList &  props 
)
staticprotected
void libetonyek::IWORKCollector::fillWrapProps ( const IWORKStylePtr_t  style,
librevenge::RVNGPropertyList &  props,
const boost::optional< int > &  order 
)
staticprotected
bool libetonyek::IWORKCollector::getOpenGroupLevel ( ) const
inline
IWORKStylesheetPtr_t libetonyek::IWORKCollector::getStylesheet ( ) const
inline
void libetonyek::IWORKCollector::openGroup ( )
IWORKCollector& libetonyek::IWORKCollector::operator= ( const IWORKCollector )
protected
void libetonyek::IWORKCollector::popStyle ( )

Referenced by endLevel().

void libetonyek::IWORKCollector::popStylesheet ( )
void libetonyek::IWORKCollector::pushStyle ( )

Referenced by startLevel().

void libetonyek::IWORKCollector::pushStyle ( const IWORKStylePtr_t style)
private
void libetonyek::IWORKCollector::pushStylesheet ( const IWORKStylesheetPtr_t stylesheet)
void libetonyek::IWORKCollector::setAccumulateTransformTo ( bool  accumulate)
void libetonyek::IWORKCollector::setGraphicStyle ( const IWORKStylePtr_t style)
void libetonyek::IWORKCollector::setRecorder ( const std::shared_ptr< IWORKRecorder > &  recorder)
void libetonyek::IWORKCollector::startAttachment ( )
void libetonyek::IWORKCollector::startAttachments ( )
void libetonyek::IWORKCollector::startDocument ( const librevenge::RVNGPropertyList &  props)
void libetonyek::IWORKCollector::startGroup ( )
void libetonyek::IWORKCollector::writeFill ( const IWORKFill fill,
librevenge::RVNGPropertyList &  props 
)
staticprotected

Member Data Documentation

bool libetonyek::IWORKCollector::m_accumulateTransform
private
std::stack<bool> libetonyek::IWORKCollector::m_attachmentStack
protected

Referenced by endAttachment(), and startAttachment().

IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentContent
private
IWORKDataPtr_t libetonyek::IWORKCollector::m_currentData
private
IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentFiltered
private
IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentLeveled
private
std::shared_ptr<IWORKTable> libetonyek::IWORKCollector::m_currentTable
protected
IWORKMediaContentPtr_t libetonyek::IWORKCollector::m_currentUnfiltered
private
IWORKHeaderFooterMap_t libetonyek::IWORKCollector::m_footers
protected
int libetonyek::IWORKCollector::m_groupLevel
private
int libetonyek::IWORKCollector::m_groupOpenLevel
private
IWORKHeaderFooterMap_t libetonyek::IWORKCollector::m_headers
protected
bool libetonyek::IWORKCollector::m_inAttachment
protected

Referenced by endAttachment(), and startAttachment().

IWORKMetadata libetonyek::IWORKCollector::m_metadata
private

Referenced by collectMetadata(), and fillMetadata().

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

Referenced by collectStyle(), and collectStylesheet().

std::stack<IWORKPathPtr_t> libetonyek::IWORKCollector::m_pathStack
protected
std::stack<IWORKStylesheetPtr_t> libetonyek::IWORKCollector::m_stylesheetStack
protected
IWORKStyleStack libetonyek::IWORKCollector::m_styleStack
protected

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

Generated for libetonyek by doxygen 1.8.6