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< 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 WPXInputStreamPtr_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

◆ KEYCollectorBase()

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

◆ ~KEYCollectorBase()

libetonyek::KEYCollectorBase::~KEYCollectorBase ( )

Member Function Documentation

◆ collectArrowPath()

void libetonyek::KEYCollectorBase::collectArrowPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  headWidth,
double  stemRelYPos,
bool  doubleSided 
)
virtual

◆ collectBezier()

void libetonyek::KEYCollectorBase::collectBezier ( const boost::optional< ID_t > &  id,
const KEYPathPtr_t path,
bool  ref 
)
virtual

◆ collectBezierPath()

void libetonyek::KEYCollectorBase::collectBezierPath ( const boost::optional< ID_t > &  id)
virtual

◆ collectCalloutPath()

void libetonyek::KEYCollectorBase::collectCalloutPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  radius,
double  tailSize,
double  tailX,
double  tailY,
bool  quoteBubble 
)
virtual

◆ collectCellStyle()

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

◆ collectCharacterStyle()

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

◆ collectConnectionPath()

void libetonyek::KEYCollectorBase::collectConnectionPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  middleX,
double  middleY 
)
virtual

◆ collectConnectionStyle()

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

◆ collectCoveredTableCell()

void libetonyek::KEYCollectorBase::collectCoveredTableCell ( unsigned  row,
unsigned  column 
)
virtual

◆ collectData()

void libetonyek::KEYCollectorBase::collectData ( const boost::optional< ID_t > &  id,
const WPXInputStreamPtr_t stream,
const boost::optional< std::string > &  displayName,
const boost::optional< unsigned > &  type,
bool  ref 
)
virtual

◆ collectFiltered()

void libetonyek::KEYCollectorBase::collectFiltered ( const boost::optional< ID_t > &  id,
const boost::optional< KEYSize > &  size 
)
virtual

◆ collectFilteredImage()

void libetonyek::KEYCollectorBase::collectFilteredImage ( const boost::optional< ID_t > &  id,
bool  ref 
)
virtual

◆ collectGeometry()

void libetonyek::KEYCollectorBase::collectGeometry ( boost::optional< ID_t > &  id,
boost::optional< KEYSize > &  naturalSize,
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

◆ collectGraphicStyle()

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

◆ collectGroup()

void libetonyek::KEYCollectorBase::collectGroup ( const boost::optional< ID_t > &  id,
const KEYGroupPtr_t group 
)
virtual

◆ collectImage()

void libetonyek::KEYCollectorBase::collectImage ( const boost::optional< ID_t > &  id,
const KEYImagePtr_t image 
)
virtual

◆ collectLayer()

void libetonyek::KEYCollectorBase::collectLayer ( const boost::optional< ID_t > &  id,
bool  ref 
)
virtual

◆ collectLayoutStyle()

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

◆ collectLeveled()

void libetonyek::KEYCollectorBase::collectLeveled ( const boost::optional< ID_t > &  id,
const boost::optional< KEYSize > &  size 
)
virtual

◆ collectLine()

void libetonyek::KEYCollectorBase::collectLine ( const boost::optional< ID_t > &  id,
const KEYLinePtr_t line 
)
virtual

◆ collectLineBreak()

void libetonyek::KEYCollectorBase::collectLineBreak ( )
virtual

◆ collectListStyle()

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

◆ collectMedia()

void libetonyek::KEYCollectorBase::collectMedia ( const boost::optional< ID_t > &  id)
virtual

◆ collectMovieMedia()

void libetonyek::KEYCollectorBase::collectMovieMedia ( const boost::optional< ID_t > &  id)
virtual

◆ collectNote()

void libetonyek::KEYCollectorBase::collectNote ( )
virtual

◆ collectParagraphStyle()

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

◆ collectPlaceholderStyle()

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

◆ collectPolygonPath()

void libetonyek::KEYCollectorBase::collectPolygonPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
unsigned  edges 
)
virtual

◆ collectRoundedRectanglePath()

void libetonyek::KEYCollectorBase::collectRoundedRectanglePath ( const boost::optional< ID_t > &  id,
const KEYSize size,
double  radius 
)
virtual

◆ collectShape()

void libetonyek::KEYCollectorBase::collectShape ( const boost::optional< ID_t > &  id)
virtual

◆ collectSlideStyle()

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

◆ collectStarPath()

void libetonyek::KEYCollectorBase::collectStarPath ( const boost::optional< ID_t > &  id,
const KEYSize size,
unsigned  points,
double  innerRadius 
)
virtual

◆ collectStickyNote()

void libetonyek::KEYCollectorBase::collectStickyNote ( )
virtual

◆ collectStylesheet()

