update dev300-m57
[ooovba.git] / sc / inc / docpool.hxx
blob37c2dd02951da9d00ce03899ba8ff0d3298b550f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: docpool.hxx,v $
10 * $Revision: 1.10.144.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_SCDOCPOL_HXX
32 #define SC_SCDOCPOL_HXX
34 #include <svtools/itempool.hxx>
35 #include "scdllapi.h"
37 class ScStyleSheet;
39 //------------------------------------------------------------------------
41 class SC_DLLPUBLIC ScDocumentPool: public SfxItemPool
43 SfxPoolItem** ppPoolDefaults;
44 SfxItemPool* pSecondary;
45 static USHORT* pVersionMap1;
46 static USHORT* pVersionMap2;
47 static USHORT* pVersionMap3;
48 static USHORT* pVersionMap4;
49 static USHORT* pVersionMap5;
50 static USHORT* pVersionMap6;
51 static USHORT* pVersionMap7;
52 static USHORT* pVersionMap8;
53 static USHORT* pVersionMap9;
54 static USHORT* pVersionMap10;
55 static USHORT* pVersionMap11;
57 public:
58 ScDocumentPool( SfxItemPool* pSecPool = NULL, BOOL bLoadRefCounts = FALSE );
59 protected:
60 virtual ~ScDocumentPool();
61 public:
63 virtual SfxItemPool* Clone() const;
64 virtual SfxMapUnit GetMetric( USHORT nWhich ) const;
66 virtual const SfxPoolItem& Put( const SfxPoolItem&, USHORT nWhich = 0 );
67 virtual void Remove( const SfxPoolItem& );
68 static void CheckRef( const SfxPoolItem& );
70 void StyleDeleted( ScStyleSheet* pStyle ); // Loeschen von Vorlagen im Organizer
71 virtual SfxItemPresentation GetPresentation(
72 const SfxPoolItem& rItem,
73 SfxItemPresentation ePresentation,
74 SfxMapUnit ePresentationMetric,
75 String& rText,
76 const IntlWrapper* pIntl = 0 ) const;
78 static void InitVersionMaps();
79 static void DeleteVersionMaps();
85 #endif