From f35a03c381b7fed4f74cf5100b56037af6a05977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Tue, 3 Apr 2007 15:27:48 +0000 Subject: [PATCH] INTEGRATION: CWS components1 (1.4.232); FILE MERGED 2007/01/29 17:34:59 af 1.4.232.4: #i68075# Made ImpressViewShellBase the new base class. 2007/01/25 15:34:50 af 1.4.232.3: RESYNC: (1.5-1.6); FILE MERGED 2006/09/25 17:41:23 af 1.4.232.2: RESYNC: (1.4-1.5); FILE MERGED 2006/08/22 12:45:13 af 1.4.232.1: #i68075# Transition to new drawing framework. --- .../ui/view/SlideSorterViewShellBase.cxx | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/sd/source/ui/view/SlideSorterViewShellBase.cxx b/sd/source/ui/view/SlideSorterViewShellBase.cxx index 4b2e54e3f1a1..3da4260878dc 100644 --- a/sd/source/ui/view/SlideSorterViewShellBase.cxx +++ b/sd/source/ui/view/SlideSorterViewShellBase.cxx @@ -4,9 +4,9 @@ * * $RCSfile: SlideSorterViewShellBase.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: kz $ $Date: 2006-12-12 19:07:14 $ + * last change: $Author: rt $ $Date: 2007-04-03 16:27:48 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -45,6 +45,7 @@ #include "DrawDocShell.hxx" #endif #include "strings.hrc" +#include "framework/FrameworkHelper.hxx" namespace sd { @@ -66,15 +67,23 @@ SfxViewShell* __EXPORT SlideSorterViewShellBase::CreateInstance ( SfxViewFrame *pFrame, SfxViewShell *pOldView) { SlideSorterViewShellBase* pBase = new SlideSorterViewShellBase(pFrame, pOldView); - pBase->LateInit(); + pBase->LateInit(framework::FrameworkHelper::msSlideSorterURL); return pBase; } + + + + void SlideSorterViewShellBase::RegisterFactory( USHORT nPrio ) { pFactory = new SfxViewFactory( &CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW)); InitFactory(); } + + + + void SlideSorterViewShellBase::InitFactory() { SFX_VIEW_REGISTRATION(DrawDocShell); @@ -89,7 +98,7 @@ void SlideSorterViewShellBase::InitFactory() SlideSorterViewShellBase::SlideSorterViewShellBase ( SfxViewFrame* _pFrame, SfxViewShell* pOldShell) - : ViewShellBase (_pFrame, pOldShell, ViewShell::ST_SLIDE_SORTER) + : ImpressViewShellBase (_pFrame, pOldShell) { } @@ -100,5 +109,8 @@ SlideSorterViewShellBase::~SlideSorterViewShellBase (void) { } + + + } // end of namespace sd