summaryrefslogtreecommitdiff
path: root/include/oox/ppt
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-04-26 13:25:11 +0200
committerThorsten Behrens <tbehrens@suse.com>2013-04-26 13:35:25 +0200
commitd56ba7ee6f385866d82142aab568a159009ae69e (patch)
tree585de3664b48ab71345428e4730aef7e78c1a9f4 /include/oox/ppt
parent35f86a72df84b905fd2297f8a08c75e91f43d604 (diff)
Fix bnc#705982 - make animations inside SmartArt work.
With the fallback loading of extDrawing for SmartArt graphics, slideshow animations into that drawingml fragment didn't work - for it being modelId diagram references instead of plain shape IDs. So use the modelId if present, and only then fallback to shape id. Change-Id: Iac2b8bc16255611d7ab165b72fb251cd2a65073a
Diffstat (limited to 'include/oox/ppt')
-rw-r--r--include/oox/ppt/pptshape.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/oox/ppt/pptshape.hxx b/include/oox/ppt/pptshape.hxx
index aa485adf9347..2a15dcdc17ca 100644
--- a/include/oox/ppt/pptshape.hxx
+++ b/include/oox/ppt/pptshape.hxx
@@ -27,6 +27,7 @@ namespace oox { namespace ppt {
class PPTShape : public oox::drawingml::Shape
{
+ OUString msModelId; // fallback dgs smartart shape reference
ShapeLocation meShapeLocation; // placeholdershapes (mnSubType != 0) on Master are never displayed
sal_Bool mbReferenced; // placeholdershapes on Layout are displayed only, if they are not referenced
// placeholdershapes on Slide are displayed always
@@ -55,6 +56,7 @@ public:
sal_Bool isReferenced() const { return mbReferenced; };
void setReferenced( sal_Bool bReferenced ){ mbReferenced = bReferenced; };
void setPlaceholder( oox::drawingml::ShapePtr pPlaceholder ) { mpPlaceholder = pPlaceholder; }
+ void setModelId( const OUString& rId ) { msModelId = rId; }
static oox::drawingml::ShapePtr findPlaceholder( const sal_Int32 nMasterPlaceholder, std::vector< oox::drawingml::ShapePtr >& rShapes, bool bMasterOnly = false );
static oox::drawingml::ShapePtr findPlaceholderByIndex( const sal_Int32 nIdx, std::vector< oox::drawingml::ShapePtr >& rShapes, bool bMasterOnly = false );