23#include <oox/token/namespaces.hxx>
24#include <oox/token/tokens.hxx>
32static void setClrMap( const ::oox::AttributeList& rAttributes,
33 ClrMap& rClrMap, sal_Int32 nToken )
35 if ( rAttributes.hasAttribute(
nToken ) )
37 sal_Int32 nMappedToken = rAttributes.getToken(
nToken, 0 );
43 const ::oox::AttributeList& rAttributes,
ClrMap& rClrMap )
46 setClrMap( rAttributes, rClrMap, XML_bg1 );
47 setClrMap( rAttributes, rClrMap, XML_tx1 );
48 setClrMap( rAttributes, rClrMap, XML_bg2 );
49 setClrMap( rAttributes, rClrMap, XML_tx2 );
50 setClrMap( rAttributes, rClrMap, XML_accent1 );
51 setClrMap( rAttributes, rClrMap, XML_accent2 );
52 setClrMap( rAttributes, rClrMap, XML_accent3 );
53 setClrMap( rAttributes, rClrMap, XML_accent4 );
54 setClrMap( rAttributes, rClrMap, XML_accent5 );
55 setClrMap( rAttributes, rClrMap, XML_accent6 );
56 setClrMap( rAttributes, rClrMap, XML_hlink );
57 setClrMap( rAttributes, rClrMap, XML_folHlink );
62 , mrClrScheme(rClrScheme)
63 , mrColorSet(rColorSet)
96 , mrClrScheme(rClrScheme)
97 , mrColorSet(rColorSet)
120 case A_TOKEN(
hlink ):
void add(model::ThemeColorType Type, Color aColorData)
Provides access to attribute values of an element.
XmlFilterBase & getFilter() const
Returns the filter instance.
void setColorMap(sal_Int32 nClrToken, sal_Int32 nMappedClrToken)
void setColor(sal_Int32 nSchemeClrToken, ::Color nColor)
Context handler for elements that contain a color value element (a:scrgbClr, a:srgbClr,...
::Color getColor(const GraphicHelper &rGraphicHelper, ::Color nPhClr=API_RGB_TRANSPARENT) const
Returns the final RGB color value.
clrMapContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttributes, ClrMap &rClrMap)
clrSchemeColorContext(::oox::core::ContextHandler2Helper const &rParent, ClrScheme &rClrScheme, model::ColorSet &mrColorSet, sal_Int32 nColorToken)
model::ColorSet & mrColorSet
virtual ~clrSchemeColorContext() override
model::ColorSet & mrColorSet
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
clrSchemeContext(::oox::core::ContextHandler2Helper const &rParent, ClrScheme &rClrScheme, model::ColorSet &rColorSet)
static void setClrMap(const ::oox::AttributeList &rAttributes, ClrMap &rClrMap, sal_Int32 nToken)