LCOV - code coverage report
Current view: top level - sw/source/core/inc - swfntcch.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 7 0.0 %
Date: 2014-04-14 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : #ifndef INCLUDED_SW_SOURCE_CORE_INC_SWFNTCCH_HXX
      20             : #define INCLUDED_SW_SOURCE_CORE_INC_SWFNTCCH_HXX
      21             : 
      22             : #include <tools/mempool.hxx>
      23             : 
      24             : #define NUM_DEFAULT_VALUES 39
      25             : 
      26             : #include "swcache.hxx"
      27             : #include "swfont.hxx"
      28             : 
      29             : class SwViewShell;
      30             : class SfxPoolItem;
      31             : 
      32             : /*************************************************************************
      33             :  *                      class SwFontCache
      34             :  *************************************************************************/
      35             : 
      36           0 : class SwFontCache : public SwCache
      37             : {
      38             : public:
      39             : 
      40           0 :     inline SwFontCache() : SwCache(50
      41             : #ifdef DBG_UTIL
      42             :     , "Global AttributSet/Font-Cache pSwFontCache"
      43             : #endif
      44           0 :     ) {}
      45             : 
      46             : };
      47             : 
      48             : // AttributSet/Font-Cache, globale Variable, in FontCache.Cxx angelegt
      49             : extern SwFontCache *pSwFontCache;
      50             : 
      51             : /*************************************************************************
      52             :  *                      class SwFontObj
      53             :  *************************************************************************/
      54             : 
      55             : class SwFontObj : public SwCacheObj
      56             : {
      57             :     friend class SwFontAccess;
      58             : 
      59             : private:
      60             :     SwFont aSwFont;
      61             :     const SfxPoolItem* pDefaultArray[ NUM_DEFAULT_VALUES ];
      62             : 
      63             : public:
      64           0 :     DECL_FIXEDMEMPOOL_NEWDEL(SwFontObj)
      65             : 
      66             :     SwFontObj( const void* pOwner, SwViewShell *pSh );
      67             : 
      68             :     virtual ~SwFontObj();
      69             : 
      70           0 :     inline       SwFont *GetFont()      { return &aSwFont; }
      71             :     inline const SwFont *GetFont() const  { return &aSwFont; }
      72           0 :     inline const SfxPoolItem** GetDefault() { return pDefaultArray; }
      73             : };
      74             : 
      75             : /*************************************************************************
      76             :  *                      class SwFontAccess
      77             :  *************************************************************************/
      78             : 
      79           0 : class SwFontAccess : public SwCacheAccess
      80             : {
      81             :     SwViewShell *pShell;
      82             : protected:
      83             :     virtual SwCacheObj *NewObj( ) SAL_OVERRIDE;
      84             : 
      85             : public:
      86             :     SwFontAccess( const void *pOwner, SwViewShell *pSh );
      87             :     SwFontObj *Get();
      88             : };
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10