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.
This commit is contained in:
Rüdiger Timm 2007-04-03 15:27:48 +00:00
parent f5ec8d239f
commit f35a03c381

View file

@ -4,9 +4,9 @@
* *
* $RCSfile: SlideSorterViewShellBase.cxx,v $ * $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 Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
@ -45,6 +45,7 @@
#include "DrawDocShell.hxx" #include "DrawDocShell.hxx"
#endif #endif
#include "strings.hrc" #include "strings.hrc"
#include "framework/FrameworkHelper.hxx"
namespace sd { namespace sd {
@ -66,15 +67,23 @@ SfxViewShell* __EXPORT SlideSorterViewShellBase::CreateInstance (
SfxViewFrame *pFrame, SfxViewShell *pOldView) SfxViewFrame *pFrame, SfxViewShell *pOldView)
{ {
SlideSorterViewShellBase* pBase = new SlideSorterViewShellBase(pFrame, pOldView); SlideSorterViewShellBase* pBase = new SlideSorterViewShellBase(pFrame, pOldView);
pBase->LateInit(); pBase->LateInit(framework::FrameworkHelper::msSlideSorterURL);
return pBase; return pBase;
} }
void SlideSorterViewShellBase::RegisterFactory( USHORT nPrio ) void SlideSorterViewShellBase::RegisterFactory( USHORT nPrio )
{ {
pFactory = new SfxViewFactory( pFactory = new SfxViewFactory(
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW)); &CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
InitFactory(); InitFactory();
} }
void SlideSorterViewShellBase::InitFactory() void SlideSorterViewShellBase::InitFactory()
{ {
SFX_VIEW_REGISTRATION(DrawDocShell); SFX_VIEW_REGISTRATION(DrawDocShell);
@ -89,7 +98,7 @@ void SlideSorterViewShellBase::InitFactory()
SlideSorterViewShellBase::SlideSorterViewShellBase ( SlideSorterViewShellBase::SlideSorterViewShellBase (
SfxViewFrame* _pFrame, SfxViewFrame* _pFrame,
SfxViewShell* pOldShell) SfxViewShell* pOldShell)
: ViewShellBase (_pFrame, pOldShell, ViewShell::ST_SLIDE_SORTER) : ImpressViewShellBase (_pFrame, pOldShell)
{ {
} }
@ -100,5 +109,8 @@ SlideSorterViewShellBase::~SlideSorterViewShellBase (void)
{ {
} }
} // end of namespace sd } // end of namespace sd