summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-01-11 16:01:14 +0100
committerRadek Doulik <rodo@novell.com>2012-01-11 16:03:25 +0100
commit909b58fc559fc3e4e66d86ecc39d73f355fc4d8f (patch)
tree1d8e1559348e885e440eba410a398f4705501ccf
parent158e9271f4f9760a6ffa5700d9bb389d85d7b2ae (diff)
pptx: support fill=[darken|darkenLess|lighten|lightenLess] in path element
-rw-r--r--oox/source/drawingml/customshapegeometry.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/oox/source/drawingml/customshapegeometry.cxx b/oox/source/drawingml/customshapegeometry.cxx
index d9e2aa7433d5..c76c77f6041a 100644
--- a/oox/source/drawingml/customshapegeometry.cxx
+++ b/oox/source/drawingml/customshapegeometry.cxx
@@ -1009,9 +1009,25 @@ Path2DContext::Path2DContext( ContextHandler& rParent, const Reference< XFastAtt
Path2DContext::~Path2DContext()
{
EnhancedCustomShapeSegment aNewSegment;
- if ( mrPath2D.fill == XML_none )
+ switch ( mrPath2D.fill )
{
- aNewSegment.Command = EnhancedCustomShapeSegmentCommand::NOFILL;
+ case XML_none:
+ aNewSegment.Command = EnhancedCustomShapeSegmentCommand::NOFILL;
+ break;
+ case XML_darken:
+ aNewSegment.Command = EnhancedCustomShapeSegmentCommand::DARKEN;
+ break;
+ case XML_darkenLess:
+ aNewSegment.Command = EnhancedCustomShapeSegmentCommand::DARKENLESS;
+ break;
+ case XML_lighten:
+ aNewSegment.Command = EnhancedCustomShapeSegmentCommand::LIGHTEN;
+ break;
+ case XML_lightenLess:
+ aNewSegment.Command = EnhancedCustomShapeSegmentCommand::LIGHTENLESS;
+ break;
+ }
+ if (mrPath2D.fill != XML_norm) {
aNewSegment.Count = 0;
mrSegments.push_back( aNewSegment );
}