diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-21 17:18:37 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-21 17:18:37 +0100 |
commit | 6e9afe9627d0aa7156c8f01f69180b8ae3dccbda (patch) | |
tree | ecdf355d5a9c2e2868a77ed5f6d632374effcb63 /sd/source/ui/animations/CustomAnimationPane.cxx | |
parent | 23951d3a0d99d72547df9850b31aaa0087aca0fe (diff) | |
parent | fa27b2da2f8e7bd9bafb4a057318ac22577727dd (diff) |
removetooltypes01: Rebase to DEV300m98
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationPane.cxx')
-rwxr-xr-x | sd/source/ui/animations/CustomAnimationPane.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index 29bde1e8ac96..7337a811a5f2 100755 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -1953,6 +1953,16 @@ void CustomAnimationPane::onChange( bool bCreate ) { CustomAnimationEffectPtr pCreated = mpMainSequence->append( pDescriptor, (*aIter), fDuration ); + // if only one shape with text and no fill or outline is selected, animate only by first level paragraphs + if( bHasText && (aTargets.size() == 1) ) + { + Reference< XShape > xShape( (*aIter), UNO_QUERY ); + if( xShape.is() && !hasVisibleShape( xShape ) ) + { + mpMainSequence->createTextGroup( pCreated, 1, -1.0, sal_False, sal_False ); + } + } + if( bFirst ) bFirst = false; else |