void libetonyek::KEYCollectorBase::collectStylesheet ( const boost::optional< ID_t > &  id,
const boost::optional< ID_t > &  parent 
)
virtual

◆ collectTab()

void libetonyek::KEYCollectorBase::collectTab ( )
virtual

◆ collectTable()

void libetonyek::KEYCollectorBase::collectTable ( )
virtual

◆ collectTableCell()

void libetonyek::KEYCollectorBase::collectTableCell ( unsigned  row,
unsigned  column,
const boost::optional< std::string > &  content,
unsigned  rowSpan,
unsigned  columnSpan 
)
virtual

◆ collectTableRow()

void libetonyek::KEYCollectorBase::collectTableRow ( )
virtual

◆ collectTableSizes()

void libetonyek::KEYCollectorBase::collectTableSizes ( const KEYTable::RowSizes_t rowSizes,
const KEYTable::ColumnSizes_t columnSizes 
)
virtual

◆ collectTabularStyle()

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

◆ collectText()

void libetonyek::KEYCollectorBase::collectText ( const boost::optional< ID_t > &  style,
const std::string &  text 
)
virtual

◆ collectTextPlaceholder()

void libetonyek::KEYCollectorBase::collectTextPlaceholder ( const boost::optional< ID_t > &  id,
bool  title,
bool  ref 
)
virtual

◆ collectUnfiltered()

void libetonyek::KEYCollectorBase::collectUnfiltered ( const boost::optional< ID_t > &  id,
const boost::optional< KEYSize > &  size,
bool  ref 
)
virtual

◆ collectVectorStyle()

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

◆ endGroup()

void libetonyek::KEYCollectorBase::endGroup ( )
virtual

◆ endLayer()

void libetonyek::KEYCollectorBase::endLayer ( )
virtual

◆ endLevel()

void libetonyek::KEYCollectorBase::endLevel ( )
virtual

Implements libetonyek::KEYCollector.

Referenced by endLayer().

◆ endPage()

void libetonyek::KEYCollectorBase::endPage ( )
virtual

◆ endParagraph()

void libetonyek::KEYCollectorBase::endParagraph ( )
virtual

◆ endText()

void libetonyek::KEYCollectorBase::endText ( )
virtual

End of a text block.

Implements libetonyek::KEYCollector.

◆ getDefaults()

const KEYDefaults & libetonyek::KEYCollectorBase::getDefaults ( ) const
protected

◆ getLayer()

const KEYLayerPtr_t & libetonyek::KEYCollectorBase::getLayer ( ) const
protected

◆ getNotes()

const KEYObjectList_t & libetonyek::KEYCollectorBase::getNotes ( ) const
protected

◆ getStickyNotes()

const KEYStickyNotes_t & libetonyek::KEYCollectorBase::getStickyNotes ( ) const
protected

◆ isCollecting()

◆ setCollecting()

◆ startGroup()

void libetonyek::KEYCollectorBase::startGroup ( )
virtual

◆ startLayer()

void libetonyek::KEYCollectorBase::startLayer ( )
virtual

◆ startLevel()

void libetonyek::KEYCollectorBase::startLevel ( )
virtual

Implements libetonyek::KEYCollector.

Referenced by startLayer().

◆ startPage()

void libetonyek::KEYCollectorBase::startPage ( )
virtual

◆ startParagraph()

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

◆ startText()

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

◆ m_collecting

◆ m_currentContent

KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentContent
private

◆ m_currentData

KEYDataPtr_t libetonyek::KEYCollectorBase::m_currentData
private

◆ m_currentFiltered

KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentFiltered
private

◆ m_currentLayer

KEYLayerPtr_t libetonyek::KEYCollectorBase::m_currentLayer
private

◆ m_currentLeveled

KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentLeveled
private

◆ m_currentPath

◆ m_currentPlaceholderStyle

KEYPlaceholderStylePtr_t libetonyek::KEYCollectorBase::m_currentPlaceholderStyle
private

◆ m_currentStylesheet

◆ m_currentTable

KEYTable libetonyek::KEYCollectorBase::m_currentTable
private

◆ m_currentText

◆ m_currentUnfiltered

KEYMediaContentPtr_t libetonyek::KEYCollectorBase::m_currentUnfiltered
private

◆ m_defaults

const KEYDefaults& libetonyek::KEYCollectorBase::m_defaults
private

Referenced by collectGeometry(), and getDefaults().

◆ m_dict

◆ m_groupLevel

int libetonyek::KEYCollectorBase::m_groupLevel
private

◆ m_layerOpened

bool libetonyek::KEYCollectorBase::m_layerOpened
private

◆ m_levelStack

◆ m_newStyles

◆ m_notes

KEYObjectList_t libetonyek::KEYCollectorBase::m_notes
private

◆ m_objectsStack

◆ m_stickyNotes

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.13