diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-08-17 14:33:41 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-08-17 14:33:41 +0000 |
commit | 6ec68cd4e430491ed264804b0583a84a316a3d21 (patch) | |
tree | ab2f73810dfadd3c2f5743d35666b3bc7c150024 /sd/source/ui/dlg/docprev.cxx | |
parent | a5b091dff7f5511231fad600fedacd7efa42f9e4 (diff) |
INTEGRATION: CWS impress126 (1.22.106); FILE MERGED
2007/08/14 15:16:50 cl 1.22.106.1: #i79891# use correct parent window for slideshow
Diffstat (limited to 'sd/source/ui/dlg/docprev.cxx')
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index 2f19f4213b11..b3307ffec48b 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -4,9 +4,9 @@ * * $RCSfile: docprev.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: rt $ $Date: 2007-04-03 15:41:46 $ + * last change: $Author: ihi $ $Date: 2007-08-17 15:33:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -244,18 +244,13 @@ void SdDocPreviewWin::startPreview() if( pPage && (pPage->getTransitionType() != 0) ) { - SfxViewFrame* pFrame = SfxViewFrame::Current(); - if (pFrame != NULL) - { - std::auto_ptr<sd::Slideshow> pSlideShow( - new sd::Slideshow( 0, 0, pDoc, &pFrame->GetWindow() ) ); - - Reference< XDrawPage > xDrawPage( pPage->getUnoPage(), UNO_QUERY ); - Reference< XAnimationNode > xAnimationNode; - - if (pSlideShow->startPreview( xDrawPage, xAnimationNode, this )) - mpSlideShow = pSlideShow.release(); - } + std::auto_ptr<sd::Slideshow> pSlideShow( new sd::Slideshow( 0, 0, pDoc, this ) ); + + Reference< XDrawPage > xDrawPage( pPage->getUnoPage(), UNO_QUERY ); + Reference< XAnimationNode > xAnimationNode; + + if (pSlideShow->startPreview( xDrawPage, xAnimationNode, this )) + mpSlideShow = pSlideShow.release(); } } } |