Represents a hierarchical style. More...
#include <IWORKStyle.h>
Public Member Functions | |
IWORKStyle (const IWORKPropertyMap &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent) | |
IWORKStyle (const IWORKPropertyMap &props, const boost::optional< std::string > &ident, const IWORKStylePtr_t &parent) | |
bool | link (const IWORKStylesheetPtr_t &stylesheet) |
Find the parent style by its ID. | |
void | flatten () |
Copy attributes from parent style (recursively). | |
const IWORKPropertyMap & | getPropertyMap () const |
Get the style's property map. | |
IWORKPropertyMap & | getPropertyMap () |
Get the style's property map. | |
template<class Property> | |
bool | has () const |
Check for the presence of a property. | |
template<class Property> | |
const IWORKPropertyInfo< Property >::ValueType & | get () const |
Retrieve the value of a property. | |
const boost::optional< std::string > & | getIdent () const |
void | setParent (const IWORKStylePtr_t parent) |
void | createListLevelStyles () |
Creates the list level properties of a list style if it does not exists. | |
Protected Member Functions | |
const boost::optional< std::string > & | getParentIdent () const |
const IWORKStylePtr_t | getParent () const |
Private Attributes | |
IWORKPropertyMap | m_props |
const boost::optional< std::string > | m_ident |
const boost::optional< std::string > | m_parentIdent |
IWORKStylePtr_t | m_parent |
Represents a hierarchical style.
libetonyek::IWORKStyle::IWORKStyle | ( | const IWORKPropertyMap & | props, |
const boost::optional< std::string > & | ident, | ||
const boost::optional< std::string > & | parentIdent ) |
libetonyek::IWORKStyle::IWORKStyle | ( | const IWORKPropertyMap & | props, |
const boost::optional< std::string > & | ident, | ||
const IWORKStylePtr_t & | parent ) |
void libetonyek::IWORKStyle::createListLevelStyles | ( | ) |
Creates the list level properties of a list style if it does not exists.
void libetonyek::IWORKStyle::flatten | ( | ) |
Copy attributes from parent style (recursively).
|
inline |
const boost::optional< std::string > & libetonyek::IWORKStyle::getIdent | ( | ) | const |
|
protected |
|
protected |
IWORKPropertyMap & libetonyek::IWORKStyle::getPropertyMap | ( | ) |
Get the style's property map.
const IWORKPropertyMap & libetonyek::IWORKStyle::getPropertyMap | ( | ) | const |
Get the style's property map.
|
inline |
Check for the presence of a property.
Referenced by createListLevelStyles().
bool libetonyek::IWORKStyle::link | ( | const IWORKStylesheetPtr_t & | stylesheet | ) |
Find the parent style by its ID.
true
if the parent style has been found, false
otherwise. Referenced by libetonyek::IWORKCollector::collectStylesheet().
void libetonyek::IWORKStyle::setParent | ( | const IWORKStylePtr_t | parent | ) |
|
private |
Referenced by getIdent(), IWORKStyle(), IWORKStyle(), and link().
|
private |
Referenced by getParent(), IWORKStyle(), IWORKStyle(), link(), and setParent().
|
private |
Referenced by getParentIdent(), IWORKStyle(), IWORKStyle(), and link().
|
private |
Referenced by createListLevelStyles(), get(), getPropertyMap(), getPropertyMap(), has(), IWORKStyle(), IWORKStyle(), link(), and setParent().