libetonyek::KEYCollectorBase Class Reference

Implementation of common parts of styles and content collector. More...

#include <KEYCollectorBase.h>

Inheritance diagram for libetonyek::KEYCollectorBase:
libetonyek::KEYCollector libetonyek::KEYContentCollector libetonyek::KEYThemeCollector

Classes

struct  Level
 

Public Member Functions

 KEYCollectorBase (KEYDictionary &dict, const KEYDefaults &defaults)
 
 ~KEYCollectorBase ()
 
virtual void collectCellStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectCharacterStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectConnectionStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectGraphicStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectLayoutStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectListStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectParagraphStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectPlaceholderStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectSlideStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectTabularStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectVectorStyle (const boost::optional< ID_t > &id, const boost::optional< KEYPropertyMap > &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent, bool ref, bool anonymous)
 
virtual void collectGeometry (boost::optional< ID_t > &id, boost::optional< KEYSize > &naturalSize, boost::optional< KEYSize > &size, boost::optional< KEYPosition > &position, boost::optional< double > &angle, boost::optional< double > &shearXAngle, boost::optional< double > &shearYAngle, boost::optional< bool > &horizontalFlip, boost::optional< bool > &verticalFlip, boost::optional< bool > &aspectRatioLocked, boost::optional< bool > &sizesLocked)
 
virtual void collectBezier (const boost::optional< ID_t > &id, const KEYPathPtr_t &path, bool ref)
 
virtual void collectGroup (const boost::optional< ID_t > &id, const KEYGroupPtr_t &group)
 
virtual void collectImage (const boost::optional< ID_t > &id, const KEYImagePtr_t &image)
 
virtual void collectLine (const boost::optional< ID_t > &id, const KEYLinePtr_t &line)
 
virtual void collectShape (const boost::optional< ID_t > &id)
 
virtual void collectBezierPath (const boost::optional< ID_t > &id)
 
virtual void collectPolygonPath (const boost::optional< ID_t > &id, const KEYSize &size, unsigned edges)
 
virtual void collectRoundedRectanglePath (const boost::optional< ID_t > &id, const KEYSize &size, double radius)
 
virtual void collectArrowPath (const boost::optional< ID_t > &id, const KEYSize &size, double headWidth, double stemRelYPos, bool doubleSided)
 
virtual void collectStarPath (const boost::optional< ID_t > &id, const KEYSize &size, unsigned points, double innerRadius)
 
virtual void collectConnectionPath (const boost::optional< ID_t > &id, const KEYSize &size, double middleX, double middleY)
 
virtual void collectCalloutPath (const boost::optional< ID_t > &id, const KEYSize &size, double radius, double tailSize, double tailX, double tailY, bool quoteBubble)
 
virtual void collectData (const boost::optional< ID_t > &id, const RVNGInputStreamPtr_t &stream, const boost::optional< std::string > &displayName, const boost::optional< unsigned > &type, bool ref)
 
virtual void collectUnfiltered (const boost::optional< ID_t > &id, const boost::optional< KEYSize > &size, bool ref)
 
virtual void collectFiltered (const boost::optional< ID_t > &id, const boost::optional< KEYSize > &size)
 
virtual void collectLeveled (const boost::optional< ID_t > &id, const boost::optional< KEYSize > &size)
 
virtual void collectFilteredImage (const boost::optional< ID_t > &id, bool ref)
 
virtual void collectMovieMedia (const boost::optional< ID_t > &id)
 
virtual void collectMedia (const boost::optional< ID_t > &id)
 
virtual void collectLayer (const boost::optional< ID_t > &id, bool ref)
 
virtual void collectStylesheet (const boost::optional< ID_t > &id, const boost::optional< ID_t > &parent)
 
virtual void collectText (const boost::optional< ID_t > &style, const std::string &text)
 
virtual void collectTab ()
 
virtual void collectLineBreak ()
 
virtual void collectTextPlaceholder (const boost::optional< ID_t > &id, bool title, bool ref)
 
virtual void collectTableSizes (const KEYTable::RowSizes_t &rowSizes, const KEYTable::ColumnSizes_t &columnSizes)
 
virtual void collectTableCell (unsigned row, unsigned column, const boost::optional< std::string > &content, unsigned rowSpan, unsigned columnSpan)
 
virtual void collectCoveredTableCell (unsigned row, unsigned column)
 
virtual void collectTableRow ()
 
virtual void collectTable ()
 
virtual void collectNote ()
 
virtual void collectStickyNote ()
 
virtual void startPage ()
 
virtual void endPage ()
 
virtual void startLayer ()
 
virtual void endLayer ()
 
virtual void startGroup ()
 
virtual void endGroup ()
 
virtual void startParagraph (const boost::optional< ID_t > &style)
 
virtual void endParagraph ()
 
virtual void startText (bool object)
 Start of a block that can contain text. More...
 
virtual void endText ()
 End of a text block. More...
 
virtual void startLevel ()
 
virtual void endLevel ()
 
- Public Member Functions inherited from libetonyek::KEYCollector
virtual ~KEYCollector ()=0
 
