1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_INC_DOCPOOL_HXX
21 #define INCLUDED_SC_INC_DOCPOOL_HXX
23 #include <rtl/ustring.hxx>
24 #include <svl/itempool.hxx>
29 class SC_DLLPUBLIC ScDocumentPool
: public SfxItemPool
31 SfxPoolItem
** ppPoolDefaults
;
32 SfxItemPool
* pSecondary
;
33 static sal_uInt16
* pVersionMap1
;
34 static sal_uInt16
* pVersionMap2
;
35 static sal_uInt16
* pVersionMap3
;
36 static sal_uInt16
* pVersionMap4
;
37 static sal_uInt16
* pVersionMap5
;
38 static sal_uInt16
* pVersionMap6
;
39 static sal_uInt16
* pVersionMap7
;
40 static sal_uInt16
* pVersionMap8
;
41 static sal_uInt16
* pVersionMap9
;
42 static sal_uInt16
* pVersionMap10
;
43 static sal_uInt16
* pVersionMap11
;
44 static sal_uInt16
* pVersionMap12
;
47 ScDocumentPool( SfxItemPool
* pSecPool
= NULL
);
49 virtual ~ScDocumentPool();
52 virtual SfxItemPool
* Clone() const SAL_OVERRIDE
;
53 virtual SfxMapUnit
GetMetric( sal_uInt16 nWhich
) const SAL_OVERRIDE
;
55 virtual const SfxPoolItem
& Put( const SfxPoolItem
&, sal_uInt16 nWhich
= 0 ) SAL_OVERRIDE
;
56 virtual void Remove( const SfxPoolItem
& ) SAL_OVERRIDE
;
57 static void CheckRef( const SfxPoolItem
& );
59 void StyleDeleted( ScStyleSheet
* pStyle
); // delete templates(?) in organizer
60 void CellStyleCreated( const OUString
& rName
);
61 virtual SfxItemPresentation
GetPresentation(
62 const SfxPoolItem
& rItem
,
63 SfxItemPresentation ePresentation
,
64 SfxMapUnit ePresentationMetric
,
66 const IntlWrapper
* pIntl
= 0 ) const SAL_OVERRIDE
;
68 static void InitVersionMaps();
69 static void DeleteVersionMaps();
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */