A common implementation of a style. More...
#include <KEYStyles.h>
Public Member Functions | |
virtual bool | link (const KEYStylesheetPtr_t &stylesheet) |
Find the parent style by its ID. More... | |
virtual void | flatten () |
Copy attributes from parent style (recursively). More... | |
![]() | |
virtual | ~KEYStyle ()=0 |
Protected Member Functions | |
KEYStyleBase (const KEYPropertyMap &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent) | |
virtual | ~KEYStyleBase () |
virtual const KEYPropertyMap & | getPropertyMap () const |
Get the style's property map. More... | |
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. More... | |
Private Attributes | |
KEYPropertyMap | m_props |
const boost::optional < std::string > | m_ident |
const boost::optional < std::string > | m_parentIdent |
KEYStylePtr_t | m_parent |
A common implementation of a style.
|
protected |
|
protectedvirtual |
|
protectedpure virtual |
Implemented in libetonyek::KEYVectorStyle, libetonyek::KEYTabularStyle, libetonyek::KEYSlideStyle, libetonyek::KEYPlaceholderStyle, libetonyek::KEYParagraphStyle, libetonyek::KEYListStyle, libetonyek::KEYLayoutStyle, libetonyek::KEYGraphicStyle, libetonyek::KEYConnectionStyle, libetonyek::KEYCharacterStyle, and libetonyek::KEYCellStyle.
Referenced by link().
|
virtual |
Copy attributes from parent style (recursively).
Implements libetonyek::KEYStyle.
|
protectedvirtual |
|
virtual |
Find the parent style by its ID.
true
if the parent style has been found, false
otherwise. Implements libetonyek::KEYStyle.
|
protected |
Look up a property in this style.
Referenced by libetonyek::KEYPlaceholderStyle::getGeometry().
|
private |
Referenced by link().
|
private |
Referenced by link().
|
private |
Referenced by link().
|
private |
Referenced by getPropertyMap(), and link().