virtual void collectPresentation (const boost::optional< KEYSize > &size)=0
 
virtual void collectPage (const boost::optional< ID_t > &id)=0
 
virtual void startSlides ()=0
 
virtual void endSlides ()=0
 
virtual void startThemes ()=0
 
virtual void endThemes ()=0
 

Protected Member Functions

bool isCollecting () const
 
void setCollecting (bool collecting)
 
const KEYDefaultsgetDefaults () const
 
const KEYLayerPtr_tgetLayer () const
 
const KEYObjectList_tgetNotes () const
 
const KEYStickyNotes_tgetStickyNotes () const
 

Private Attributes

KEYDictionarym_dict
 
const KEYDefaultsm_defaults
 
KEYLayerPtr_t m_currentLayer
 
std::stack< Levelm_levelStack
 
std::stack< KEYObjectList_tm_objectsStack
 
KEYPathPtr_t m_currentPath
 
KEYTextPtr_t m_currentText
 
KEYPlaceholderStylePtr_t m_currentPlaceholderStyle
 
KEYStylesheetPtr_t m_currentStylesheet
 
std::deque< KEYStylePtr_tm_newStyles
 
KEYDataPtr_t m_currentData
 
KEYMediaContentPtr_t m_currentUnfiltered
 
KEYMediaContentPtr_t m_currentFiltered
 
KEYMediaContentPtr_t m_currentLeveled
 
KEYMediaContentPtr_t m_currentContent
 
KEYTable m_currentTable
 
KEYObjectList_t m_notes
 
KEYStickyNotes_t m_stickyNotes
 
bool m_collecting
 
bool m_layerOpened
 
int m_groupLevel
 

Detailed Description

Implementation of common parts of styles and content collector.

It collects styles and drawable objects.

Constructor & Destructor Documentation

libetonyek::KEYCollectorBase::KEYCollectorBase ( KEYDictionary dict,
const KEYDefaults defaults 
)
libetonyek::KEYCollectorBase::~KEYCollectorBase ( )

Member Function Documentation

void libetonyek::KEYCollectorBase::collectArrowPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  headWidth,
double  stemRelYPos,
bool  doubleSided 
)
virtual
void libetonyek::KEYCollectorBase::collectBezier ( const boost::optional< ID_t > &  id,
const KEYPathPtr_t path,
bool  ref 
)
virtual
void libetonyek::KEYCollectorBase::collectBezierPath ( const boost::optional< ID_t > &  id)
virtual
void libetonyek::KEYCollectorBase::collectCalloutPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  radius,
double  tailSize,
double  tailX,
double  tailY,
bool  quoteBubble 
)
virtual
void libetonyek::KEYCollectorBase::collectCellStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectCharacterStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectConnectionPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  middleX,
double  middleY 
)
virtual
void libetonyek::KEYCollectorBase::collectConnectionStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectCoveredTableCell ( unsigned  row,
unsigned  column 
)
virtual
void libetonyek::KEYCollectorBase::collectData ( const boost::optional< ID_t > &  id,
const RVNGInputStreamPtr_t stream,
const boost::optional< std::string > &  displayName,
const boost::optional< unsigned > &  type,
bool  ref 
)
virtual
void libetonyek::KEYCollectorBase::collectFiltered ( const boost::optional< ID_t > &  id,
const boost::optional< KEYSize > &  size 
)
virtual
void libetonyek::KEYCollectorBase::collectFilteredImage ( const boost::optional< ID_t > &  id,
bool  ref 
)
virtual
void libetonyek::KEYCollectorBase::collectGeometry ( boost::optional< ID_t > &  id,
boost::optional< KEYSize > &  naturalSize,
boost::optional< KEYSize > &  size,
boost::optional< KEYPosition > &  position,
boost::optional< double > &  angle,
boost::optional< double > &  shearXAngle,
boost::optional< double > &  shearYAngle,
boost::optional< bool > &  horizontalFlip,
boost::optional< bool > &  verticalFlip,
boost::optional< bool > &  aspectRatioLocked,
boost::optional< bool > &  sizesLocked 
)
virtual
void libetonyek::KEYCollectorBase::collectGraphicStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectGroup ( const boost::optional< ID_t > &  id,
const KEYGroupPtr_t group 
)
virtual
void libetonyek::KEYCollectorBase::collectImage ( const boost::optional< ID_t > &  id,
const KEYImagePtr_t image 
)
virtual
void libetonyek::KEYCollectorBase::collectLayer ( const boost::optional< ID_t > &  id,
bool  ref 
)
virtual
void libetonyek::KEYCollectorBase::collectLayoutStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectLeveled ( const boost::optional< ID_t > &  id,
const boost::optional< KEYSize > &  size 
)
virtual
void libetonyek::KEYCollectorBase::collectLine ( const boost::optional< ID_t > &  id,
const KEYLinePtr_t line 
)
virtual
void libetonyek::KEYCollectorBase::collectLineBreak ( )
virtual
void libetonyek::KEYCollectorBase::collectListStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectMedia ( const boost::optional< ID_t > &  id)
virtual
void libetonyek::KEYCollectorBase::collectMovieMedia ( const boost::optional< ID_t > &  id)
virtual
void libetonyek::KEYCollectorBase::collectNote ( )
virtual
void libetonyek::KEYCollectorBase::collectParagraphStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectPlaceholderStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectPolygonPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
unsigned  edges 
)
virtual
void libetonyek::KEYCollectorBase::collectRoundedRectanglePath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  radius 
)
virtual
void libetonyek::KEYCollectorBase::collectShape ( const boost::optional< ID_t > &  id)
virtual
void libetonyek::KEYCollectorBase::collectSlideStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectStarPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
unsigned  points,
double  innerRadius 
)
virtual
void libetonyek::KEYCollectorBase::collectStickyNote ( )
virtual
void libetonyek::KEYCollectorBase::collectStylesheet ( const boost::optional< ID_t > &  id,
const boost::optional< ID_t > &  parent 
)
virtual
void libetonyek::KEYCollectorBase::collectTab ( )
virtual
void libetonyek::KEYCollectorBase::collectTable ( )
virtual
void libetonyek::KEYCollectorBase::collectTableCell ( unsigned  row,
unsigned  column,
const boost::optional< std::string > &  content,
unsigned  rowSpan,
unsigned  columnSpan 
)
virtual
void libetonyek::KEYCollectorBase::collectTableRow ( )
virtual
void libetonyek::KEYCollectorBase::collectTableSizes ( const KEYTable::RowSizes_t rowSizes,
const KEYTable::ColumnSizes_t columnSizes 
)
virtual
void libetonyek::KEYCollectorBase::collectTabularStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::collectText ( const boost::optional< ID_t > &  style,
const std::string &  text 
)
virtual
void libetonyek::KEYCollectorBase::collectTextPlaceholder ( const boost::optional< ID_t > &  id,
bool  title,
bool  ref 
)
virtual
void libetonyek::KEYCollectorBase::collectUnfiltered ( const boost::optional< ID_t > &  id,
const boost::optional< KEYSize > &  size,
bool  ref 
)
virtual
void libetonyek::KEYCollectorBase::collectVectorStyle ( const boost::optional< ID_t > &  id,
const boost::optional< KEYPropertyMap > &  props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent,
bool  ref,
bool  anonymous 
)
virtual
void libetonyek::KEYCollectorBase::endGroup ( )
virtual
void libetonyek::KEYCollectorBase::endLayer ( )
virtual
void libetonyek::KEYCollectorBase::endLevel ( )
virtual

