2004-01-20 11:38:32 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* $RCSfile: OutlineViewShellBase.cxx,v $
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2006-12-12 18:05:28 +00:00
|
|
|
* $Revision: 1.6 $
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2006-12-12 18:05:28 +00:00
|
|
|
* last change: $Author: kz $ $Date: 2006-12-12 19:05:28 $
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* This library 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 for more details.
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
2005-09-09 06:00:11 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2004-01-20 11:38:32 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-16 18:32:19 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_sd.hxx"
|
|
|
|
|
2004-01-20 11:38:32 +00:00
|
|
|
#include "OutlineViewShellBase.hxx"
|
|
|
|
|
|
|
|
#ifndef SD_RESID_HXX
|
|
|
|
#include "sdresid.hxx"
|
|
|
|
#endif
|
|
|
|
#ifndef SD_DRAW_DOC_SHELL_HXX
|
|
|
|
#include "DrawDocShell.hxx"
|
|
|
|
#endif
|
|
|
|
#include "strings.hrc"
|
|
|
|
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
class DrawDocShell;
|
|
|
|
|
|
|
|
TYPEINIT1(OutlineViewShellBase, ViewShellBase);
|
|
|
|
|
2004-07-13 13:50:55 +00:00
|
|
|
// We have to expand the SFX_IMPL_VIEWFACTORY macro to call LateInit() after a
|
|
|
|
// new OutlineViewShellBase object has been constructed.
|
|
|
|
|
|
|
|
/*
|
2004-01-20 11:38:32 +00:00
|
|
|
SFX_IMPL_VIEWFACTORY(OutlineViewShellBase, SdResId(STR_DEFAULTVIEW))
|
|
|
|
{
|
|
|
|
SFX_VIEW_REGISTRATION(DrawDocShell);
|
|
|
|
}
|
2004-07-13 13:50:55 +00:00
|
|
|
*/
|
|
|
|
SfxViewFactory* OutlineViewShellBase::pFactory;
|
|
|
|
SfxViewShell* __EXPORT OutlineViewShellBase::CreateInstance (
|
|
|
|
SfxViewFrame *pFrame, SfxViewShell *pOldView)
|
|
|
|
{
|
|
|
|
OutlineViewShellBase* pBase = new OutlineViewShellBase(pFrame, pOldView);
|
|
|
|
pBase->LateInit();
|
|
|
|
return pBase;
|
|
|
|
}
|
|
|
|
void OutlineViewShellBase::RegisterFactory( USHORT nPrio )
|
|
|
|
{
|
|
|
|
pFactory = new SfxViewFactory(
|
|
|
|
&CreateInstance,&InitFactory,nPrio,SdResId(STR_DEFAULTVIEW));
|
|
|
|
InitFactory();
|
|
|
|
}
|
|
|
|
void OutlineViewShellBase::InitFactory()
|
|
|
|
{
|
|
|
|
SFX_VIEW_REGISTRATION(DrawDocShell);
|
|
|
|
}
|
2004-01-20 11:38:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutlineViewShellBase::OutlineViewShellBase (
|
2006-12-12 18:05:28 +00:00
|
|
|
SfxViewFrame* _pFrame,
|
2004-01-20 11:38:32 +00:00
|
|
|
SfxViewShell* pOldShell)
|
2006-12-12 18:05:28 +00:00
|
|
|
: ViewShellBase (_pFrame, pOldShell, ViewShell::ST_OUTLINE)
|
2004-01-20 11:38:32 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutlineViewShellBase::~OutlineViewShellBase (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
} // end of namespace sd
|
|
|
|
|