LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/editeng - fontitem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 11 11 100.0 %
Date: 2012-12-27 Functions: 13 13 100.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 _SVX_FONTITEM_HXX
      20             : #define _SVX_FONTITEM_HXX
      21             : 
      22             : #include <svl/poolitem.hxx>
      23             : #include <tools/string.hxx>
      24             : #include <vcl/font.hxx>
      25             : #include "editeng/editengdllapi.h"
      26             : 
      27             : class SvXMLUnitConverter;
      28             : namespace rtl
      29             : {
      30             :     class OUString;
      31             : }
      32             : 
      33             : // class SvxFontItem -----------------------------------------------------
      34             : 
      35             : /*  [Description]
      36             : 
      37             :     This item describes a Font.
      38             : */
      39             : 
      40      132375 : class EDITENG_DLLPUBLIC SvxFontItem : public SfxPoolItem
      41             : {
      42             :     String  aFamilyName;
      43             :     String  aStyleName;
      44             :     FontFamily  eFamily;
      45             :     FontPitch ePitch;
      46             :     rtl_TextEncoding eTextEncoding;
      47             : 
      48             :     static sal_Bool bEnableStoreUnicodeNames;
      49             : 
      50             : public:
      51             :     TYPEINFO();
      52             : 
      53             :     explicit SvxFontItem( const sal_uInt16 nId  );
      54             :     SvxFontItem( const FontFamily eFam, const String& rFamilyName,
      55             :         const String& rStyleName,
      56             :         const FontPitch eFontPitch /*= PITCH_DONTKNOW*/,
      57             :         const rtl_TextEncoding eFontTextEncoding /*= RTL_TEXTENCODING_DONTKNOW*/,
      58             :         const sal_uInt16 nId  );
      59             : 
      60             :     // "pure virtual Methods" from SfxPoolItem
      61             :     virtual int              operator==( const SfxPoolItem& ) const;
      62             :     virtual SfxPoolItem*     Clone( SfxItemPool *pPool = 0 ) const;
      63             :     virtual SfxPoolItem*     Create(SvStream &, sal_uInt16) const;
      64             :     virtual SvStream&        Store(SvStream &, sal_uInt16 nItemVersion) const;
      65             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      66             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      67             : 
      68             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      69             :                                     SfxMapUnit eCoreMetric,
      70             :                                     SfxMapUnit ePresMetric,
      71             :                                     String &rText, const IntlWrapper * = 0 ) const;
      72             : 
      73             :     // Access methods:
      74        1815 :     void SetFamilyName( const String& rFamilyName ) { aFamilyName = rFamilyName; }
      75       79604 :     inline const String &GetFamilyName() const { return aFamilyName; }
      76             : 
      77        1815 :     void SetStyleName(const String &rStyleName ) { aStyleName = rStyleName; }
      78        5696 :     inline const String &GetStyleName() const { return aStyleName; }
      79             : 
      80        1815 :     void SetFamily( FontFamily _eFamily ) { eFamily = _eFamily; }
      81       76103 :     inline FontFamily GetFamily() const { return eFamily; }
      82             : 
      83        1815 :     void SetPitch(FontPitch _ePitch ) { ePitch = _ePitch; }
      84       76100 :     inline FontPitch GetPitch() const { return ePitch; }
      85             : 
      86        1839 :     void SetCharSet(rtl_TextEncoding _eEncoding) { eTextEncoding = _eEncoding; }
      87             : 
      88       76758 :     inline rtl_TextEncoding GetCharSet() const { return eTextEncoding; }
      89             : 
      90             :     SvxFontItem& operator=(const SvxFontItem& rFont);
      91             : 
      92             :     static void EnableStoreUnicodeNames( sal_Bool bEnable );
      93             : 
      94             : };
      95             : 
      96             : EDITENG_DLLPUBLIC void GetDefaultFonts( SvxFontItem& rLatin, SvxFontItem& rAsian,
      97             :                         SvxFontItem& rComplex );
      98             : 
      99             : #endif // #ifndef _SVX_FONTITEM_HXX
     100             : 
     101             : 
     102             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10