summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/animexp.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2002-06-17 12:55:25 +0000
committerChristian Lippka <cl@openoffice.org>2002-06-17 12:55:25 +0000
commit9e7f0cfb015f93ad34c503f3ec3cdbbb78b6e930 (patch)
treea786f7e618935cefdf44bba3ddd758b90a69baa5 /xmloff/source/draw/animexp.cxx
parent2d6fbb550a360605b11928529aca95bab116db4c (diff)
#55912# fixed animation at path
Diffstat (limited to 'xmloff/source/draw/animexp.cxx')
-rw-r--r--xmloff/source/draw/animexp.cxx35
1 files changed, 33 insertions, 2 deletions
diff --git a/xmloff/source/draw/animexp.cxx b/xmloff/source/draw/animexp.cxx
index 9fcd4ea75a92..3825f36fa679 100644
--- a/xmloff/source/draw/animexp.cxx
+++ b/xmloff/source/draw/animexp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: animexp.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: cl $ $Date: 2002-03-21 09:45:10 $
+ * last change: $Author: cl $ $Date: 2002-06-17 13:55:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -342,6 +342,37 @@ XMLAnimationsExporter::~XMLAnimationsExporter()
mpImpl = NULL;
}
+void XMLAnimationsExporter::prepare( Reference< XShape > xShape )
+{
+ try
+ {
+ // check for presentation shape service
+ {
+ Reference< XServiceInfo > xServiceInfo( xShape, UNO_QUERY );
+ if( !xServiceInfo.is() || !xServiceInfo->supportsService( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.shape" ) ) ) )
+ return;
+ }
+
+ Reference< XPropertySet > xProps( xShape, UNO_QUERY );
+ if( xProps.is() )
+ {
+ AnimationEffect eEffect;
+ xProps->getPropertyValue( mpImpl->msEffect ) >>= eEffect;
+ if( eEffect == AnimationEffect_PATH )
+ {
+ Reference< XShape > xPath;
+ xProps->getPropertyValue( mpImpl->msAnimPath ) >>= xPath;
+ if( xPath.is() )
+ mpImpl->mxShapeExp->createShapeId( xPath );
+ }
+ }
+ }
+ catch( Exception e )
+ {
+ DBG_ERROR("exception catched while collection animation information!");
+ }
+}
+
void XMLAnimationsExporter::collect( Reference< XShape > xShape )
{
try