summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsj.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-16 13:18:23 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-16 13:18:23 +0000
commit1fac19d247454045b39fb2bcf4bd15c2cdeb65ab (patch)
tree8c923803c850e79b09ec625559210e77d313f526 /sd/source/ui/view/drviewsj.cxx
parentf637ac6937710f5e3e307b10f4d1293e055a7aa7 (diff)
INTEGRATION: CWS draw10 (1.9.114); FILE MERGED
2003/05/12 12:30:19 cl 1.9.114.1: #109140# added -start command line parameter
Diffstat (limited to 'sd/source/ui/view/drviewsj.cxx')
-rw-r--r--sd/source/ui/view/drviewsj.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviewsj.cxx b/sd/source/ui/view/drviewsj.cxx
index 1e704ffadab4..f4ad7a815419 100644
--- a/sd/source/ui/view/drviewsj.cxx
+++ b/sd/source/ui/view/drviewsj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drviewsj.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: cl $ $Date: 2002-11-20 10:27:19 $
+ * last change: $Author: vg $ $Date: 2003-05-16 14:18:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -637,6 +637,21 @@ void SdDrawViewShell::SFX_NOTIFY(SfxBroadcaster& rBC, const TypeId& rBCType,
SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
}
+
+ if( rHint.IsA(TYPE(SfxEventHint)) )
+ {
+ if( ((SfxEventHint&)rHint).GetEventId() == SFX_EVENT_OPENDOC )
+ {
+ if( pDoc && pDoc->IsStartWithPresentation() )
+ {
+ if( GetViewFrame() )
+ {
+ pDoc->SetStartWithPresentation( false );
+ GetViewFrame()->GetDispatcher()->Execute( SID_PRESENTATION, SFX_CALLMODE_ASYNCHRON );
+ }
+ }
+ }
+ }
}