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