10 #ifndef IWORKSTYLE_H_INCLUDED    11 #define IWORKSTYLE_H_INCLUDED    15 #include <boost/any.hpp>    16 #include <boost/optional.hpp>    24 class IWORKStyleStack;
    55   template<
class Property>
    65   template<
class Property>
    71   const boost::optional<std::string> &
getIdent() 
const;
    76   const boost::optional<std::string> 
m_ident;
    83 #endif // IWORKSTYLE_H_INCLUDED 
boost::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19
bool link(const IWORKStylesheetPtr_t &stylesheet)
Find the parent style by its ID. 
Definition: IWORKStyle.cpp:35
Definition: IWORKBezierElement.cpp:18
bool has() const
Check for the presence of a property. 
Definition: IWORKStyle.h:56
const boost::optional< std::string > & getIdent() const
Definition: IWORKStyle.cpp:71
Definition: IWORKToken.h:257
Represents a hierarchical style. 
Definition: IWORKStyle.h:28
boost::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
const IWORKPropertyMap & getPropertyMap() const
Get the style's property map. 
Definition: IWORKStyle.cpp:66
IWORKStyle(const IWORKPropertyMap &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent)
Definition: IWORKStyle.cpp:17
Represents a (hierarchical) property map. 
Definition: IWORKPropertyMap.h:23
void flatten()
Copy attributes from parent style (recursively). 
Definition: IWORKStyle.cpp:61
const IWORKPropertyInfo< Property >::ValueType & get(bool lookInParent=false) const
Retrieve the value of a property. 
Definition: IWORKPropertyMap.h:112
Definition: IWORKToken.h:317
Definition: IWORKPropertyInfo.h:21
const boost::optional< std::string > m_parentIdent
Definition: IWORKStyle.h:77
const boost::optional< std::string > m_ident
Definition: IWORKStyle.h:76
bool has(bool lookInParent=false) const
Check for the presence of a property. 
Definition: IWORKPropertyMap.h:77
IWORKPropertyMap m_props
Definition: IWORKStyle.h:74
IWORKStylePtr_t m_parent
Definition: IWORKStyle.h:78