Revert "reduce symbol visibility in sw"
[LibreOffice.git] / sw / source / core / inc / swfntcch.hxx
bloba895ee85502cd8d7012f3899c4c753f831c7c261
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 .
19 #ifndef INCLUDED_SW_SOURCE_CORE_INC_SWFNTCCH_HXX
20 #define INCLUDED_SW_SOURCE_CORE_INC_SWFNTCCH_HXX
22 #define NUM_DEFAULT_VALUES 39
24 #include "swcache.hxx"
25 #include "swfont.hxx"
27 class SwViewShell;
28 class SfxPoolItem;
30 class SwFontCache : public SwCache
32 public:
34 SwFontCache() : SwCache(50
35 #ifdef DBG_UTIL
36 , "Global AttributeSet/Font-Cache pSwFontCache"_ostr
37 #endif
38 ) {}
42 // AttributeSet/Font-Cache, globale Variable, in FontCache.Cxx angelegt
43 extern SwFontCache *pSwFontCache;
45 class SwFontObj final : public SwCacheObj
47 friend class SwFontAccess;
49 private:
50 SwFont m_aSwFont;
51 const SfxPoolItem* m_pDefaultArray[ NUM_DEFAULT_VALUES ];
53 public:
54 SwFontObj( const void* pOwner, SwViewShell *pSh );
56 virtual ~SwFontObj() override;
58 SwFont& GetFont() { return m_aSwFont; }
59 const SwFont& GetFont() const { return m_aSwFont; }
60 const SfxPoolItem** GetDefault() { return m_pDefaultArray; }
63 class SwFontAccess final : public SwCacheAccess
65 SwViewShell *m_pShell;
67 virtual SwCacheObj *NewObj( ) override;
69 public:
70 SwFontAccess( const void *pOwner, SwViewShell *pSh );
71 SwFontObj *Get();
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */