Branch libreoffice-5-0-4
[LibreOffice.git] / include / tools / fontenum.hxx
blobbe64956c15ab3ae73d890463fb8a130122841796
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/.
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>
24 #ifndef ENUM_FONTFAMILY_DECLARED
25 #define ENUM_FONTFAMILY_DECLARED
26 enum FontFamily { FAMILY_DONTKNOW, FAMILY_DECORATIVE, FAMILY_MODERN,
27 FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, FAMILY_SYSTEM, FontFamily_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
28 #endif
30 #ifndef ENUM_FONTPITCH_DECLARED
31 #define ENUM_FONTPITCH_DECLARED
32 enum FontPitch { PITCH_DONTKNOW, PITCH_FIXED, PITCH_VARIABLE, FontPitch_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
33 #endif
35 #ifndef ENUM_TEXTALIGN_DECLARED
36 #define ENUM_TEXTALIGN_DECLARED
37 enum TextAlign { ALIGN_TOP, ALIGN_BASELINE, ALIGN_BOTTOM, TextAlign_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
38 #endif
40 #ifndef ENUM_FONTWEIGHT_DECLARED
41 #define ENUM_FONTWEIGHT_DECLARED
42 enum FontWeight { WEIGHT_DONTKNOW, WEIGHT_THIN, WEIGHT_ULTRALIGHT,
43 WEIGHT_LIGHT, WEIGHT_SEMILIGHT, WEIGHT_NORMAL,
44 WEIGHT_MEDIUM, WEIGHT_SEMIBOLD, WEIGHT_BOLD,
45 WEIGHT_ULTRABOLD, WEIGHT_BLACK, FontWeight_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
46 #endif
48 #ifndef ENUM_FONTWIDTH_DECLARED
49 #define ENUM_FONTWIDTH_DECLARED
50 enum FontWidth { WIDTH_DONTKNOW, WIDTH_ULTRA_CONDENSED, WIDTH_EXTRA_CONDENSED,
51 WIDTH_CONDENSED, WIDTH_SEMI_CONDENSED, WIDTH_NORMAL,
52 WIDTH_SEMI_EXPANDED, WIDTH_EXPANDED, WIDTH_EXTRA_EXPANDED,
53 WIDTH_ULTRA_EXPANDED,
54 FontWidth_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
55 #endif
57 #ifndef ENUM_FONTITALIC_DECLARED
58 #define ENUM_FONTITALIC_DECLARED
59 enum FontItalic { ITALIC_NONE, ITALIC_OBLIQUE, ITALIC_NORMAL, ITALIC_DONTKNOW, FontItalic_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
60 #endif
62 #ifndef ENUM_FONTUNDERLINE_DECLARED
63 #define ENUM_FONTUNDERLINE_DECLARED
64 enum FontUnderline { UNDERLINE_NONE, UNDERLINE_SINGLE, UNDERLINE_DOUBLE,
65 UNDERLINE_DOTTED, UNDERLINE_DONTKNOW,
66 UNDERLINE_DASH, UNDERLINE_LONGDASH,
67 UNDERLINE_DASHDOT, UNDERLINE_DASHDOTDOT,
68 UNDERLINE_SMALLWAVE,
69 UNDERLINE_WAVE, UNDERLINE_DOUBLEWAVE,
70 UNDERLINE_BOLD, UNDERLINE_BOLDDOTTED,
71 UNDERLINE_BOLDDASH, UNDERLINE_BOLDLONGDASH,
72 UNDERLINE_BOLDDASHDOT, UNDERLINE_BOLDDASHDOTDOT,
73 UNDERLINE_BOLDWAVE,
74 FontUnderline_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
75 #endif
77 #ifndef ENUM_FONTSTRIKEOUT_DECLARED
78 #define ENUM_FONTSTRIKEOUT_DECLARED
79 enum FontStrikeout { STRIKEOUT_NONE, STRIKEOUT_SINGLE, STRIKEOUT_DOUBLE,
80 STRIKEOUT_DONTKNOW, STRIKEOUT_BOLD,
81 STRIKEOUT_SLASH, STRIKEOUT_X,
82 FontStrikeout_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
83 #endif
85 #ifndef ENUM_FONTEMPHASISMARK_DECLARED
86 #define ENUM_FONTEMPHASISMARK_DECLARED
88 typedef sal_uInt16 FontEmphasisMark;
89 #define EMPHASISMARK_NONE ((FontEmphasisMark)0x0000)
90 #define EMPHASISMARK_DOT ((FontEmphasisMark)0x0001)
91 #define EMPHASISMARK_CIRCLE ((FontEmphasisMark)0x0002)
92 #define EMPHASISMARK_DISC ((FontEmphasisMark)0x0003)
93 #define EMPHASISMARK_ACCENT ((FontEmphasisMark)0x0004)
94 #define EMPHASISMARK_STYLE ((FontEmphasisMark)0x00FF)
95 #define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000)
96 #define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000)
98 // Only for compatibility
99 #define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
100 #define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
101 #define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
102 #define EMPHASISMARK_CIRCLE_ABOVE (EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
104 #endif
106 #ifndef ENUM_FONTTYPE_DECLARED
107 #define ENUM_FONTTYPE_DECLARED
108 enum FontType { TYPE_DONTKNOW, TYPE_RASTER, TYPE_VECTOR, TYPE_SCALABLE,
109 FontType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
110 #endif
112 #ifndef ENUM_FONTEMBEDDEDBITMAP_DECLARED
113 #define ENUM_FONTEMBEDDEDBITMAP_DECLARED
114 enum FontEmbeddedBitmap { EMBEDDEDBITMAP_DONTKNOW, EMBEDDEDBITMAP_FALSE, EMBEDDEDBITMAP_TRUE };
115 #endif
117 #ifndef ENUM_FONTANTIALIAS_DECLARED
118 #define ENUM_FONTANTIALIAS_DECLARED
119 enum FontAntiAlias { ANTIALIAS_DONTKNOW, ANTIALIAS_FALSE, ANTIALIAS_TRUE };
120 #endif
122 #endif
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */