summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/SlideSorterViewShellBase.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-16 15:15:19 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-16 15:15:19 +0000
commit98723269e2e019702075326811f6545bec2acc72 (patch)
tree2b7fecc0baf70b39da789a466de28d9c2051a108 /sd/source/ui/view/SlideSorterViewShellBase.cxx
parent32ad83162d0dd418a611eaac8189959282dcda9d (diff)
INTEGRATION: CWS impress15 (1.2.148); FILE MERGED
2004/11/01 09:48:50 af 1.2.148.1: #i31283# Expanded the SFX_IMPL_VIEWFACTORY macro so that LateInit() is called properly.
Diffstat (limited to 'sd/source/ui/view/SlideSorterViewShellBase.cxx')
-rw-r--r--sd/source/ui/view/SlideSorterViewShellBase.cxx32
1 files changed, 29 insertions, 3 deletions
diff --git a/sd/source/ui/view/SlideSorterViewShellBase.cxx b/sd/source/ui/view/SlideSorterViewShellBase.cxx
index 297acc12a81e..1c884484b828 100644
--- a/sd/source/ui/view/SlideSorterViewShellBase.cxx
+++ b/sd/source/ui/view/SlideSorterViewShellBase.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SlideSorterViewShellBase.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obo $ $Date: 2004-06-03 11:57:48 $
+ * last change: $Author: obo $ $Date: 2004-11-16 16:15:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,10 +75,36 @@ class DrawDocShell;
TYPEINIT1(SlideSorterViewShellBase, ViewShellBase);
+// We have to expand the SFX_IMPL_VIEWFACTORY macro to call LateInit() after a
+// new SlideSorterViewShellBase object has been constructed.
+
+/*
SFX_IMPL_VIEWFACTORY(SlideSorterViewShellBase, SdResId(STR_DEFAULTVIEW))
{
SFX_VIEW_REGISTRATION(DrawDocShell);
}
+*/
+SfxViewFactory* SlideSorterViewShellBase::pFactory;
+SfxViewShell* __EXPORT SlideSorterViewShellBase::CreateInstance (
+ SfxViewFrame *pFrame, SfxViewShell *pOldView)
+{
+ SlideSorterViewShellBase* pBase = new SlideSorterViewShellBase(pFrame, pOldView);
+ pBase->LateInit();
+ return pBase;
+}
+void SlideSorterViewShellBase::RegisterFactory( USHORT nPrio )
+{
+ pFactory = new SfxViewFactory(
+ &CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
+ InitFactory();
+}
+void SlideSorterViewShellBase::InitFactory()
+{
+ SFX_VIEW_REGISTRATION(DrawDocShell);
+}
+
+
+
@@ -86,7 +112,7 @@ SFX_IMPL_VIEWFACTORY(SlideSorterViewShellBase, SdResId(STR_DEFAULTVIEW))
SlideSorterViewShellBase::SlideSorterViewShellBase (
SfxViewFrame* pFrame,
SfxViewShell* pOldShell)
- : ViewShellBase (pFrame, pOldShell, ViewShell::ST_SLIDE)
+ : ViewShellBase (pFrame, pOldShell, ViewShell::ST_SLIDE_SORTER)
{
}