2004-06-03 05:57:48 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 16:58:24 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
2008-04-10 16:58:24 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
2008-04-10 16:58:24 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
2008-04-10 16:58:24 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
2008-04-10 16:58:24 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
2008-04-10 16:58:24 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-06-03 05:57:48 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-16 13:32:19 -05:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_sd.hxx"
|
|
|
|
|
2004-06-03 05:57:48 -05:00
|
|
|
#include "SlideSorterViewShellBase.hxx"
|
|
|
|
#include "sdresid.hxx"
|
|
|
|
#include "DrawDocShell.hxx"
|
|
|
|
#include "strings.hrc"
|
2007-04-03 10:27:48 -05:00
|
|
|
#include "framework/FrameworkHelper.hxx"
|
2004-06-03 05:57:48 -05:00
|
|
|
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
class DrawDocShell;
|
|
|
|
|
|
|
|
TYPEINIT1(SlideSorterViewShellBase, ViewShellBase);
|
|
|
|
|
2004-11-16 09:15:19 -06:00
|
|
|
// We have to expand the SFX_IMPL_VIEWFACTORY macro to call LateInit() after a
|
|
|
|
// new SlideSorterViewShellBase object has been constructed.
|
|
|
|
|
|
|
|
/*
|
2004-06-03 05:57:48 -05:00
|
|
|
SFX_IMPL_VIEWFACTORY(SlideSorterViewShellBase, SdResId(STR_DEFAULTVIEW))
|
|
|
|
{
|
|
|
|
SFX_VIEW_REGISTRATION(DrawDocShell);
|
|
|
|
}
|
2004-11-16 09:15:19 -06:00
|
|
|
*/
|
|
|
|
SfxViewFactory* SlideSorterViewShellBase::pFactory;
|
|
|
|
SfxViewShell* __EXPORT SlideSorterViewShellBase::CreateInstance (
|
|
|
|
SfxViewFrame *pFrame, SfxViewShell *pOldView)
|
|
|
|
{
|
|
|
|
SlideSorterViewShellBase* pBase = new SlideSorterViewShellBase(pFrame, pOldView);
|
2007-04-03 10:27:48 -05:00
|
|
|
pBase->LateInit(framework::FrameworkHelper::msSlideSorterURL);
|
2004-11-16 09:15:19 -06:00
|
|
|
return pBase;
|
|
|
|
}
|
2007-04-03 10:27:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-11-16 09:15:19 -06:00
|
|
|
void SlideSorterViewShellBase::RegisterFactory( USHORT nPrio )
|
|
|
|
{
|
|
|
|
pFactory = new SfxViewFactory(
|
|
|
|
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
|
|
|
InitFactory();
|
|
|
|
}
|
2007-04-03 10:27:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-11-16 09:15:19 -06:00
|
|
|
void SlideSorterViewShellBase::InitFactory()
|
|
|
|
{
|
|
|
|
SFX_VIEW_REGISTRATION(DrawDocShell);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-06-03 05:57:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SlideSorterViewShellBase::SlideSorterViewShellBase (
|
2006-12-12 12:07:14 -06:00
|
|
|
SfxViewFrame* _pFrame,
|
2004-06-03 05:57:48 -05:00
|
|
|
SfxViewShell* pOldShell)
|
2007-04-03 10:27:48 -05:00
|
|
|
: ImpressViewShellBase (_pFrame, pOldShell)
|
2004-06-03 05:57:48 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SlideSorterViewShellBase::~SlideSorterViewShellBase (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-04-03 10:27:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2004-06-03 05:57:48 -05:00
|
|
|
} // end of namespace sd
|
|
|
|
|