Implements libetonyek::KEYCollector.

Referenced by endLayer().

void libetonyek::KEYCollectorBase::endPage ( )
virtual
void libetonyek::KEYCollectorBase::endParagraph ( )
virtual
void libetonyek::KEYCollectorBase::endText ( )
virtual

End of a text block.

Implements libetonyek::KEYCollector.

const KEYDefaults & libetonyek::KEYCollectorBase::getDefaults ( ) const
protected
const KEYLayerPtr_t & libetonyek::KEYCollectorBase::getLayer ( ) const
protected
const KEYObjectList_t & libetonyek::KEYCollectorBase::getNotes ( ) const
protected
const KEYStickyNotes_t & libetonyek::KEYCollectorBase::getStickyNotes ( ) const
protected
void libetonyek::KEYCollectorBase::startGroup ( )
virtual
void libetonyek::KEYCollectorBase::startLayer ( )
virtual
void libetonyek::KEYCollectorBase::startLevel ( )
virtual

Implements libetonyek::KEYCollector.

Referenced by startLayer().

void libetonyek::KEYCollectorBase::startPage ( )
virtual
void libetonyek::KEYCollectorBase::startParagraph ( const boost::optional< ID_t > &  style)
virtual
void libetonyek::KEYCollectorBase::startText ( bool  object)
virtual

Start of a block that can contain text.

This can be:

  • a text shape
  • a sticky note
  • a placeholder
  • a note.

Implements libetonyek::KEYCollector.

Member Data Documentation

KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentContent
private
KEYDataPtr_t libetonyek::KEYCollectorBase::m_currentData
private
KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentFiltered
private
KEYLayerPtr_t libetonyek::KEYCollectorBase::m_currentLayer
private
KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentLeveled
private
KEYPlaceholderStylePtr_t libetonyek::KEYCollectorBase::m_currentPlaceholderStyle
private
KEYTable libetonyek::KEYCollectorBase::m_currentTable
private
KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentUnfiltered
private
const KEYDefaults& libetonyek::KEYCollectorBase::m_defaults
private

Referenced by collectGeometry(), and getDefaults().

int libetonyek::KEYCollectorBase::m_groupLevel
private
bool libetonyek::KEYCollectorBase::m_layerOpened
private
KEYObjectList_t libetonyek::KEYCollectorBase::m_notes
private
KEYStickyNotes_t libetonyek::KEYCollectorBase::m_stickyNotes
private

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

Generated for libetonyek by doxygen 1.8.9.1