summaryrefslogtreecommitdiff
path: root/include/oox/drawingml/effectproperties.hxx
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-04-22 20:30:24 +0200
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2014-04-23 14:50:59 +0200
commit71b4af858ea698f9c3fcffdfc61e3f70a7b10f63 (patch)
treed810a0d44fd352290577c582280a2bd4622dcc8e /include/oox/drawingml/effectproperties.hxx
parent5d2826dacd073e3e99f668358060927751622d52 (diff)
ooxml: Preserve outer shadow effect on shapes.
The goal is preserving the shadow effect with all its attributes using the shape grab bag. This is the relevant piece of XML in the document: <a:effectLst> <a:outerShdw blurRad="50800" dist="38100" dir="2700000" algn="tl" rotWithShape="0"> <a:schemeClr val="accent1"> <a:alpha val="40000" /> </a:schemeClr> </a:outerShdw> </a:effectLst> In first place, we added members to the structure EffectProperties to store the effect name and attributes. Later, when we create the shape, we add them to the shape grab bag together with the shadow color (if it is a theme color we store its name and transformations like in other cases). Finally, we read back all these data from the shape grab bag and write them back to the document. I added a unit test for this shape property. Change-Id: Idda2d5e2970cb8563e2ed13a84b2fa2d4b99aa70
Diffstat (limited to 'include/oox/drawingml/effectproperties.hxx')
-rw-r--r--include/oox/drawingml/effectproperties.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/oox/drawingml/effectproperties.hxx b/include/oox/drawingml/effectproperties.hxx
index 83519c0221a7..618c7b90fe38 100644
--- a/include/oox/drawingml/effectproperties.hxx
+++ b/include/oox/drawingml/effectproperties.hxx
@@ -34,6 +34,10 @@ struct OOX_DLLPUBLIC EffectProperties
{
EffectShadowProperties maShadow;
+ /** Store unsupported effect type name and its attributes */
+ OptValue< OUString > msUnsupportedEffectName;
+ std::vector< css::beans::PropertyValue > maUnsupportedEffectAttribs;
+
/** Overwrites all members that are explicitly set in rSourceProps. */
void assignUsed( const EffectProperties& rSourceProps );
@@ -41,6 +45,9 @@ struct OOX_DLLPUBLIC EffectProperties
void pushToPropMap(
PropertyMap& rPropMap,
const GraphicHelper& rGraphicHelper ) const;
+
+ void appendUnsupportedEffectAttrib( const OUString& aKey, const css::uno::Any& aValue );
+ css::beans::PropertyValue getUnsupportedEffect();
};