update emoji autocorrect entries from po-files
[LibreOffice.git] / sc / inc / docpool.hxx
blobb7334863fe88ab8a81ce9f76597169e09d95cf72
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 INCLUDED_SC_INC_DOCPOOL_HXX
21 #define INCLUDED_SC_INC_DOCPOOL_HXX
23 #include <rtl/ustring.hxx>
24 #include <svl/itempool.hxx>
25 #include "scdllapi.h"
27 class ScStyleSheet;
28 class ScDocument;
30 class SC_DLLPUBLIC ScDocumentPool: public SfxItemPool
32 SfxPoolItem** ppPoolDefaults;
33 SfxItemPool* pSecondary;
34 static sal_uInt16* pVersionMap1;
35 static sal_uInt16* pVersionMap2;
36 static sal_uInt16* pVersionMap3;
37 static sal_uInt16* pVersionMap4;
38 static sal_uInt16* pVersionMap5;
39 static sal_uInt16* pVersionMap6;
40 static sal_uInt16* pVersionMap7;
41 static sal_uInt16* pVersionMap8;
42 static sal_uInt16* pVersionMap9;
43 static sal_uInt16* pVersionMap10;
44 static sal_uInt16* pVersionMap11;
45 static sal_uInt16* pVersionMap12;
47 public:
48 ScDocumentPool( SfxItemPool* pSecPool = NULL );
49 protected:
50 virtual ~ScDocumentPool();
51 public:
53 virtual SfxItemPool* Clone() const SAL_OVERRIDE;
54 virtual SfxMapUnit GetMetric( sal_uInt16 nWhich ) const SAL_OVERRIDE;
56 virtual const SfxPoolItem& Put( const SfxPoolItem&, sal_uInt16 nWhich = 0 ) SAL_OVERRIDE;
57 virtual void Remove( const SfxPoolItem& ) SAL_OVERRIDE;
58 static void CheckRef( const SfxPoolItem& );
60 void StyleDeleted( ScStyleSheet* pStyle ); // delete templates(?) in organizer
61 void CellStyleCreated( const OUString& rName, ScDocument* pDoc );
62 virtual bool GetPresentation(
63 const SfxPoolItem& rItem,
64 SfxMapUnit ePresentationMetric,
65 OUString& rText,
66 const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE;
68 static void InitVersionMaps();
69 static void DeleteVersionMaps();
72 #endif
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */