LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / sc / inc / fonthelper.hxx
blobae4a778570a946ee2cec33064fb47401ded425b8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #pragma once
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>
19 class SvxFontItem;
21 struct SC_DLLPUBLIC ScDxfFont
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;
38 bool isEmpty() const
40 return !(pFontAttr || nFontHeight ||
41 eWeight || eItalic || eUnder ||
42 eOver || bWordLine || eStrike ||
43 bOutline || bShadow || eEmphasis ||
44 eRelief || aColor || eLang);
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */