|
[ source navigation ] [ diff markup ] [ identifier search ] [ general search ] |
|||||
|
||||||
001 /************************************************************************* 002 * 003 * OpenOffice.org - a multi-platform office productivity suite 004 * 005 * $RCSfile: unodefaults.cxx,v $ 006 * 007 * $Revision: 1.8 $ 008 * 009 * last change: $Author: hr $ $Date: 2007/09/27 12:42:05 $ 010 * 011 * The Contents of this file are made available subject to 012 * the terms of GNU Lesser General Public License Version 2.1. 013 * 014 * 015 * GNU Lesser General Public License Version 2.1 016 * ============================================= 017 * Copyright 2005 by Sun Microsystems, Inc. 018 * 901 San Antonio Road, Palo Alto, CA 94303, USA 019 * 020 * This library is free software; you can redistribute it and/or 021 * modify it under the terms of the GNU Lesser General Public 022 * License version 2.1, as published by the Free Software Foundation. 023 * 024 * This library is distributed in the hope that it will be useful, 025 * but WITHOUT ANY WARRANTY; without even the implied warranty of 026 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 027 * Lesser General Public License for more details. 028 * 029 * You should have received a copy of the GNU Lesser General Public 030 * License along with this library; if not, write to the Free Software 031 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 032 * MA 02111-1307 USA 033 * 034 ************************************************************************/ 035 036 // MARKER(update_precomp.py): autogen include statement, do not remove 037 #include "precompiled_sw.hxx" 038 039 040 041 #ifndef _UNODEFAULTS_HXX 042 #include <unodefaults.hxx> 043 #endif 044 045 #ifndef _SVDMODEL_HXX 046 #include <svx/svdmodel.hxx> 047 #endif 048 #include <svx/unoprov.hxx> 049 #include <doc.hxx> 050 051 /* -----------------------------13.03.01 14:16-------------------------------- 052 053 ---------------------------------------------------------------------------*/ 054 SwSvxUnoDrawPool::SwSvxUnoDrawPool( SwDoc* pDoc ) throw() : 055 SvxUnoDrawPool(pDoc->GetDrawModel(), SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER), 056 m_pDoc(pDoc) 057 { 058 } 059 /* -----------------------------13.03.01 14:16-------------------------------- 060 061 ---------------------------------------------------------------------------*/ 062 SwSvxUnoDrawPool::~SwSvxUnoDrawPool() throw() 063 { 064 } 065 /* -----------------------------13.03.01 14:16-------------------------------- 066 067 ---------------------------------------------------------------------------*/ 068 SfxItemPool* SwSvxUnoDrawPool::getModelPool( sal_Bool /*bReadOnly*/ ) throw() 069 { 070 if(m_pDoc) 071 { 072 073 // DVO, OD 01.10.2003 #i18732# - return item pool of writer document; 074 // it contains draw model item pool as secondary pool. 075 //SdrModel* pModel = m_pDoc->MakeDrawModel(); 076 //return &pModel->GetItemPool(); 077 // --> OD 2005-08-08 #i52858# - method name changed 078 m_pDoc->GetOrCreateDrawModel(); 079 // <-- 080 return &(m_pDoc->GetAttrPool()); 081 } 082 return 0; 083 } 084 085 086
| [ source navigation ] | [ diff markup ] | [ identifier search ] | [ general search ] |
| This page was automatically generated by the LXR engine. The LXR team |
|