diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-04-30 11:18:49 +0200 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-04-30 16:46:10 +0200 |
commit | 2310af236659f4fdd4c26b1e277e568d04a20687 (patch) | |
tree | 780b478dec8d85c508a7f7cae8ac73f04b831a89 /oox/source/drawingml | |
parent | f519bfdef11d7b14fbdc7bdbeb286783e08416ed (diff) |
ooxml: Preserve blur effect on shapes.
Reused the code for other effects just adding the new attribute
"grow".
I didn't add a unit test for this effect because I found no way to
apply it to an object in Word, but it's technically part of the
standard.
Change-Id: I391aff17f59d49d6bf339a71481dcdb51c537c9e
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r-- | oox/source/drawingml/effectpropertiescontext.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/drawingml/effectpropertiescontext.cxx b/oox/source/drawingml/effectpropertiescontext.cxx index 6699678a017a..2493ec94c3de 100644 --- a/oox/source/drawingml/effectpropertiescontext.cxx +++ b/oox/source/drawingml/effectpropertiescontext.cxx @@ -80,6 +80,9 @@ void EffectPropertiesContext::saveUnsupportedAttribs( const AttributeList& rAttr if( rAttribs.hasAttribute( XML_stPos ) ) mrEffectProperties.appendUnsupportedEffectAttrib( "stPos", makeAny( rAttribs.getInteger( XML_stPos, 0 ) ) ); + if( rAttribs.hasAttribute( XML_grow ) ) + mrEffectProperties.appendUnsupportedEffectAttrib( "grow", + makeAny( rAttribs.getInteger( XML_grow, 0 ) ) ); } ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) @@ -109,6 +112,7 @@ ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, case A_TOKEN( glow ): case A_TOKEN( softEdge ): case A_TOKEN( reflection ): + case A_TOKEN( blur ): { if( nElement == A_TOKEN( glow ) ) mrEffectProperties.msUnsupportedEffectName = "glow"; @@ -116,6 +120,8 @@ ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, mrEffectProperties.msUnsupportedEffectName = "softEdge"; else if( nElement == A_TOKEN( reflection ) ) mrEffectProperties.msUnsupportedEffectName = "reflection"; + else if( nElement == A_TOKEN( blur ) ) + mrEffectProperties.msUnsupportedEffectName = "blur"; saveUnsupportedAttribs( rAttribs ); return new ColorContext( *this, mrEffectProperties.maShadow.moShadowColor ); } |