1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_SC_INC_FONTHELPER_HXX
11 #define INCLUDED_SC_INC_FONTHELPER_HXX
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>
22 struct SC_DLLPUBLIC ScDxfFont
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
<FontLineStyle
> eUnder
;
29 boost::optional
<FontLineStyle
> 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
;
41 return !(pFontAttr
|| nFontHeight
||
42 eWeight
|| eItalic
|| eUnder
||
43 eOver
|| bWordLine
|| eStrike
||
44 bOutline
|| bShadow
|| eEmphasis
||
45 eRelief
|| aColor
|| eLang
);
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */