Go to the documentation of this file.
10 #ifndef IWORKSTYLE_H_INCLUDED
11 #define IWORKSTYLE_H_INCLUDED
15 #include <boost/any.hpp>
16 #include <boost/optional.hpp>
24 class IWORKStyleStack;
59 template<
class Property>
69 template<
class Property>
75 const boost::optional<std::string> &
getIdent()
const;
89 const boost::optional<std::string>
m_ident;
96 #endif // IWORKSTYLE_H_INCLUDED
Definition: IWORKBezierElement.cpp:21
@ none
Definition: IWORKToken.h:674
RVNGPropertyList & m_props
Definition: IWORKCollector.cpp:176
@ stylesheet
Definition: IWORKToken.h:424
void flatten()
Copy attributes from parent style (recursively).
Definition: IWORKStyle.cpp:62
const IWORKPropertyInfo< Property >::ValueType & get(bool lookInParent=false) const
Retrieve the value of a property.
Definition: IWORKPropertyMap.h:113
@ ident
Definition: IWORKToken.h:566
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
@ i
Definition: KEY2Token.h:101
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19
IWORKStylePtr_t m_parent
Definition: IWORKStyle.h:91
void setParent(const IWORKPropertyMap *parent)
Set a new parent for this map.
Definition: IWORKPropertyMap.cpp:47
IWORKPropertyMap m_props
Definition: IWORKStyle.h:87
const boost::optional< std::string > m_parentIdent
Definition: IWORKStyle.h:90
bool link(const IWORKStylesheetPtr_t &stylesheet)
Find the parent style by its ID.
Definition: IWORKStyle.cpp:38
const boost::optional< std::string > & getIdent() const
Definition: IWORKStyle.cpp:77
void createListLevelStyles()
Creates the list level properties of a list style if it does not exists.
Definition: IWORKStyle.cpp:99
Definition: IWORKPropertyInfo.h:22
optional< ID_t > m_parent
Definition: KEY2Parser.cpp:226
const IWORKPropertyMap & getPropertyMap() const
Get the style's property map.
Definition: IWORKStyle.cpp:67
const boost::optional< std::string > & getParentIdent() const
Definition: IWORKStyle.cpp:82
void put(const typename IWORKPropertyInfo< Property >::ValueType &value)
Insert a new value for key key.
Definition: IWORKPropertyMap.h:134
const IWORKStylePtr_t getParent() const
Definition: IWORKStyle.cpp:87
const boost::optional< std::string > m_ident
Definition: IWORKStyle.h:89
bool has(bool lookInParent=false) const
Check for the presence of a property.
Definition: IWORKPropertyMap.h:78
IWORKStyle(const IWORKPropertyMap &props, const boost::optional< std::string > &ident, const boost::optional< std::string > &parentIdent)
Definition: IWORKStyle.cpp:20
Represents a (hierarchical) property map.
Definition: IWORKPropertyMap.h:25
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
std::map< unsigned, IWORKStylePtr_t > IWORKListLevels_t
Definition: IWORKTypes.h:459
const IWORKPropertyInfo< Property >::ValueType & get() const
Retrieve the value of a property.
Definition: IWORKStyle.h:70
Represents a hierarchical style.
Definition: IWORKStyle.h:29
void setParent(const IWORKStylePtr_t parent)
Definition: IWORKStyle.cpp:92
bool has() const
Check for the presence of a property.
Definition: IWORKStyle.h:60
Generated for libetonyek by
doxygen 1.8.20