diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-03 14:12:47 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-03 14:12:47 +0000 |
commit | 59d889dbd77e5c84945aca77e66f41085545d051 (patch) | |
tree | 21b60affa8d1b3bf6b8d4870546d4f425bfaac33 /sd/source/ui/view/drviews3.cxx | |
parent | INTEGRATION: CWS presenterview (1.53.12); FILE MERGED (diff) | |
download | core-59d889dbd77e5c84945aca77e66f41085545d051.tar.gz core-59d889dbd77e5c84945aca77e66f41085545d051.zip |
INTEGRATION: CWS presenterview (1.41.22); FILE MERGED
2008/01/09 18:28:26 cl 1.41.22.3: #i15900# slideshow api consolidation
2007/07/11 09:11:40 af 1.41.22.2: RESYNC: (1.41-1.42); FILE MERGED
2007/07/10 13:50:08 af 1.41.22.1: #i18486# Converted several members of ViewShellBase to shared_ptrs.
Diffstat (limited to 'sd/source/ui/view/drviews3.cxx')
-rw-r--r-- | sd/source/ui/view/drviews3.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx index a88e6583a6cf..6272e8db9643 100644 --- a/sd/source/ui/view/drviews3.cxx +++ b/sd/source/ui/view/drviews3.cxx @@ -4,9 +4,9 @@ * * $RCSfile: drviews3.cxx,v $ * - * $Revision: 1.42 $ + * $Revision: 1.43 $ * - * last change: $Author: kz $ $Date: 2007-05-10 15:34:02 $ + * last change: $Author: kz $ $Date: 2008-04-03 15:12:47 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -234,10 +234,10 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) BOOL bWasBasic = FALSE; // switch page in running slide show - if(mpSlideShow && rReq.GetArgs()) + if(SlideShow::IsRunning(GetViewShellBase()) && rReq.GetArgs()) { SFX_REQUEST_ARG(rReq, pWhatPage, SfxUInt32Item, ID_VAL_WHATPAGE, FALSE); - mpSlideShow->jumpToPageNumber((sal_Int32)((pWhatPage->GetValue()-1)>>1)); + SlideShow::GetSlideShow(GetViewShellBase())->jumpToPageNumber((sal_Int32)((pWhatPage->GetValue()-1)>>1)); } else { @@ -464,7 +464,7 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) if ( ! xConfigurationController.is()) throw RuntimeException(); Reference<XConfiguration> xConfiguration ( - xConfigurationController->getConfiguration()); + xConfigurationController->getRequestedConfiguration()); if ( ! xConfiguration.is()) throw RuntimeException(); @@ -512,9 +512,10 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) { UniString sBookmark( INetURLObject::decode( pBookmark->GetValue(), '%', INetURLObject::DECODE_WITH_CHARSET ) ); - if(mpSlideShow) + rtl::Reference< sd::SlideShow > xSlideshow( SlideShow::GetSlideShow( GetViewShellBase() ) ); + if(xSlideshow.is() && xSlideshow->isRunning()) { - mpSlideShow->jumpToBookmark(sBookmark); + xSlideshow->jumpToBookmark(sBookmark); } else { @@ -543,7 +544,7 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) case SID_ATTR_YEAR2000: { - FmFormShell* pFormShell = GetViewShellBase().GetFormShellManager().GetFormShell(); + FmFormShell* pFormShell = GetViewShellBase().GetFormShellManager()->GetFormShell(); if (pFormShell != NULL) { const SfxPoolItem* pItem; |