libetonyek::KEYStyleBase Class Reference

A common implementation of a style. More...

#include <KEYStyles.h>

Inheritance diagram for libetonyek::KEYStyleBase:
libetonyek::KEYStyle libetonyek::KEYCellStyle libetonyek::KEYCharacterStyle libetonyek::KEYConnectionStyle libetonyek::KEYGraphicStyle libetonyek::KEYLayoutStyle libetonyek::KEYListStyle libetonyek::KEYPlaceholderStyle libetonyek::KEYSlideStyle libetonyek::KEYTabularStyle libetonyek::KEYVectorStyle

List of all members.

Public Member Functions

virtual bool link (const KEYStylesheetPtr_t &stylesheet)
 Find the parent style by its ID.
virtual void flatten ()
 Copy attributes from parent style (recursively).

Protected Member Functions

 KEYStyleBase (const KEYPropertyMap &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent)
virtual ~KEYStyleBase ()
virtual const KEYPropertyMapgetPropertyMap () const
 Get the style's property map.
virtual KEYStylePtr_t find (const KEYStylesheetPtr_t &stylesheet, const std::string &ident) const =0
boost::any lookup (const char *property, const KEYStyleContext &context=KEYStyleContext()) const
 Look up a property in this style.

Private Attributes

KEYPropertyMap m_props
const boost::optional
< std::string > 
m_ident
const boost::optional
< std::string > 
m_parentIdent
KEYStylePtr_t m_parent

Detailed Description

A common implementation of a style.


Constructor & Destructor Documentation

libetonyek::KEYStyleBase::KEYStyleBase ( const KEYPropertyMap props,
const boost::optional< std::string > &  ident,
const boost::optional< std::string > &  parentIdent 
) [protected]
libetonyek::KEYStyleBase::~KEYStyleBase ( ) [protected, virtual]

Member Function Documentation

Copy attributes from parent style (recursively).

Todo:
Will this have any effect on performance anyway?

Implements libetonyek::KEYStyle.

const KEYPropertyMap & libetonyek::KEYStyleBase::getPropertyMap ( ) const [protected, virtual]

Get the style's property map.

Implements libetonyek::KEYStyle.

Referenced by lookup().

bool libetonyek::KEYStyleBase::link ( const KEYStylesheetPtr_t stylesheet) [virtual]

Find the parent style by its ID.

  • [in] stylesheet the stylesheet to use for looking for parent.
    Returns:
    true if the parent style has been found, false otherwise.

Implements libetonyek::KEYStyle.


Member Data Documentation

const boost::optional<std::string> libetonyek::KEYStyleBase::m_ident [private]

Referenced by link().

const boost::optional<std::string> libetonyek::KEYStyleBase::m_parentIdent [private]

Referenced by link().


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