summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/dlgass.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 19:01:41 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 19:01:41 +0000
commit428cae5486ef4b5cf7d51c229b4f011859337b20 (patch)
treefae562ffac5699e8e558efebddba4d39449f6117 /sd/source/ui/dlg/dlgass.cxx
parentec38c8bf25931fab089c41f3d7297dec3bb9ba8b (diff)
INTEGRATION: CWS presentationengine01 (1.26.90); FILE MERGED
2004/10/12 23:01:32 thb 1.26.90.5: RESYNC: (1.26-1.28); FILE MERGED 2004/09/30 16:09:39 cl 1.26.90.4: added new preview for wizard 2004/09/27 20:25:58 cl 1.26.90.3: added new slide transitions to wizard 2004/08/28 22:48:26 cl 1.26.90.2: removed old presentation code 2004/08/25 15:24:04 cl 1.26.90.1: replaced old FuSlideShow with new SlideShow
Diffstat (limited to 'sd/source/ui/dlg/dlgass.cxx')
-rw-r--r--sd/source/ui/dlg/dlgass.cxx37
1 files changed, 27 insertions, 10 deletions
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx
index b0d740c9c813..875a638c041a 100644
--- a/sd/source/ui/dlg/dlgass.cxx
+++ b/sd/source/ui/dlg/dlgass.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlgass.cxx,v $
*
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
- * last change: $Author: kz $ $Date: 2004-10-04 18:21:56 $
+ * last change: $Author: rt $ $Date: 2004-11-26 20:01:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -590,7 +590,7 @@ AssistentDlgImpl::AssistentDlgImpl( Window* pWindow, const Link& rFinishLink, BO
m_pPage3LogoCB = new CheckBox( pWindow, SdResId( CB_PAGE3_LOGO) ));
m_pPage3EffectLB->Fill();
- m_pPage3EffectLB->SelectEffect( presentation::FadeEffect_NONE );
+// m_pPage3EffectLB->SelectEffect( presentation::FadeEffect_NONE );
m_pPage3EffectLB->SetSelectHdl( LINK(this,AssistentDlgImpl,SelectEffectHdl ));
m_pPage3EffectLB->SetDropDownLineCount( 12 );
@@ -1040,9 +1040,10 @@ SfxObjectShellLock AssistentDlgImpl::GetDocument()
UINT32 nNewTime = (UINT32)m_pPage3PresTimeTMF->GetTime().GetMSFromTime() / 1000;
if(bKiosk)
{
- pDoc->SetPresEndless(bKiosk);
- pDoc->SetPresPause( (UINT32)m_pPage3BreakTMF->GetTime().GetMSFromTime() / 1000 );
- pDoc->SetPresShowLogo( m_pPage3LogoCB->IsChecked() );
+ PresentationSettings& rSettings = pDoc->getPresentationSettings();
+ rSettings.mbEndless = bKiosk;
+ rSettings.mnPauseTimeout = (sal_Int32)m_pPage3BreakTMF->GetTime().GetMSFromTime() / 1000;
+ rSettings.mbShowPauseLogo = m_pPage3LogoCB->IsChecked();
}
USHORT nPgAbsNum = 0;
@@ -1052,8 +1053,9 @@ SfxObjectShellLock AssistentDlgImpl::GetDocument()
SdPage* pPage = pDoc->GetSdPage( nPgRelNum, PK_STANDARD );
if( m_pPage5PageListCT->IsPageChecked(nPgAbsNum) )
{
- pPage->SetFadeEffect( m_pPage3EffectLB->GetSelectedEffect() );
- pPage->SetFadeSpeed( (FadeSpeed)m_pPage3SpeedLB->GetSelectEntryPos() );
+ m_pPage3EffectLB->applySelected(pPage);
+ const sal_uInt16 nPos = m_pPage3SpeedLB->GetSelectEntryPos();
+ pPage->setTransitionDuration( (nPos == 0) ? 3.0 : (nPos == 1) ? 2.0 : 1.0 );
if(bKiosk)
{
pPage->SetPresChange( PRESCHANGE_AUTO );
@@ -1192,7 +1194,21 @@ IMPL_LINK( AssistentDlgImpl, SelectEffectHdl, void*, EMPTYARG )
IMPL_LINK( AssistentDlgImpl, EffectPreviewHdl, Button *, EMPTYARG )
{
if(m_bPreview && xDocShell.Is() )
- m_aPreview.ShowEffect( m_pPage3EffectLB->GetSelectedEffect(), (FadeSpeed)m_pPage3SpeedLB->GetSelectEntryPos() );
+ {
+ SfxObjectShell* pShell = xDocShell;
+ DrawDocShell* pDocShell = dynamic_cast< DrawDocShell * >(pShell);
+ if( pDocShell )
+ {
+ SdDrawDocument* pDoc = pDocShell->GetDoc();
+ if( pDoc )
+ {
+ SdPage* pPage = pDoc->GetSdPage( m_nShowPage, PK_STANDARD );
+ if( pPage )
+ m_pPage3EffectLB->applySelected(pPage);
+ }
+ }
+ m_aPreview.startPreview();
+ }
return 0;
}
@@ -1393,7 +1409,6 @@ void AssistentDlgImpl::UpdateUserData()
SdrObject* pObj;
SdrObjKind eSdrObjKind;
String aEmptyString;
- USHORT nIndex;
sd::PresentationObjectList::iterator aIter( pPage->GetPresObjList().begin() );
const sd::PresentationObjectList::iterator aEnd( pPage->GetPresObjList().end() );
@@ -1615,7 +1630,9 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
if ( !xDocShell.Is() || !m_bPreview )
m_aPreview.SetObjectShell( 0 );
else
+ {
m_aPreview.SetObjectShell( xDocShell, m_nShowPage );
+ }
m_bPreviewUpdating = FALSE;
}