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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_TOOLS_FONTENUM_HXX
20 #define INCLUDED_TOOLS_FONTENUM_HXX
22 #include <sal/types.h>
23 #include <o3tl/typed_flags_set.hxx>
25 enum FontFamily
{ FAMILY_DONTKNOW
, FAMILY_DECORATIVE
, FAMILY_MODERN
,
26 FAMILY_ROMAN
, FAMILY_SCRIPT
, FAMILY_SWISS
, FAMILY_SYSTEM
, FontFamily_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
28 enum FontPitch
{ PITCH_DONTKNOW
, PITCH_FIXED
, PITCH_VARIABLE
, FontPitch_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
30 enum TextAlign
{ ALIGN_TOP
, ALIGN_BASELINE
, ALIGN_BOTTOM
, TextAlign_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
32 enum FontWeight
{ WEIGHT_DONTKNOW
, WEIGHT_THIN
, WEIGHT_ULTRALIGHT
,
33 WEIGHT_LIGHT
, WEIGHT_SEMILIGHT
, WEIGHT_NORMAL
,
34 WEIGHT_MEDIUM
, WEIGHT_SEMIBOLD
, WEIGHT_BOLD
,
35 WEIGHT_ULTRABOLD
, WEIGHT_BLACK
, FontWeight_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
37 enum FontWidth
{ WIDTH_DONTKNOW
, WIDTH_ULTRA_CONDENSED
, WIDTH_EXTRA_CONDENSED
,
38 WIDTH_CONDENSED
, WIDTH_SEMI_CONDENSED
, WIDTH_NORMAL
,
39 WIDTH_SEMI_EXPANDED
, WIDTH_EXPANDED
, WIDTH_EXTRA_EXPANDED
,
41 FontWidth_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
43 enum FontItalic
{ ITALIC_NONE
, ITALIC_OBLIQUE
, ITALIC_NORMAL
, ITALIC_DONTKNOW
, FontItalic_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
45 enum FontLineStyle
{ LINESTYLE_NONE
, LINESTYLE_SINGLE
, LINESTYLE_DOUBLE
,
46 LINESTYLE_DOTTED
, LINESTYLE_DONTKNOW
,
47 LINESTYLE_DASH
, LINESTYLE_LONGDASH
,
48 LINESTYLE_DASHDOT
, LINESTYLE_DASHDOTDOT
,
50 LINESTYLE_WAVE
, LINESTYLE_DOUBLEWAVE
,
51 LINESTYLE_BOLD
, LINESTYLE_BOLDDOTTED
,
52 LINESTYLE_BOLDDASH
, LINESTYLE_BOLDLONGDASH
,
53 LINESTYLE_BOLDDASHDOT
, LINESTYLE_BOLDDASHDOTDOT
,
55 FontLineStyle_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
57 enum FontStrikeout
{ STRIKEOUT_NONE
, STRIKEOUT_SINGLE
, STRIKEOUT_DOUBLE
,
58 STRIKEOUT_DONTKNOW
, STRIKEOUT_BOLD
,
59 STRIKEOUT_SLASH
, STRIKEOUT_X
,
60 FontStrikeout_FORCE_EQUAL_SIZE
=SAL_MAX_ENUM
};
62 enum class FontEmphasisMark
{
63 NONE
= 0x0000, // capitalisation to avoid conflict with X11 macro
74 template<> struct typed_flags
<FontEmphasisMark
> : is_typed_flags
<FontEmphasisMark
, 0x300f> {};
78 enum FontEmbeddedBitmap
{ EMBEDDEDBITMAP_DONTKNOW
, EMBEDDEDBITMAP_FALSE
, EMBEDDEDBITMAP_TRUE
};
80 enum FontAntiAlias
{ ANTIALIAS_DONTKNOW
, ANTIALIAS_FALSE
, ANTIALIAS_TRUE
};
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */