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

List of all members.

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.
virtual void endText ()
 End of a text block.
virtual void startLevel ()
virtual void endLevel ()

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


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 WPXInputStreamPtr_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< 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::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::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::collectStylesheet ( const boost::optional< ID_t > &  id,
const boost::optional< ID_t > &  parent 
) [virtual]
void libetonyek::KEYCollectorBase::collectTableCell ( unsigned  row,
unsigned  column,
const boost::optional< std::string > &  content,
unsigned  rowSpan,
unsigned  columnSpan 
) [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]

Implements libetonyek::KEYCollector.

Referenced by endLayer().

End of a text block.

Implements libetonyek::KEYCollector.

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


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