xref: /AOO41X/main/tools/inc/tools/fontenum.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _TOOLS_FONTENUM_HXX
29 #define _TOOLS_FONTENUM_HXX
30 
31 #include <sal/types.h>
32 #include <tools/solar.h>
33 
34 #ifndef ENUM_FONTFAMILY_DECLARED
35 #define ENUM_FONTFAMILY_DECLARED
36 
37 enum FontFamily { FAMILY_DONTKNOW, FAMILY_DECORATIVE, FAMILY_MODERN,
38 				  FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, FAMILY_SYSTEM, FontFamily_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
39 
40 #endif
41 
42 // ------------------------------------------------------------
43 
44 #ifndef ENUM_FONTPITCH_DECLARED
45 #define ENUM_FONTPITCH_DECLARED
46 
47 enum FontPitch { PITCH_DONTKNOW, PITCH_FIXED, PITCH_VARIABLE, FontPitch_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
48 
49 #endif
50 
51 // ------------------------------------------------------------
52 
53 #ifndef ENUM_TEXTALIGN_DECLARED
54 #define ENUM_TEXTALIGN_DECLARED
55 
56 enum TextAlign { ALIGN_TOP, ALIGN_BASELINE, ALIGN_BOTTOM, TextAlign_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
57 
58 #endif
59 
60 // ------------------------------------------------------------
61 
62 #ifndef ENUM_FONTWEIGHT_DECLARED
63 #define ENUM_FONTWEIGHT_DECLARED
64 
65 enum FontWeight { WEIGHT_DONTKNOW, WEIGHT_THIN, WEIGHT_ULTRALIGHT,
66 				  WEIGHT_LIGHT, WEIGHT_SEMILIGHT, WEIGHT_NORMAL,
67 				  WEIGHT_MEDIUM, WEIGHT_SEMIBOLD, WEIGHT_BOLD,
68 				  WEIGHT_ULTRABOLD, WEIGHT_BLACK, FontWeight_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
69 
70 #endif
71 
72 // ------------------------------------------------------------
73 
74 #ifndef ENUM_FONTWIDTH_DECLARED
75 #define ENUM_FONTWIDTH_DECLARED
76 
77 enum FontWidth { WIDTH_DONTKNOW, WIDTH_ULTRA_CONDENSED, WIDTH_EXTRA_CONDENSED,
78 				 WIDTH_CONDENSED, WIDTH_SEMI_CONDENSED, WIDTH_NORMAL,
79 				 WIDTH_SEMI_EXPANDED, WIDTH_EXPANDED, WIDTH_EXTRA_EXPANDED,
80 				 WIDTH_ULTRA_EXPANDED,
81 				 FontWidth_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
82 
83 #endif
84 
85 // ------------------------------------------------------------
86 
87 #ifndef ENUM_FONTITALIC_DECLARED
88 #define ENUM_FONTITALIC_DECLARED
89 
90 enum FontItalic { ITALIC_NONE, ITALIC_OBLIQUE, ITALIC_NORMAL, ITALIC_DONTKNOW, FontItalic_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
91 
92 #endif
93 
94 // ------------------------------------------------------------
95 
96 #ifndef ENUM_FONTUNDERLINE_DECLARED
97 #define ENUM_FONTUNDERLINE_DECLARED
98 
99 enum FontUnderline { UNDERLINE_NONE, UNDERLINE_SINGLE, UNDERLINE_DOUBLE,
100 					 UNDERLINE_DOTTED, UNDERLINE_DONTKNOW,
101 					 UNDERLINE_DASH, UNDERLINE_LONGDASH,
102 					 UNDERLINE_DASHDOT, UNDERLINE_DASHDOTDOT,
103 					 UNDERLINE_SMALLWAVE,
104 					 UNDERLINE_WAVE, UNDERLINE_DOUBLEWAVE,
105 					 UNDERLINE_BOLD, UNDERLINE_BOLDDOTTED,
106 					 UNDERLINE_BOLDDASH, UNDERLINE_BOLDLONGDASH,
107 					 UNDERLINE_BOLDDASHDOT, UNDERLINE_BOLDDASHDOTDOT,
108 					 UNDERLINE_BOLDWAVE,
109 					 FontUnderline_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
110 
111 #endif
112 
113 // ------------------------------------------------------------
114 
115 #ifndef ENUM_FONTSTRIKEOUT_DECLARED
116 #define ENUM_FONTSTRIKEOUT_DECLARED
117 
118 enum FontStrikeout { STRIKEOUT_NONE, STRIKEOUT_SINGLE, STRIKEOUT_DOUBLE,
119 					 STRIKEOUT_DONTKNOW, STRIKEOUT_BOLD,
120 					 STRIKEOUT_SLASH, STRIKEOUT_X,
121 					 FontStrikeout_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
122 
123 #endif
124 
125 // ------------------------------------------------------------
126 
127 #ifndef ENUM_FONTEMPHASISMARK_DECLARED
128 #define ENUM_FONTEMPHASISMARK_DECLARED
129 
130 typedef sal_uInt16 FontEmphasisMark;
131 #define EMPHASISMARK_NONE			((FontEmphasisMark)0x0000)
132 #define EMPHASISMARK_DOT			((FontEmphasisMark)0x0001)
133 #define EMPHASISMARK_CIRCLE 		((FontEmphasisMark)0x0002)
134 #define EMPHASISMARK_DISC			((FontEmphasisMark)0x0003)
135 #define EMPHASISMARK_ACCENT 		((FontEmphasisMark)0x0004)
136 #define EMPHASISMARK_STYLE			((FontEmphasisMark)0x00FF)
137 #define EMPHASISMARK_POS_ABOVE		((FontEmphasisMark)0x1000)
138 #define EMPHASISMARK_POS_BELOW		((FontEmphasisMark)0x2000)
139 
140 // Only for kompability
141 #define EMPHASISMARK_DOTS_ABOVE 	(EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
142 #define EMPHASISMARK_DOTS_BELOW 	(EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
143 #define EMPHASISMARK_SIDE_DOTS		(EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
144 #define EMPHASISMARK_CIRCLE_ABOVE	(EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
145 
146 #endif
147 
148 // ------------------------------------------------------------
149 
150 #ifndef ENUM_FONTTYPE_DECLARED
151 #define ENUM_FONTTYPE_DECLARED
152 
153 enum FontType { TYPE_DONTKNOW, TYPE_RASTER, TYPE_VECTOR, TYPE_SCALABLE,
154 				FontType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
155 
156 #endif
157 
158 #ifndef ENUM_FONTEMBEDDEDBITMAP_DECLARED
159 #define ENUM_FONTEMBEDDEDBITMAP_DECLARED
160 
161 enum FontEmbeddedBitmap { EMBEDDEDBITMAP_DONTKNOW, EMBEDDEDBITMAP_FALSE, EMBEDDEDBITMAP_TRUE };
162 
163 #endif
164 
165 #ifndef ENUM_FONTANTIALIAS_DECLARED
166 #define ENUM_FONTANTIALIAS_DECLARED
167 
168 enum FontAntiAlias { ANTIALIAS_DONTKNOW, ANTIALIAS_FALSE, ANTIALIAS_TRUE };
169 
170 #endif
171 
172 #endif	// _TOOLS_FONTENUM_HXX
173