2005/09/22 21:22:23 fme 1.4.772.2: RESYNC: (1.4-1.5); FILE MERGED 2005/08/08 11:00:16 od 1.4.772.1: #i52858# - method name <SwDoc::MakeDrawModel()> changed to <SwDoc::GetOrCreateDrawModel()>
85 lines
2.7 KiB
C++
85 lines
2.7 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: unodefaults.cxx,v $
|
|
*
|
|
* $Revision: 1.6 $
|
|
*
|
|
* last change: $Author: hr $ $Date: 2005-09-28 11:31:12 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* 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.
|
|
*
|
|
* 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.
|
|
*
|
|
* 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
|
|
*
|
|
************************************************************************/
|
|
|
|
|
|
#pragma hdrstop
|
|
|
|
#ifndef _UNODEFAULTS_HXX
|
|
#include <unodefaults.hxx>
|
|
#endif
|
|
|
|
#ifndef _SVDMODEL_HXX
|
|
#include <svx/svdmodel.hxx>
|
|
#endif
|
|
#include <svx/unoprov.hxx>
|
|
#include <doc.hxx>
|
|
|
|
/* -----------------------------13.03.01 14:16--------------------------------
|
|
|
|
---------------------------------------------------------------------------*/
|
|
SwSvxUnoDrawPool::SwSvxUnoDrawPool( SwDoc* pDoc ) throw() :
|
|
SvxUnoDrawPool(pDoc->GetDrawModel(), SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER),
|
|
m_pDoc(pDoc)
|
|
{
|
|
}
|
|
/* -----------------------------13.03.01 14:16--------------------------------
|
|
|
|
---------------------------------------------------------------------------*/
|
|
SwSvxUnoDrawPool::~SwSvxUnoDrawPool() throw()
|
|
{
|
|
}
|
|
/* -----------------------------13.03.01 14:16--------------------------------
|
|
|
|
---------------------------------------------------------------------------*/
|
|
SfxItemPool* SwSvxUnoDrawPool::getModelPool( sal_Bool bReadOnly ) throw()
|
|
{
|
|
if(m_pDoc)
|
|
{
|
|
|
|
// DVO, OD 01.10.2003 #i18732# - return item pool of writer document;
|
|
// it contains draw model item pool as secondary pool.
|
|
//SdrModel* pModel = m_pDoc->MakeDrawModel();
|
|
//return &pModel->GetItemPool();
|
|
// --> OD 2005-08-08 #i52858# - method name changed
|
|
m_pDoc->GetOrCreateDrawModel();
|
|
// <--
|
|
return &(m_pDoc->GetAttrPool());
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|