xref: /aoo4110/main/tools/inc/tools/fontenum.hxx (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski  *
3*b1cdbd2cSJim Jagielski  * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski  * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski  * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski  * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski  * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski  * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski  * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski  *
11*b1cdbd2cSJim Jagielski  *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski  *
13*b1cdbd2cSJim Jagielski  * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski  * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski  * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski  * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski  * under the License.
19*b1cdbd2cSJim Jagielski  *
20*b1cdbd2cSJim Jagielski  *************************************************************/
21*b1cdbd2cSJim Jagielski 
22*b1cdbd2cSJim Jagielski 
23*b1cdbd2cSJim Jagielski 
24*b1cdbd2cSJim Jagielski #ifndef _TOOLS_FONTENUM_HXX
25*b1cdbd2cSJim Jagielski #define _TOOLS_FONTENUM_HXX
26*b1cdbd2cSJim Jagielski 
27*b1cdbd2cSJim Jagielski #include <sal/types.h>
28*b1cdbd2cSJim Jagielski #include <tools/solar.h>
29*b1cdbd2cSJim Jagielski 
30*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTFAMILY_DECLARED
31*b1cdbd2cSJim Jagielski #define ENUM_FONTFAMILY_DECLARED
32*b1cdbd2cSJim Jagielski 
33*b1cdbd2cSJim Jagielski enum FontFamily { FAMILY_DONTKNOW, FAMILY_DECORATIVE, FAMILY_MODERN,
34*b1cdbd2cSJim Jagielski 				  FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, FAMILY_SYSTEM, FontFamily_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
35*b1cdbd2cSJim Jagielski 
36*b1cdbd2cSJim Jagielski #endif
37*b1cdbd2cSJim Jagielski 
38*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
39*b1cdbd2cSJim Jagielski 
40*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTPITCH_DECLARED
41*b1cdbd2cSJim Jagielski #define ENUM_FONTPITCH_DECLARED
42*b1cdbd2cSJim Jagielski 
43*b1cdbd2cSJim Jagielski enum FontPitch { PITCH_DONTKNOW, PITCH_FIXED, PITCH_VARIABLE, FontPitch_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
44*b1cdbd2cSJim Jagielski 
45*b1cdbd2cSJim Jagielski #endif
46*b1cdbd2cSJim Jagielski 
47*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
48*b1cdbd2cSJim Jagielski 
49*b1cdbd2cSJim Jagielski #ifndef ENUM_TEXTALIGN_DECLARED
50*b1cdbd2cSJim Jagielski #define ENUM_TEXTALIGN_DECLARED
51*b1cdbd2cSJim Jagielski 
52*b1cdbd2cSJim Jagielski enum TextAlign { ALIGN_TOP, ALIGN_BASELINE, ALIGN_BOTTOM, TextAlign_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
53*b1cdbd2cSJim Jagielski 
54*b1cdbd2cSJim Jagielski #endif
55*b1cdbd2cSJim Jagielski 
56*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
57*b1cdbd2cSJim Jagielski 
58*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTWEIGHT_DECLARED
59*b1cdbd2cSJim Jagielski #define ENUM_FONTWEIGHT_DECLARED
60*b1cdbd2cSJim Jagielski 
61*b1cdbd2cSJim Jagielski enum FontWeight { WEIGHT_DONTKNOW, WEIGHT_THIN, WEIGHT_ULTRALIGHT,
62*b1cdbd2cSJim Jagielski 				  WEIGHT_LIGHT, WEIGHT_SEMILIGHT, WEIGHT_NORMAL,
63*b1cdbd2cSJim Jagielski 				  WEIGHT_MEDIUM, WEIGHT_SEMIBOLD, WEIGHT_BOLD,
64*b1cdbd2cSJim Jagielski 				  WEIGHT_ULTRABOLD, WEIGHT_BLACK, FontWeight_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
65*b1cdbd2cSJim Jagielski 
66*b1cdbd2cSJim Jagielski #endif
67*b1cdbd2cSJim Jagielski 
68*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
69*b1cdbd2cSJim Jagielski 
70*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTWIDTH_DECLARED
71*b1cdbd2cSJim Jagielski #define ENUM_FONTWIDTH_DECLARED
72*b1cdbd2cSJim Jagielski 
73*b1cdbd2cSJim Jagielski enum FontWidth { WIDTH_DONTKNOW, WIDTH_ULTRA_CONDENSED, WIDTH_EXTRA_CONDENSED,
74*b1cdbd2cSJim Jagielski 				 WIDTH_CONDENSED, WIDTH_SEMI_CONDENSED, WIDTH_NORMAL,
75*b1cdbd2cSJim Jagielski 				 WIDTH_SEMI_EXPANDED, WIDTH_EXPANDED, WIDTH_EXTRA_EXPANDED,
76*b1cdbd2cSJim Jagielski 				 WIDTH_ULTRA_EXPANDED,
77*b1cdbd2cSJim Jagielski 				 FontWidth_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
78*b1cdbd2cSJim Jagielski 
79*b1cdbd2cSJim Jagielski #endif
80*b1cdbd2cSJim Jagielski 
81*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
82*b1cdbd2cSJim Jagielski 
83*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTITALIC_DECLARED
84*b1cdbd2cSJim Jagielski #define ENUM_FONTITALIC_DECLARED
85*b1cdbd2cSJim Jagielski 
86*b1cdbd2cSJim Jagielski enum FontItalic { ITALIC_NONE, ITALIC_OBLIQUE, ITALIC_NORMAL, ITALIC_DONTKNOW, FontItalic_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
87*b1cdbd2cSJim Jagielski 
88*b1cdbd2cSJim Jagielski #endif
89*b1cdbd2cSJim Jagielski 
90*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
91*b1cdbd2cSJim Jagielski 
92*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTUNDERLINE_DECLARED
93*b1cdbd2cSJim Jagielski #define ENUM_FONTUNDERLINE_DECLARED
94*b1cdbd2cSJim Jagielski 
95*b1cdbd2cSJim Jagielski enum FontUnderline { UNDERLINE_NONE, UNDERLINE_SINGLE, UNDERLINE_DOUBLE,
96*b1cdbd2cSJim Jagielski 					 UNDERLINE_DOTTED, UNDERLINE_DONTKNOW,
97*b1cdbd2cSJim Jagielski 					 UNDERLINE_DASH, UNDERLINE_LONGDASH,
98*b1cdbd2cSJim Jagielski 					 UNDERLINE_DASHDOT, UNDERLINE_DASHDOTDOT,
99*b1cdbd2cSJim Jagielski 					 UNDERLINE_SMALLWAVE,
100*b1cdbd2cSJim Jagielski 					 UNDERLINE_WAVE, UNDERLINE_DOUBLEWAVE,
101*b1cdbd2cSJim Jagielski 					 UNDERLINE_BOLD, UNDERLINE_BOLDDOTTED,
102*b1cdbd2cSJim Jagielski 					 UNDERLINE_BOLDDASH, UNDERLINE_BOLDLONGDASH,
103*b1cdbd2cSJim Jagielski 					 UNDERLINE_BOLDDASHDOT, UNDERLINE_BOLDDASHDOTDOT,
104*b1cdbd2cSJim Jagielski 					 UNDERLINE_BOLDWAVE,
105*b1cdbd2cSJim Jagielski 					 FontUnderline_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
106*b1cdbd2cSJim Jagielski 
107*b1cdbd2cSJim Jagielski #endif
108*b1cdbd2cSJim Jagielski 
109*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
110*b1cdbd2cSJim Jagielski 
111*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTSTRIKEOUT_DECLARED
112*b1cdbd2cSJim Jagielski #define ENUM_FONTSTRIKEOUT_DECLARED
113*b1cdbd2cSJim Jagielski 
114*b1cdbd2cSJim Jagielski enum FontStrikeout { STRIKEOUT_NONE, STRIKEOUT_SINGLE, STRIKEOUT_DOUBLE,
115*b1cdbd2cSJim Jagielski 					 STRIKEOUT_DONTKNOW, STRIKEOUT_BOLD,
116*b1cdbd2cSJim Jagielski 					 STRIKEOUT_SLASH, STRIKEOUT_X,
117*b1cdbd2cSJim Jagielski 					 FontStrikeout_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
118*b1cdbd2cSJim Jagielski 
119*b1cdbd2cSJim Jagielski #endif
120*b1cdbd2cSJim Jagielski 
121*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
122*b1cdbd2cSJim Jagielski 
123*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTEMPHASISMARK_DECLARED
124*b1cdbd2cSJim Jagielski #define ENUM_FONTEMPHASISMARK_DECLARED
125*b1cdbd2cSJim Jagielski 
126*b1cdbd2cSJim Jagielski typedef sal_uInt16 FontEmphasisMark;
127*b1cdbd2cSJim Jagielski #define EMPHASISMARK_NONE			((FontEmphasisMark)0x0000)
128*b1cdbd2cSJim Jagielski #define EMPHASISMARK_DOT			((FontEmphasisMark)0x0001)
129*b1cdbd2cSJim Jagielski #define EMPHASISMARK_CIRCLE 		((FontEmphasisMark)0x0002)
130*b1cdbd2cSJim Jagielski #define EMPHASISMARK_DISC			((FontEmphasisMark)0x0003)
131*b1cdbd2cSJim Jagielski #define EMPHASISMARK_ACCENT 		((FontEmphasisMark)0x0004)
132*b1cdbd2cSJim Jagielski #define EMPHASISMARK_STYLE			((FontEmphasisMark)0x00FF)
133*b1cdbd2cSJim Jagielski #define EMPHASISMARK_POS_ABOVE		((FontEmphasisMark)0x1000)
134*b1cdbd2cSJim Jagielski #define EMPHASISMARK_POS_BELOW		((FontEmphasisMark)0x2000)
135*b1cdbd2cSJim Jagielski 
136*b1cdbd2cSJim Jagielski // Only for kompability
137*b1cdbd2cSJim Jagielski #define EMPHASISMARK_DOTS_ABOVE 	(EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
138*b1cdbd2cSJim Jagielski #define EMPHASISMARK_DOTS_BELOW 	(EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
139*b1cdbd2cSJim Jagielski #define EMPHASISMARK_SIDE_DOTS		(EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
140*b1cdbd2cSJim Jagielski #define EMPHASISMARK_CIRCLE_ABOVE	(EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
141*b1cdbd2cSJim Jagielski 
142*b1cdbd2cSJim Jagielski #endif
143*b1cdbd2cSJim Jagielski 
144*b1cdbd2cSJim Jagielski // ------------------------------------------------------------
145*b1cdbd2cSJim Jagielski 
146*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTTYPE_DECLARED
147*b1cdbd2cSJim Jagielski #define ENUM_FONTTYPE_DECLARED
148*b1cdbd2cSJim Jagielski 
149*b1cdbd2cSJim Jagielski enum FontType { TYPE_DONTKNOW, TYPE_RASTER, TYPE_VECTOR, TYPE_SCALABLE,
150*b1cdbd2cSJim Jagielski 				FontType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
151*b1cdbd2cSJim Jagielski 
152*b1cdbd2cSJim Jagielski #endif
153*b1cdbd2cSJim Jagielski 
154*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTEMBEDDEDBITMAP_DECLARED
155*b1cdbd2cSJim Jagielski #define ENUM_FONTEMBEDDEDBITMAP_DECLARED
156*b1cdbd2cSJim Jagielski 
157*b1cdbd2cSJim Jagielski enum FontEmbeddedBitmap { EMBEDDEDBITMAP_DONTKNOW, EMBEDDEDBITMAP_FALSE, EMBEDDEDBITMAP_TRUE };
158*b1cdbd2cSJim Jagielski 
159*b1cdbd2cSJim Jagielski #endif
160*b1cdbd2cSJim Jagielski 
161*b1cdbd2cSJim Jagielski #ifndef ENUM_FONTANTIALIAS_DECLARED
162*b1cdbd2cSJim Jagielski #define ENUM_FONTANTIALIAS_DECLARED
163*b1cdbd2cSJim Jagielski 
164*b1cdbd2cSJim Jagielski enum FontAntiAlias { ANTIALIAS_DONTKNOW, ANTIALIAS_FALSE, ANTIALIAS_TRUE };
165*b1cdbd2cSJim Jagielski 
166*b1cdbd2cSJim Jagielski #endif
167*b1cdbd2cSJim Jagielski 
168*b1cdbd2cSJim Jagielski #endif	// _TOOLS_FONTENUM_HXX
169