LCOV - code coverage report
Current view: top level - vcl/inc - PhysicalFontFamily.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 10 0.0 %
Date: 2014-04-14 Functions: 0 10 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             : #pragma once
      20             : 
      21             : #include <set>
      22             : 
      23             : #include <unotools/fontcfg.hxx>
      24             : 
      25             : #include "PhysicalFontFace.hxx"
      26             : #include "PhysicalFontFamily.hxx"
      27             : 
      28             : class PhysicalFontFace;
      29             : class PhysicalFontCollection;
      30             : 
      31             : // flags for mnMatchType member
      32             : #define FONT_FAMILY_SCALABLE      (1<<0)
      33             : #define FONT_FAMILY_SYMBOL        (1<<1)
      34             : #define FONT_FAMILY_NONESYMBOL    (1<<2)
      35             : #define FONT_FAMILY_LIGHT         (1<<4)
      36             : #define FONT_FAMILY_BOLD          (1<<5)
      37             : #define FONT_FAMILY_NORMAL        (1<<6)
      38             : #define FONT_FAMILY_NONEITALIC    (1<<8)
      39             : #define FONT_FAMILY_ITALIC        (1<<9)
      40             : 
      41             : class PhysicalFontFamily
      42             : {
      43             : public:
      44             :                         PhysicalFontFamily( const OUString& rSearchName );
      45             :                        ~PhysicalFontFamily();
      46             : 
      47           0 :     const OUString&     GetFamilyName() const    { return maName; }
      48           0 :     const OUString&     GetSearchName() const    { return maSearchName; }
      49           0 :     const OUString&     GetAliasNames() const    { return maMapNames; }
      50           0 :     const OUString&     GetMatchFamilyName() const { return maMatchFamilyName; }
      51           0 :     sal_uLong           GetMatchType() const     { return mnMatchType ; }
      52           0 :     FontWeight          GetMatchWeight() const   { return meMatchWeight ; }
      53           0 :     FontWidth           GetMatchWidth() const    { return meMatchWidth ; }
      54           0 :     bool                IsScalable() const       { return mpFirst->IsScalable(); }
      55           0 :     int                 GetMinQuality() const    { return mnMinQuality; }
      56           0 :     int                 GetTypeFaces() const     { return mnTypeFaces; }
      57             :     bool                AddFontFace( PhysicalFontFace* );
      58             :     void                InitMatchData( const utl::FontSubstConfiguration&,
      59             :                                        const OUString& rSearchName );
      60             :     PhysicalFontFace*   FindBestFontFace( const FontSelectPattern& rFSD ) const;
      61             : 
      62             :     void                GetFontHeights( std::set<int>& rHeights ) const;
      63             :     void                UpdateDevFontList( ImplGetDevFontList& ) const;
      64             :     void                UpdateCloneFontList( PhysicalFontCollection&,
      65             :                                              bool bScalable, bool bEmbeddable ) const;
      66             : 
      67             : static void             CalcType( sal_uLong& rType, FontWeight& rWeight, FontWidth& rWidth,
      68             :                                   FontFamily eFamily, const utl::FontNameAttr* pFontAttr );
      69             : 
      70             : private:
      71             :     PhysicalFontFace*   mpFirst;            // linked list of physical font faces
      72             :     OUString            maName;             // Fontname (original font family name)
      73             :     OUString            maSearchName;       // normalized font family name
      74             :     OUString            maMapNames;         // fontname aliases
      75             :     int                 mnTypeFaces;        // Typeface Flags
      76             :     sal_uLong           mnMatchType;        // MATCH - Type
      77             :     OUString            maMatchFamilyName;  // MATCH - FamilyName
      78             :     FontWeight          meMatchWeight;      // MATCH - Weight
      79             :     FontWidth           meMatchWidth;       // MATCH - Width
      80             :     FontFamily          meFamily;
      81             :     FontPitch           mePitch;
      82             :     int                 mnMinQuality;       // quality of the worst font face
      83             : };
      84             : 

Generated by: LCOV version 1.10