LCOV - code coverage report
Current view: top level - sc/inc - fonthelper.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 7 7 100.0 %
Date: 2015-06-13 12:38:46 Functions: 4 4 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             : 
      10             : #ifndef INCLUDED_SC_INC_FONTHELPER_HXX
      11             : #define INCLUDED_SC_INC_FONTHELPER_HXX
      12             : 
      13             : #include "scdllapi.h"
      14             : #include <boost/optional.hpp>
      15             : #include <tools/fontenum.hxx>
      16             : #include <tools/color.hxx>
      17             : #include <vcl/fntstyle.hxx>
      18             : #include <i18nlangtag/lang.h>
      19             : 
      20             : class SvxFontItem;
      21             : 
      22          50 : struct SC_DLLPUBLIC ScDxfFont
      23             : {
      24             :     boost::optional<const SvxFontItem*> pFontAttr;
      25             :     boost::optional<sal_uInt32> nFontHeight;
      26             :     boost::optional<FontWeight> eWeight;
      27             :     boost::optional<FontItalic> eItalic;
      28             :     boost::optional<FontUnderline> eUnder;
      29             :     boost::optional<FontUnderline> eOver;
      30             :     boost::optional<bool> bWordLine;
      31             :     boost::optional<FontStrikeout> eStrike;
      32             :     boost::optional<bool> bOutline;
      33             :     boost::optional<bool> bShadow;
      34             :     boost::optional<FontEmphasisMark> eEmphasis;
      35             :     boost::optional<FontRelief> eRelief;
      36             :     boost::optional<Color> aColor;
      37             :     boost::optional<LanguageType> eLang;
      38             : 
      39          10 :     bool isEmpty()
      40             :     {
      41          30 :         return !(pFontAttr || nFontHeight ||
      42          30 :             eWeight || eItalic || eUnder ||
      43          30 :             eOver || bWordLine || eStrike ||
      44          30 :             bOutline || bShadow || eEmphasis ||
      45          30 :             eRelief || aColor || eLang);
      46             :     }
      47             : };
      48             : 
      49             : #endif
      50             : 
      51             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11