14#include <oox/token/namespaces.hxx>
15#include <oox/token/tokens.hxx>
30 , mrEffectProperties(rEffectProperties)
80 case A_TOKEN( outerShdw ):
97 rEffect.mnBlurRadius = rAttribs.
getInteger(XML_blurRad, 0);
98 rEffect.mnDistance = rAttribs.
getInteger(XML_dist, 0);
99 rEffect.mnDirection = rAttribs.
getInteger(XML_dir, 0);
102 rEffect.mnScewX = rAttribs.
getInteger(XML_kx, 0);
103 rEffect.mnScewY = rAttribs.
getInteger(XML_ky, 0);
106 rEffect.mbRotateWithShape = rAttribs.
getBool(XML_rotWithShape,
true);
107 pColor = &rEffect.maColor;
112 case A_TOKEN( innerShdw ):
125 rEffect.mnBlurRadius = rAttribs.
getInteger(XML_blurRad, 0);
126 rEffect.mnDistance = rAttribs.
getInteger(XML_dist, 0);
127 rEffect.mnDirection = rAttribs.
getInteger(XML_dir, 0);
128 pColor = &rEffect.maColor;
133 case A_TOKEN( glow ):
144 rEffect.mnRadius = rAttribs.
getInteger(XML_rad, 0);
145 pColor = &rEffect.maColor;
150 case A_TOKEN( softEdge ):
157 rEffect.mnRadius = rAttribs.
getInteger(XML_rad, 0);
161 case A_TOKEN( reflection ):
171 rEffect.mnBlurRadius = rAttribs.
getInteger(XML_blurRad, 0);
172 rEffect.mnDistance = rAttribs.
getInteger(XML_dist, 0);
173 rEffect.mnDirection = rAttribs.
getInteger(XML_dir, 0);
176 rEffect.mnScewX = rAttribs.
getInteger(XML_kx, 0);
177 rEffect.mnScewY = rAttribs.
getInteger(XML_ky, 0);
180 rEffect.mbRotateWithShape = rAttribs.
getBool(XML_rotWithShape,
true);
186 rEffect.mnFadeDirection = rAttribs.
getInteger(XML_fadeDir, 5400000);
188 pColor = &rEffect.maColor;
192 case A_TOKEN( blur ):
202 rEffect.mnRadius = rAttribs.
getInteger(XML_rad, 0);
203 rEffect.mbGrow = rAttribs.
getBool(XML_grow,
true);
204 pColor = &rEffect.maColor;
std::vector< Effect > maEffectList
Provides access to attribute values of an element.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
bool hasAttribute(sal_Int32 nAttrToken) const
Returns true, if the specified attribute is present.
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
std::optional< bool > getBool(sal_Int32 nAttrToken) const
Returns the boolean value of the specified attribute.
std::optional< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
Context handler for elements that contain a color value element (a:scrgbClr, a:srgbClr,...
virtual ~EffectPropertiesContext() override
model::EffectStyle * mpEffectStyle
virtual ::oox::core::ContextHandlerRef onCreateContext(::sal_Int32 Element, const ::oox::AttributeList &rAttribs) override
static void saveUnsupportedAttribs(Effect &rEffect, const AttributeList &rAttribs)
EffectProperties & mrEffectProperties
EffectPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, EffectProperties &rEffectProperties, model::EffectStyle *pEffectStyle=nullptr) noexcept
model::RectangleAlignment convertToRectangleAlignment(sal_Int32 nToken)
double GetPositiveFixedPercentage(const OUString &sValue)
Converts a ST_PositiveFixedPercentage to a float.
sal_Int32 GetPercent(std::u16string_view sValue)
converts a ST_Percentage % string into 1/1000th of %
std::optional< sal_Int64 > moGlowRad
EffectGlowProperties maGlow
EffectSoftEdgeProperties maSoftEdge
std::vector< std::unique_ptr< Effect > > m_Effects
Stores all effect properties, including those not supported by core yet.
EffectShadowProperties maShadow
std::optional< sal_Int64 > moShadowDist
std::optional< sal_Int64 > moShadowSx
std::optional< sal_Int64 > moShadowBlur
std::optional< sal_Int64 > moShadowSy
std::optional< sal_Int64 > moShadowDir
std::optional< model::RectangleAlignment > moShadowAlignment
std::optional< sal_Int64 > moRad
std::map< OUString, css::uno::Any > maAttribs
model::EffectStyle * mpEffectStyle