diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2011-12-30 16:09:42 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2011-12-30 16:13:06 +0530 |
commit | 60b7f09ed5980248c8f3088adf80380d02d66358 (patch) | |
tree | 27bdb33cbea5af19ab4720862fe62adb5dd8f04d /oox/source/drawingml/shape.cxx | |
parent | 18692cc1412bd7eca37d80d4345c0ae775d94ac5 (diff) |
n#655408: Importing extLst of drawings in diagrams.
data*.xml contains the list of drawings which can be imported
instead. These are easier to import now that we support better
smartart.
Diffstat (limited to 'oox/source/drawingml/shape.cxx')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index a261eb915f4c..f551b85ce757 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -591,6 +591,13 @@ TextBodyPtr Shape::getTextBody() return mpTextBody; } +void Shape::moveAllToPosition( const Point &rPoint ) +{ + setPosition( Point( rPoint.X + maPosition.X, rPoint.Y + maPosition.Y ) ); + for( ::std::vector<ShapePtr>::const_iterator aIt = maChildren.begin(), aEnd = maChildren.end();aIt != aEnd; ++aIt ) + (*aIt)->moveAllToPosition( rPoint ); +} + void Shape::setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle ) { OSL_TRACE("set master text list style to shape id: %s", rtl::OUStringToOString(msId, RTL_TEXTENCODING_UTF8 ).getStr()); |