summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-03-30 09:30:44 +0000
committerRüdiger Timm <rt@openoffice.org>2005-03-30 09:30:44 +0000
commit5016d77a1b0edc4f01214d0ccad1f33f2f498e77 (patch)
tree935ef24c0a9e252c1f0b5a0b0c6b804a4c45af22 /sd/source/ui/slideshow
parent4e3073522acb657104585afa905959343093d127 (diff)
INTEGRATION: CWS impress40 (1.3.80); FILE MERGED
2005/03/17 11:22:03 cl 1.3.80.1: #i45157# fixed wizard preview
Diffstat (limited to 'sd/source/ui/slideshow')
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index fddd8a2b19f1..dffb02d5fedf 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: slideshow.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kz $ $Date: 2005-01-21 16:34:40 $
+ * last change: $Author: rt $ $Date: 2005-03-30 10:30:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,7 +91,17 @@ bool Slideshow::startPreview(
const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xAnimationNode,
::Window* pParent )
{
- return mpImpl->startPreview( xDrawPage, xAnimationNode, pParent );
+ if( mpImpl->startPreview( xDrawPage, xAnimationNode, pParent ) )
+ {
+ ShowWindow* pShowWindow = mpImpl->getShowWindow();
+ if( pShowWindow )
+ pShowWindow->setSlideshow( this );
+ return true;
+ }
+ else
+ {
+ return false;
+ }
}
void Slideshow::paint( const Rectangle& rRect )