bump product version to 4.1.6.2
[LibreOffice.git] / sc / inc / docpool.hxx
blob242bb89a2bb2c028ad0b70fe331d37f1311ad661
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 SC_SCDOCPOL_HXX
21 #define SC_SCDOCPOL_HXX
23 #include <svl/itempool.hxx>
24 #include "scdllapi.h"
26 class ScStyleSheet;
28 class SC_DLLPUBLIC ScDocumentPool: public SfxItemPool
30 SfxPoolItem** ppPoolDefaults;
31 SfxItemPool* pSecondary;
32 static sal_uInt16* pVersionMap1;
33 static sal_uInt16* pVersionMap2;
34 static sal_uInt16* pVersionMap3;
35 static sal_uInt16* pVersionMap4;
36 static sal_uInt16* pVersionMap5;
37 static sal_uInt16* pVersionMap6;
38 static sal_uInt16* pVersionMap7;
39 static sal_uInt16* pVersionMap8;
40 static sal_uInt16* pVersionMap9;
41 static sal_uInt16* pVersionMap10;
42 static sal_uInt16* pVersionMap11;
43 static sal_uInt16* pVersionMap12;
45 public:
46 ScDocumentPool( SfxItemPool* pSecPool = NULL, sal_Bool bLoadRefCounts = false );
47 protected:
48 virtual ~ScDocumentPool();
49 public:
51 virtual SfxItemPool* Clone() const;
52 virtual SfxMapUnit GetMetric( sal_uInt16 nWhich ) const;
54 virtual const SfxPoolItem& Put( const SfxPoolItem&, sal_uInt16 nWhich = 0 );
55 virtual void Remove( const SfxPoolItem& );
56 static void CheckRef( const SfxPoolItem& );
58 void StyleDeleted( ScStyleSheet* pStyle ); // delete templates(?) in organizer
59 void CellStyleCreated( const String& rName );
60 virtual SfxItemPresentation GetPresentation(
61 const SfxPoolItem& rItem,
62 SfxItemPresentation ePresentation,
63 SfxMapUnit ePresentationMetric,
64 OUString& rText,
65 const IntlWrapper* pIntl = 0 ) const;
67 static void InitVersionMaps();
68 static void DeleteVersionMaps();
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */