LCOV - code coverage report
Current view: top level - include/oox/ole - axfontdata.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 1 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             : 
      20             : #ifndef INCLUDED_OOX_OLE_AXFONTDATA_HXX
      21             : #define INCLUDED_OOX_OLE_AXFONTDATA_HXX
      22             : 
      23             : #include <oox/helper/binaryinputstream.hxx>
      24             : #include <oox/helper/binaryoutputstream.hxx>
      25             : #include <oox/helper/refvector.hxx>
      26             : #include <oox/dllapi.h>
      27             : 
      28             : namespace oox {
      29             : namespace ole {
      30             : 
      31             : 
      32             : 
      33             : const sal_Char* const AX_GUID_CFONT         = "{AFC20920-DA4E-11CE-B943-00AA006887B4}";
      34             : 
      35             : const sal_uInt32 AX_FONTDATA_BOLD           = 0x00000001;
      36             : const sal_uInt32 AX_FONTDATA_ITALIC         = 0x00000002;
      37             : const sal_uInt32 AX_FONTDATA_UNDERLINE      = 0x00000004;
      38             : const sal_uInt32 AX_FONTDATA_STRIKEOUT      = 0x00000008;
      39             : const sal_uInt32 AX_FONTDATA_DISABLED       = 0x00002000;
      40             : const sal_uInt32 AX_FONTDATA_AUTOCOLOR      = 0x40000000;
      41             : 
      42             : const sal_Int32 AX_FONTDATA_LEFT            = 1;
      43             : const sal_Int32 AX_FONTDATA_RIGHT           = 2;
      44             : const sal_Int32 AX_FONTDATA_CENTER          = 3;
      45             : 
      46             : /** All entries of a font property. */
      47           0 : struct OOX_DLLPUBLIC AxFontData
      48             : {
      49             :     OUString     maFontName;         ///< Name of the used font.
      50             :     sal_uInt32          mnFontEffects;      ///< Font effect flags.
      51             :     sal_Int32           mnFontHeight;       ///< Height of the font (not really twips, see code).
      52             :     sal_Int32           mnFontCharSet;      ///< Windows character set of the font.
      53             :     sal_Int32           mnHorAlign;         ///< Horizontal text alignment.
      54             :     bool                mbDblUnderline;     ///< True = double underline style (legacy VML drawing controls only).
      55             : 
      56             :     explicit            AxFontData();
      57             : 
      58             :     /** Converts the internal representation of the font height to points. */
      59             :     sal_Int16           getHeightPoints() const;
      60             :     /** Converts the passed font height from points to the internal representation. */
      61             :     void                setHeightPoints( sal_Int16 nPoints );
      62             : 
      63             :     /** Reads the font data settings from the passed input stream. */
      64             :     bool                importBinaryModel( BinaryInputStream& rInStrm );
      65             : 
      66             :     void                exportBinaryModel( BinaryOutputStream& rOutStrm );
      67             :     /** Reads the font data settings from the passed input stream that contains
      68             :         an OLE StdFont structure. */
      69             :     bool                importStdFont( BinaryInputStream& rInStrm );
      70             :     /** Reads the font data settings from the passed input stream depending on
      71             :         the GUID preceding the actual font data. */
      72             :     bool                importGuidAndFont( BinaryInputStream& rInStrm );
      73             : };
      74             : 
      75             : 
      76             : } // namespace ole
      77             : } // namespace oox
      78             : 
      79             : #endif
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10