xref: /aoo4110/main/sc/inc/docpool.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_SCDOCPOL_HXX
25 #define SC_SCDOCPOL_HXX
26 
27 #include <svl/itempool.hxx>
28 #include "scdllapi.h"
29 
30 class ScStyleSheet;
31 
32 //------------------------------------------------------------------------
33 
34 class SC_DLLPUBLIC ScDocumentPool: public SfxItemPool
35 {
36 	SfxPoolItem**	ppPoolDefaults;
37 	SfxItemPool*	pSecondary;
38 	static sal_uInt16*	pVersionMap1;
39 	static sal_uInt16*	pVersionMap2;
40 	static sal_uInt16*	pVersionMap3;
41 	static sal_uInt16*	pVersionMap4;
42 	static sal_uInt16*	pVersionMap5;
43 	static sal_uInt16*	pVersionMap6;
44 	static sal_uInt16*	pVersionMap7;
45 	static sal_uInt16*	pVersionMap8;
46 	static sal_uInt16*	pVersionMap9;
47     static sal_uInt16*  pVersionMap10;
48     static sal_uInt16*  pVersionMap11;
49 
50 public:
51 			ScDocumentPool( SfxItemPool* pSecPool = NULL, sal_Bool bLoadRefCounts = sal_False );
52 protected:
53 			virtual ~ScDocumentPool();
54 public:
55 
56 	virtual SfxItemPool*		Clone() const;
57 	virtual SfxMapUnit 			GetMetric( sal_uInt16 nWhich ) const;
58 
59 	virtual const SfxPoolItem&	Put( const SfxPoolItem&, sal_uInt16 nWhich = 0 );
60 	virtual void				Remove( const SfxPoolItem& );
61 	static void					CheckRef( const SfxPoolItem& );
62 
63 	void StyleDeleted( ScStyleSheet* pStyle );		// Loeschen von Vorlagen im Organizer
64     void CellStyleCreated( const String& rName );
65 	virtual SfxItemPresentation		GetPresentation(
66 										const SfxPoolItem&	rItem,
67 										SfxItemPresentation ePresentation,
68 										SfxMapUnit			ePresentationMetric,
69 										String&				rText,
70                                         const IntlWrapper* pIntl = 0 ) const;
71 
72 	static void	InitVersionMaps();
73 	static void	DeleteVersionMaps();
74 };
75 
76 
77 
78 
79 #endif
80