Coverage Report

Created: 2026-06-30 11:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/inc/fonthelper.hxx
Line
Count
Source
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
#pragma once
11
12
#include "scdllapi.h"
13
#include <optional>
14
#include <tools/fontenum.hxx>
15
#include <tools/color.hxx>
16
#include <vcl/fntstyle.hxx>
17
#include <i18nlangtag/lang.h>
18
19
class SvxFontItem;
20
21
struct SC_DLLPUBLIC ScDxfFont
22
{
23
    std::optional<const SvxFontItem*> pFontAttr;
24
    std::optional<sal_uInt32> nFontHeight;
25
    std::optional<FontWeight> eWeight;
26
    std::optional<FontItalic> eItalic;
27
    std::optional<FontLineStyle> eUnder;
28
    std::optional<FontLineStyle> eOver;
29
    std::optional<bool> bWordLine;
30
    std::optional<FontStrikeout> eStrike;
31
    std::optional<bool> bOutline;
32
    std::optional<bool> bShadow;
33
    std::optional<FontEmphasisMark> eEmphasis;
34
    std::optional<FontRelief> eRelief;
35
    std::optional<Color> aColor;
36
    std::optional<LanguageType> eLang;
37
38
    bool isEmpty() const
39
0
    {
40
0
        return !(pFontAttr.has_value() || nFontHeight.has_value() ||
41
0
            eWeight.has_value() || eItalic.has_value() || eUnder.has_value() ||
42
0
            eOver.has_value() || bWordLine.has_value() || eStrike.has_value() ||
43
0
            bOutline.has_value() || bShadow.has_value() || eEmphasis.has_value() ||
44
0
            eRelief.has_value() || aColor.has_value() || eLang.has_value());
45
0
    }
46
};
47
48
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */