Jean-Claude Batista
[wine.git] / dlls / richedit / rtf.h
blobea7bcbe14f3219013ff2df619c2655baee9d1fd7
1 #ifndef _RTF
2 #define _RTF
4 #include <stdio.h>
5 #include <windows.h>
6 #include <richedit.h>
7 void RTFSetEditStream(EDITSTREAM *es);
10 /* The following defines are automatically generated. Do not edit. */
13 /* These must be sequential beginning from zero */
15 #define rtfSC_nothing 0
16 #define rtfSC_space 1
17 #define rtfSC_exclam 2
18 #define rtfSC_quotedbl 3
19 #define rtfSC_numbersign 4
20 #define rtfSC_dollar 5
21 #define rtfSC_percent 6
22 #define rtfSC_ampersand 7
23 #define rtfSC_quoteright 8
24 #define rtfSC_parenleft 9
25 #define rtfSC_parenright 10
26 #define rtfSC_asterisk 11
27 #define rtfSC_plus 12
28 #define rtfSC_comma 13
29 #define rtfSC_hyphen 14
30 #define rtfSC_period 15
31 #define rtfSC_slash 16
32 #define rtfSC_zero 17
33 #define rtfSC_one 18
34 #define rtfSC_two 19
35 #define rtfSC_three 20
36 #define rtfSC_four 21
37 #define rtfSC_five 22
38 #define rtfSC_six 23
39 #define rtfSC_seven 24
40 #define rtfSC_eight 25
41 #define rtfSC_nine 26
42 #define rtfSC_colon 27
43 #define rtfSC_semicolon 28
44 #define rtfSC_less 29
45 #define rtfSC_equal 30
46 #define rtfSC_greater 31
47 #define rtfSC_question 32
48 #define rtfSC_at 33
49 #define rtfSC_A 34
50 #define rtfSC_B 35
51 #define rtfSC_C 36
52 #define rtfSC_D 37
53 #define rtfSC_E 38
54 #define rtfSC_F 39
55 #define rtfSC_G 40
56 #define rtfSC_H 41
57 #define rtfSC_I 42
58 #define rtfSC_J 43
59 #define rtfSC_K 44
60 #define rtfSC_L 45
61 #define rtfSC_M 46
62 #define rtfSC_N 47
63 #define rtfSC_O 48
64 #define rtfSC_P 49
65 #define rtfSC_Q 50
66 #define rtfSC_R 51
67 #define rtfSC_S 52
68 #define rtfSC_T 53
69 #define rtfSC_U 54
70 #define rtfSC_V 55
71 #define rtfSC_W 56
72 #define rtfSC_X 57
73 #define rtfSC_Y 58
74 #define rtfSC_Z 59
75 #define rtfSC_bracketleft 60
76 #define rtfSC_backslash 61
77 #define rtfSC_bracketright 62
78 #define rtfSC_asciicircum 63
79 #define rtfSC_underscore 64
80 #define rtfSC_quoteleft 65
81 #define rtfSC_a 66
82 #define rtfSC_b 67
83 #define rtfSC_c 68
84 #define rtfSC_d 69
85 #define rtfSC_e 70
86 #define rtfSC_f 71
87 #define rtfSC_g 72
88 #define rtfSC_h 73
89 #define rtfSC_i 74
90 #define rtfSC_j 75
91 #define rtfSC_k 76
92 #define rtfSC_l 77
93 #define rtfSC_m 78
94 #define rtfSC_n 79
95 #define rtfSC_o 80
96 #define rtfSC_p 81
97 #define rtfSC_q 82
98 #define rtfSC_r 83
99 #define rtfSC_s 84
100 #define rtfSC_t 85
101 #define rtfSC_u 86
102 #define rtfSC_v 87
103 #define rtfSC_w 88
104 #define rtfSC_x 89
105 #define rtfSC_y 90
106 #define rtfSC_z 91
107 #define rtfSC_braceleft 92
108 #define rtfSC_bar 93
109 #define rtfSC_braceright 94
110 #define rtfSC_asciitilde 95
111 #define rtfSC_exclamdown 96
112 #define rtfSC_cent 97
113 #define rtfSC_sterling 98
114 #define rtfSC_fraction 99
115 #define rtfSC_yen 100
116 #define rtfSC_florin 101
117 #define rtfSC_section 102
118 #define rtfSC_currency 103
119 #define rtfSC_quotedblleft 104
120 #define rtfSC_guillemotleft 105
121 #define rtfSC_guilsinglleft 106
122 #define rtfSC_guilsinglright 107
123 #define rtfSC_fi 108
124 #define rtfSC_fl 109
125 #define rtfSC_endash 110
126 #define rtfSC_dagger 111
127 #define rtfSC_daggerdbl 112
128 #define rtfSC_periodcentered 113
129 #define rtfSC_paragraph 114
130 #define rtfSC_bullet 115
131 #define rtfSC_quotesinglbase 116
132 #define rtfSC_quotedblbase 117
133 #define rtfSC_quotedblright 118
134 #define rtfSC_guillemotright 119
135 #define rtfSC_ellipsis 120
136 #define rtfSC_perthousand 121
137 #define rtfSC_questiondown 122
138 #define rtfSC_grave 123
139 #define rtfSC_acute 124
140 #define rtfSC_circumflex 125
141 #define rtfSC_tilde 126
142 #define rtfSC_macron 127
143 #define rtfSC_breve 128
144 #define rtfSC_dotaccent 129
145 #define rtfSC_dieresis 130
146 #define rtfSC_ring 131
147 #define rtfSC_cedilla 132
148 #define rtfSC_hungarumlaut 133
149 #define rtfSC_ogonek 134
150 #define rtfSC_caron 135
151 #define rtfSC_emdash 136
152 #define rtfSC_AE 137
153 #define rtfSC_ordfeminine 138
154 #define rtfSC_Lslash 139
155 #define rtfSC_Oslash 140
156 #define rtfSC_OE 141
157 #define rtfSC_ordmasculine 142
158 #define rtfSC_ae 143
159 #define rtfSC_dotlessi 144
160 #define rtfSC_lslash 145
161 #define rtfSC_oslash 146
162 #define rtfSC_oe 147
163 #define rtfSC_germandbls 148
164 #define rtfSC_Aacute 149
165 #define rtfSC_Acircumflex 150
166 #define rtfSC_Adieresis 151
167 #define rtfSC_Agrave 152
168 #define rtfSC_Aring 153
169 #define rtfSC_Atilde 154
170 #define rtfSC_Ccedilla 155
171 #define rtfSC_Eacute 156
172 #define rtfSC_Ecircumflex 157
173 #define rtfSC_Edieresis 158
174 #define rtfSC_Egrave 159
175 #define rtfSC_Eth 160
176 #define rtfSC_Iacute 161
177 #define rtfSC_Icircumflex 162
178 #define rtfSC_Idieresis 163
179 #define rtfSC_Igrave 164
180 #define rtfSC_Ntilde 165
181 #define rtfSC_Oacute 166
182 #define rtfSC_Ocircumflex 167
183 #define rtfSC_Odieresis 168
184 #define rtfSC_Ograve 169
185 #define rtfSC_Otilde 170
186 #define rtfSC_Scaron 171
187 #define rtfSC_Thorn 172
188 #define rtfSC_Uacute 173
189 #define rtfSC_Ucircumflex 174
190 #define rtfSC_Udieresis 175
191 #define rtfSC_Ugrave 176
192 #define rtfSC_Yacute 177
193 #define rtfSC_Ydieresis 178
194 #define rtfSC_aacute 179
195 #define rtfSC_acircumflex 180
196 #define rtfSC_adieresis 181
197 #define rtfSC_agrave 182
198 #define rtfSC_aring 183
199 #define rtfSC_atilde 184
200 #define rtfSC_brokenbar 185
201 #define rtfSC_ccedilla 186
202 #define rtfSC_copyright 187
203 #define rtfSC_degree 188
204 #define rtfSC_divide 189
205 #define rtfSC_eacute 190
206 #define rtfSC_ecircumflex 191
207 #define rtfSC_edieresis 192
208 #define rtfSC_egrave 193
209 #define rtfSC_eth 194
210 #define rtfSC_iacute 195
211 #define rtfSC_icircumflex 196
212 #define rtfSC_idieresis 197
213 #define rtfSC_igrave 198
214 #define rtfSC_logicalnot 199
215 #define rtfSC_minus 200
216 #define rtfSC_multiply 201
217 #define rtfSC_ntilde 202
218 #define rtfSC_oacute 203
219 #define rtfSC_ocircumflex 204
220 #define rtfSC_odieresis 205
221 #define rtfSC_ograve 206
222 #define rtfSC_onehalf 207
223 #define rtfSC_onequarter 208
224 #define rtfSC_onesuperior 209
225 #define rtfSC_otilde 210
226 #define rtfSC_plusminus 211
227 #define rtfSC_registered 212
228 #define rtfSC_thorn 213
229 #define rtfSC_threequarters 214
230 #define rtfSC_threesuperior 215
231 #define rtfSC_trademark 216
232 #define rtfSC_twosuperior 217
233 #define rtfSC_uacute 218
234 #define rtfSC_ucircumflex 219
235 #define rtfSC_udieresis 220
236 #define rtfSC_ugrave 221
237 #define rtfSC_yacute 222
238 #define rtfSC_ydieresis 223
239 #define rtfSC_Alpha 224
240 #define rtfSC_Beta 225
241 #define rtfSC_Chi 226
242 #define rtfSC_Delta 227
243 #define rtfSC_Epsilon 228
244 #define rtfSC_Phi 229
245 #define rtfSC_Gamma 230
246 #define rtfSC_Eta 231
247 #define rtfSC_Iota 232
248 #define rtfSC_Kappa 233
249 #define rtfSC_Lambda 234
250 #define rtfSC_Mu 235
251 #define rtfSC_Nu 236
252 #define rtfSC_Omicron 237
253 #define rtfSC_Pi 238
254 #define rtfSC_Theta 239
255 #define rtfSC_Rho 240
256 #define rtfSC_Sigma 241
257 #define rtfSC_Tau 242
258 #define rtfSC_Upsilon 243
259 #define rtfSC_varUpsilon 244
260 #define rtfSC_Omega 245
261 #define rtfSC_Xi 246
262 #define rtfSC_Psi 247
263 #define rtfSC_Zeta 248
264 #define rtfSC_alpha 249
265 #define rtfSC_beta 250
266 #define rtfSC_chi 251
267 #define rtfSC_delta 252
268 #define rtfSC_epsilon 253
269 #define rtfSC_phi 254
270 #define rtfSC_varphi 255
271 #define rtfSC_gamma 256
272 #define rtfSC_eta 257
273 #define rtfSC_iota 258
274 #define rtfSC_kappa 259
275 #define rtfSC_lambda 260
276 #define rtfSC_mu 261
277 #define rtfSC_nu 262
278 #define rtfSC_omicron 263
279 #define rtfSC_pi 264
280 #define rtfSC_varpi 265
281 #define rtfSC_theta 266
282 #define rtfSC_vartheta 267
283 #define rtfSC_rho 268
284 #define rtfSC_sigma 269
285 #define rtfSC_varsigma 270
286 #define rtfSC_tau 271
287 #define rtfSC_upsilon 272
288 #define rtfSC_omega 273
289 #define rtfSC_xi 274
290 #define rtfSC_psi 275
291 #define rtfSC_zeta 276
292 #define rtfSC_nobrkspace 277
293 #define rtfSC_nobrkhyphen 278
294 #define rtfSC_lessequal 279
295 #define rtfSC_greaterequal 280
296 #define rtfSC_infinity 281
297 #define rtfSC_integral 282
298 #define rtfSC_notequal 283
299 #define rtfSC_radical 284
300 #define rtfSC_radicalex 285
301 #define rtfSC_approxequal 286
302 #define rtfSC_apple 287
303 #define rtfSC_partialdiff 288
304 #define rtfSC_opthyphen 289
305 #define rtfSC_formula 290
306 #define rtfSC_lozenge 291
307 #define rtfSC_universal 292
308 #define rtfSC_existential 293
309 #define rtfSC_suchthat 294
310 #define rtfSC_congruent 295
311 #define rtfSC_therefore 296
312 #define rtfSC_perpendicular 297
313 #define rtfSC_minute 298
314 #define rtfSC_club 299
315 #define rtfSC_diamond 300
316 #define rtfSC_heart 301
317 #define rtfSC_spade 302
318 #define rtfSC_arrowboth 303
319 #define rtfSC_arrowleft 304
320 #define rtfSC_arrowup 305
321 #define rtfSC_arrowright 306
322 #define rtfSC_arrowdown 307
323 #define rtfSC_second 308
324 #define rtfSC_proportional 309
325 #define rtfSC_equivalence 310
326 #define rtfSC_arrowvertex 311
327 #define rtfSC_arrowhorizex 312
328 #define rtfSC_carriagereturn 313
329 #define rtfSC_aleph 314
330 #define rtfSC_Ifraktur 315
331 #define rtfSC_Rfraktur 316
332 #define rtfSC_weierstrass 317
333 #define rtfSC_circlemultiply 318
334 #define rtfSC_circleplus 319
335 #define rtfSC_emptyset 320
336 #define rtfSC_intersection 321
337 #define rtfSC_union 322
338 #define rtfSC_propersuperset 323
339 #define rtfSC_reflexsuperset 324
340 #define rtfSC_notsubset 325
341 #define rtfSC_propersubset 326
342 #define rtfSC_reflexsubset 327
343 #define rtfSC_element 328
344 #define rtfSC_notelement 329
345 #define rtfSC_angle 330
346 #define rtfSC_gradient 331
347 #define rtfSC_product 332
348 #define rtfSC_logicaland 333
349 #define rtfSC_logicalor 334
350 #define rtfSC_arrowdblboth 335
351 #define rtfSC_arrowdblleft 336
352 #define rtfSC_arrowdblup 337
353 #define rtfSC_arrowdblright 338
354 #define rtfSC_arrowdbldown 339
355 #define rtfSC_angleleft 340
356 #define rtfSC_registersans 341
357 #define rtfSC_copyrightsans 342
358 #define rtfSC_trademarksans 343
359 #define rtfSC_angleright 344
360 #define rtfSC_mathplus 345
361 #define rtfSC_mathminus 346
362 #define rtfSC_mathasterisk 347
363 #define rtfSC_mathnumbersign 348
364 #define rtfSC_dotmath 349
365 #define rtfSC_mathequal 350
366 #define rtfSC_mathtilde 351
368 #define rtfSC_MaxChar 352
370 * rtf.h - RTF document processing stuff. Release 1.10.
375 * Twentieths of a point (twips) per inch (Many RTF measurements
376 * are in twips per inch (tpi) units). Assumes 72 points/inch.
379 # define rtfTpi 1440
382 * RTF buffer size (avoids BUFSIZ, which differs across systems)
385 # define rtfBufSiz 1024
388 * Tokens are associated with up to three classification numbers:
390 * Class number: Broadest (least detailed) breakdown. For programs
391 * that only care about gross token distinctions.
392 * Major/minor numbers: Within their class, tokens have a major
393 * number, and may also have a minor number to further
394 * distinquish tokens with the same major number.
396 * *** Class, major and minor token numbers are all >= 0 ***
398 * Tokens that can't be classified are put in the "unknown" class.
399 * For such, the major and minor numbers are meaningless, although
400 * rtfTextBuf may be of interest then.
402 * Text tokens are a single character, and the major number indicates
403 * the character value (note: can be non-ascii, i.e., greater than 127).
404 * There is no minor number.
406 * Control symbols may have a parameter value, which will be found in
407 * rtfParam. If no parameter was given, rtfParam = rtfNoParam.
409 * RTFGetToken() return value is the class number, but it sets all the
410 * global token vars.
412 * rtfEOF is a fake token used by the reader; the writer never sees
413 * it (except in the token reader hook, if it installs one).
418 * Information pertaining to last token read by RTFToken. The
419 * text is exactly as it occurs in the input file, e.g., "\{"
420 * will be found in rtfTextBuf as "\{", even though it means "{".
421 * These variables are also set when styles are reprocessed.
424 extern char *rtfTextBuf; /* text of token */
425 extern int rtfTextLen; /* length of token in rtfTextBuf */
426 extern int rtfClass; /* token class */
427 extern int rtfMajor; /* token major number */
428 extern int rtfMinor; /* token minor number */
429 extern int rtfParam; /* control symbol parameter */
431 # ifdef THINK_C
432 # define rtfNoParam (-32768) /* 16-bit max. neg. value */
433 # endif
434 # ifndef rtfNoParam
435 # define rtfNoParam (-1000000)
436 # endif
438 extern long rtfLineNum; /* input line number */
439 extern int rtfLinePos; /* input line position */
442 * For some reason, the no-style number is 222
445 # define rtfNoStyleNum 222
446 # define rtfNormalStyleNum 0
450 * Token classes (must be zero-based and sequential)
453 # define rtfUnknown 0
454 # define rtfGroup 1
455 # define rtfText 2
456 # define rtfControl 3
457 # define rtfEOF 4
458 # define rtfMaxClass 5 /* highest class + 1 */
461 * Group class major numbers
464 # define rtfBeginGroup 0
465 # define rtfEndGroup 1
468 * Control class major and minor numbers.
471 # define rtfVersion 0
473 # define rtfDefFont 1
475 # define rtfCharSet 2
476 # define rtfAnsiCharSet 0
477 # define rtfMacCharSet 1
478 # define rtfPcCharSet 2
479 # define rtfPcaCharSet 3
482 /* destination minor numbers should be zero-based and sequential */
484 # define rtfDestination 3
485 # define rtfFontTbl 0
486 # define rtfFontAltName 1 /* new in 1.10 */
487 # define rtfEmbeddedFont 2 /* new in 1.10 */
488 # define rtfFontFile 3 /* new in 1.10 */
489 # define rtfFileTbl 4 /* new in 1.10 */
490 # define rtfFileInfo 5 /* new in 1.10 */
491 # define rtfColorTbl 6
492 # define rtfStyleSheet 7
493 # define rtfKeyCode 8
494 # define rtfRevisionTbl 9 /* new in 1.10 */
495 # define rtfInfo 10
496 # define rtfITitle 11
497 # define rtfISubject 12
498 # define rtfIAuthor 13
499 # define rtfIOperator 14
500 # define rtfIKeywords 15
501 # define rtfIComment 16
502 # define rtfIVersion 17
503 # define rtfIDoccomm 18
504 # define rtfIVerscomm 19
505 # define rtfNextFile 20 /* reclassified in 1.10 */
506 # define rtfTemplate 21 /* reclassified in 1.10 */
507 # define rtfFNSep 22
508 # define rtfFNContSep 23
509 # define rtfFNContNotice 24
510 # define rtfENSep 25 /* new in 1.10 */
511 # define rtfENContSep 26 /* new in 1.10 */
512 # define rtfENContNotice 27 /* new in 1.10 */
513 # define rtfPageNumLevel 28 /* new in 1.10 */
514 # define rtfParNumLevelStyle 29 /* new in 1.10 */
515 # define rtfHeader 30
516 # define rtfFooter 31
517 # define rtfHeaderLeft 32
518 # define rtfHeaderRight 33
519 # define rtfHeaderFirst 34
520 # define rtfFooterLeft 35
521 # define rtfFooterRight 36
522 # define rtfFooterFirst 37
523 # define rtfParNumText 38 /* new in 1.10 */
524 # define rtfParNumbering 39 /* new in 1.10 */
525 # define rtfParNumTextAfter 40 /* new in 1.10 */
526 # define rtfParNumTextBefore 41 /* new in 1.10 */
527 # define rtfBookmarkStart 42
528 # define rtfBookmarkEnd 43
529 # define rtfPict 44
530 # define rtfObject 45
531 # define rtfObjClass 46
532 # define rtfObjName 47
533 # define rtfObjTime 48 /* new in 1.10 */
534 # define rtfObjData 49
535 # define rtfObjAlias 50
536 # define rtfObjSection 51
537 # define rtfObjResult 52
538 # define rtfObjItem 53 /* new in 1.10 */
539 # define rtfObjTopic 54 /* new in 1.10 */
540 # define rtfDrawObject 55 /* new in 1.10 */
541 # define rtfFootnote 56
542 # define rtfAnnotRefStart 57 /* new in 1.10 */
543 # define rtfAnnotRefEnd 58 /* new in 1.10 */
544 # define rtfAnnotID 59 /* reclassified in 1.10 */
545 # define rtfAnnotAuthor 60 /* new in 1.10 */
546 # define rtfAnnotation 61 /* reclassified in 1.10 */
547 # define rtfAnnotRef 62 /* new in 1.10 */
548 # define rtfAnnotTime 63 /* new in 1.10 */
549 # define rtfAnnotIcon 64 /* new in 1.10 */
550 # define rtfField 65
551 # define rtfFieldInst 66
552 # define rtfFieldResult 67
553 # define rtfDataField 68 /* new in 1.10 */
554 # define rtfIndex 69
555 # define rtfIndexText 70
556 # define rtfIndexRange 71
557 # define rtfTOC 72
558 # define rtfNeXTGraphic 73
559 # define rtfMaxDestination 74 /* highest dest + 1 */
561 # define rtfFontFamily 4
562 # define rtfFFNil 0
563 # define rtfFFRoman 1
564 # define rtfFFSwiss 2
565 # define rtfFFModern 3
566 # define rtfFFScript 4
567 # define rtfFFDecor 5
568 # define rtfFFTech 6
569 # define rtfFFBidirectional 7 /* new in 1.10 */
571 # define rtfColorName 5
572 # define rtfRed 0
573 # define rtfGreen 1
574 # define rtfBlue 2
576 # define rtfSpecialChar 6
577 /* special chars seen in \info destination */
578 # define rtfIIntVersion 0
579 # define rtfICreateTime 1
580 # define rtfIRevisionTime 2
581 # define rtfIPrintTime 3
582 # define rtfIBackupTime 4
583 # define rtfIEditTime 5
584 # define rtfIYear 6
585 # define rtfIMonth 7
586 # define rtfIDay 8
587 # define rtfIHour 9
588 # define rtfIMinute 10
589 # define rtfISecond 11 /* new in 1.10 */
590 # define rtfINPages 12
591 # define rtfINWords 13
592 # define rtfINChars 14
593 # define rtfIIntID 15
594 /* other special chars */
595 # define rtfCurHeadDate 16
596 # define rtfCurHeadDateLong 17
597 # define rtfCurHeadDateAbbrev 18
598 # define rtfCurHeadTime 19
599 # define rtfCurHeadPage 20
600 # define rtfSectNum 21 /* new in 1.10 */
601 # define rtfCurFNote 22
602 # define rtfCurAnnotRef 23
603 # define rtfFNoteSep 24
604 # define rtfFNoteCont 25
605 # define rtfCell 26
606 # define rtfRow 27
607 # define rtfPar 28
608 # define rtfSect 29
609 # define rtfPage 30
610 # define rtfColumn 31
611 # define rtfLine 32
612 # define rtfSoftPage 33 /* new in 1.10 */
613 # define rtfSoftColumn 34 /* new in 1.10 */
614 # define rtfSoftLine 35 /* new in 1.10 */
615 # define rtfSoftLineHt 36 /* new in 1.10 */
616 # define rtfTab 37
617 # define rtfEmDash 38
618 # define rtfEnDash 39
619 # define rtfEmSpace 40 /* new in 1.10 */
620 # define rtfEnSpace 41 /* new in 1.10 */
621 # define rtfBullet 42
622 # define rtfLQuote 43
623 # define rtfRQuote 44
624 # define rtfLDblQuote 45
625 # define rtfRDblQuote 46
626 # define rtfFormula 47
627 # define rtfNoBrkSpace 49
628 # define rtfNoReqHyphen 50
629 # define rtfNoBrkHyphen 51
630 # define rtfOptDest 52
631 # define rtfLTRMark 53 /* new in 1.10 */
632 # define rtfRTLMark 54 /* new in 1.10 */
633 # define rtfNoWidthJoiner 55 /* new in 1.10 */
634 # define rtfNoWidthNonJoiner 56 /* new in 1.10 */
635 # define rtfCurHeadPict 57 /* valid? */
636 /*# define rtfCurAnnot 58*/ /* apparently not used */
638 # define rtfStyleAttr 7
639 # define rtfAdditive 0 /* new in 1.10 */
640 # define rtfBasedOn 1
641 # define rtfNext 2
643 # define rtfDocAttr 8
644 # define rtfDefTab 0
645 # define rtfHyphHotZone 1
646 # define rtfHyphConsecLines 2 /* new in 1.10 */
647 # define rtfHyphCaps 3 /* new in 1.10 */
648 # define rtfHyphAuto 4 /* new in 1.10 */
649 # define rtfLineStart 5
650 # define rtfFracWidth 6
651 # define rtfMakeBackup 7
652 # define rtfRTFDefault 8
653 # define rtfPSOverlay 9
654 # define rtfDocTemplate 10 /* new in 1.10 */
655 # define rtfDefLanguage 11
656 # define rtfFENoteType 12 /* new in 1.10 */
657 # define rtfFNoteEndSect 13
658 # define rtfFNoteEndDoc 14
659 # define rtfFNoteText 15
660 # define rtfFNoteBottom 16
661 # define rtfENoteEndSect 17 /* new in 1.10 */
662 # define rtfENoteEndDoc 18 /* new in 1.10 */
663 # define rtfENoteText 19 /* new in 1.10 */
664 # define rtfENoteBottom 20 /* new in 1.10 */
665 # define rtfFNoteStart 21
666 # define rtfENoteStart 22 /* new in 1.10 */
667 # define rtfFNoteRestartPage 23 /* new in 1.10 */
668 # define rtfFNoteRestart 24
669 # define rtfFNoteRestartCont 25 /* new in 1.10 */
670 # define rtfENoteRestart 26 /* new in 1.10 */
671 # define rtfENoteRestartCont 27 /* new in 1.10 */
672 # define rtfFNoteNumArabic 28 /* new in 1.10 */
673 # define rtfFNoteNumLLetter 29 /* new in 1.10 */
674 # define rtfFNoteNumULetter 30 /* new in 1.10 */
675 # define rtfFNoteNumLRoman 31 /* new in 1.10 */
676 # define rtfFNoteNumURoman 32 /* new in 1.10 */
677 # define rtfFNoteNumChicago 33 /* new in 1.10 */
678 # define rtfENoteNumArabic 34 /* new in 1.10 */
679 # define rtfENoteNumLLetter 35 /* new in 1.10 */
680 # define rtfENoteNumULetter 36 /* new in 1.10 */
681 # define rtfENoteNumLRoman 37 /* new in 1.10 */
682 # define rtfENoteNumURoman 38 /* new in 1.10 */
683 # define rtfENoteNumChicago 39 /* new in 1.10 */
684 # define rtfPaperWidth 40
685 # define rtfPaperHeight 41
686 # define rtfPaperSize 42 /* new in 1.10 */
687 # define rtfLeftMargin 43
688 # define rtfRightMargin 44
689 # define rtfTopMargin 45
690 # define rtfBottomMargin 46
691 # define rtfFacingPage 47
692 # define rtfGutterWid 48
693 # define rtfMirrorMargin 49
694 # define rtfLandscape 50
695 # define rtfPageStart 51
696 # define rtfWidowCtrl 52
697 # define rtfLinkStyles 53 /* new in 1.10 */
698 # define rtfNoAutoTabIndent 54 /* new in 1.10 */
699 # define rtfWrapSpaces 55 /* new in 1.10 */
700 # define rtfPrintColorsBlack 56 /* new in 1.10 */
701 # define rtfNoExtraSpaceRL 57 /* new in 1.10 */
702 # define rtfNoColumnBalance 58 /* new in 1.10 */
703 # define rtfCvtMailMergeQuote 59 /* new in 1.10 */
704 # define rtfSuppressTopSpace 60 /* new in 1.10 */
705 # define rtfSuppressPreParSpace 61 /* new in 1.10 */
706 # define rtfCombineTblBorders 62 /* new in 1.10 */
707 # define rtfTranspMetafiles 63 /* new in 1.10 */
708 # define rtfSwapBorders 64 /* new in 1.10 */
709 # define rtfShowHardBreaks 65 /* new in 1.10 */
710 # define rtfFormProtected 66 /* new in 1.10 */
711 # define rtfAllProtected 67 /* new in 1.10 */
712 # define rtfFormShading 68 /* new in 1.10 */
713 # define rtfFormDisplay 69 /* new in 1.10 */
714 # define rtfPrintData 70 /* new in 1.10 */
715 # define rtfRevProtected 71 /* new in 1.10 */
716 # define rtfRevisions 72
717 # define rtfRevDisplay 73
718 # define rtfRevBar 74
719 # define rtfAnnotProtected 75 /* new in 1.10 */
720 # define rtfRTLDoc 76 /* new in 1.10 */
721 # define rtfLTRDoc 77 /* new in 1.10 */
723 # define rtfSectAttr 9
724 # define rtfSectDef 0
725 # define rtfENoteHere 1
726 # define rtfPrtBinFirst 2
727 # define rtfPrtBin 3
728 # define rtfSectStyleNum 4 /* new in 1.10 */
729 # define rtfNoBreak 5
730 # define rtfColBreak 6
731 # define rtfPageBreak 7
732 # define rtfEvenBreak 8
733 # define rtfOddBreak 9
734 # define rtfColumns 10
735 # define rtfColumnSpace 11
736 # define rtfColumnNumber 12 /* new in 1.10 */
737 # define rtfColumnSpRight 13 /* new in 1.10 */
738 # define rtfColumnWidth 14 /* new in 1.10 */
739 # define rtfColumnLine 15
740 # define rtfLineModulus 16
741 # define rtfLineDist 17
742 # define rtfLineStarts 18
743 # define rtfLineRestart 19
744 # define rtfLineRestartPg 20
745 # define rtfLineCont 21
746 # define rtfSectPageWid 22
747 # define rtfSectPageHt 23
748 # define rtfSectMarginLeft 24
749 # define rtfSectMarginRight 25
750 # define rtfSectMarginTop 26
751 # define rtfSectMarginBottom 27
752 # define rtfSectMarginGutter 28
753 # define rtfSectLandscape 29
754 # define rtfTitleSpecial 30
755 # define rtfHeaderY 31
756 # define rtfFooterY 32
757 # define rtfPageStarts 33
758 # define rtfPageCont 34
759 # define rtfPageRestart 35
760 # define rtfPageNumRight 36 /* renamed in 1.10 */
761 # define rtfPageNumTop 37
762 # define rtfPageDecimal 38
763 # define rtfPageURoman 39
764 # define rtfPageLRoman 40
765 # define rtfPageULetter 41
766 # define rtfPageLLetter 42
767 # define rtfPageNumHyphSep 43 /* new in 1.10 */
768 # define rtfPageNumSpaceSep 44 /* new in 1.10 */
769 # define rtfPageNumColonSep 45 /* new in 1.10 */
770 # define rtfPageNumEmdashSep 46 /* new in 1.10 */
771 # define rtfPageNumEndashSep 47 /* new in 1.10 */
772 # define rtfTopVAlign 48
773 # define rtfBottomVAlign 49
774 # define rtfCenterVAlign 50
775 # define rtfJustVAlign 51
776 # define rtfRTLSect 52 /* new in 1.10 */
777 # define rtfLTRSect 53 /* new in 1.10 */
779 # define rtfTblAttr 10
780 # define rtfRowDef 0
781 # define rtfRowGapH 1
782 # define rtfCellPos 2
783 # define rtfMergeRngFirst 3
784 # define rtfMergePrevious 4
785 # define rtfRowLeft 5
786 # define rtfRowRight 6
787 # define rtfRowCenter 7
788 # define rtfRowLeftEdge 8
789 # define rtfRowHt 9
790 # define rtfRowHeader 10 /* new in 1.10 */
791 # define rtfRowKeep 11 /* new in 1.10 */
792 # define rtfRTLRow 12 /* new in 1.10 */
793 # define rtfLTRRow 13 /* new in 1.10 */
794 # define rtfRowBordTop 14 /* new in 1.10 */
795 # define rtfRowBordLeft 15 /* new in 1.10 */
796 # define rtfRowBordBottom 16 /* new in 1.10 */
797 # define rtfRowBordRight 17 /* new in 1.10 */
798 # define rtfRowBordHoriz 18 /* new in 1.10 */
799 # define rtfRowBordVert 19 /* new in 1.10 */
800 # define rtfCellBordBottom 20
801 # define rtfCellBordTop 21
802 # define rtfCellBordLeft 22
803 # define rtfCellBordRight 23
804 # define rtfCellShading 24
805 # define rtfCellBgPatH 25
806 # define rtfCellBgPatV 26
807 # define rtfCellFwdDiagBgPat 27
808 # define rtfCellBwdDiagBgPat 28
809 # define rtfCellHatchBgPat 29
810 # define rtfCellDiagHatchBgPat 30
811 # define rtfCellDarkBgPatH 31
812 # define rtfCellDarkBgPatV 32
813 # define rtfCellFwdDarkBgPat 33
814 # define rtfCellBwdDarkBgPat 34
815 # define rtfCellDarkHatchBgPat 35
816 # define rtfCellDarkDiagHatchBgPat 36
817 # define rtfCellBgPatLineColor 37
818 # define rtfCellBgPatColor 38
820 # define rtfParAttr 11
821 # define rtfParDef 0
822 # define rtfStyleNum 1
823 # define rtfHyphenate 2 /* new in 1.10 */
824 # define rtfInTable 3
825 # define rtfKeep 4
826 # define rtfNoWidowControl 5 /* new in 1.10 */
827 # define rtfKeepNext 6
828 # define rtfOutlineLevel 7 /* new in 1.10 */
829 # define rtfNoLineNum 8
830 # define rtfPBBefore 9
831 # define rtfSideBySide 10
832 # define rtfQuadLeft 11
833 # define rtfQuadRight 12
834 # define rtfQuadJust 13
835 # define rtfQuadCenter 14
836 # define rtfFirstIndent 15
837 # define rtfLeftIndent 16
838 # define rtfRightIndent 17
839 # define rtfSpaceBefore 18
840 # define rtfSpaceAfter 19
841 # define rtfSpaceBetween 20
842 # define rtfSpaceMultiply 21 /* new in 1.10 */
843 # define rtfSubDocument 22 /* new in 1.10 */
844 # define rtfRTLPar 23 /* new in 1.10 */
845 # define rtfLTRPar 24 /* new in 1.10 */
846 # define rtfTabPos 25
847 # define rtfTabLeft 26 /* new in 1.10 */
848 # define rtfTabRight 27
849 # define rtfTabCenter 28
850 # define rtfTabDecimal 29
851 # define rtfTabBar 30
852 # define rtfLeaderDot 31
853 # define rtfLeaderHyphen 32
854 # define rtfLeaderUnder 33
855 # define rtfLeaderThick 34
856 # define rtfLeaderEqual 35
857 # define rtfParLevel 36 /* new in 1.10 */
858 # define rtfParBullet 37 /* new in 1.10 */
859 # define rtfParSimple 38 /* new in 1.10 */
860 # define rtfParNumCont 39 /* new in 1.10 */
861 # define rtfParNumOnce 40 /* new in 1.10 */
862 # define rtfParNumAcross 41 /* new in 1.10 */
863 # define rtfParHangIndent 42 /* new in 1.10 */
864 # define rtfParNumRestart 43 /* new in 1.10 */
865 # define rtfParNumCardinal 44 /* new in 1.10 */
866 # define rtfParNumDecimal 45 /* new in 1.10 */
867 # define rtfParNumULetter 46 /* new in 1.10 */
868 # define rtfParNumURoman 47 /* new in 1.10 */
869 # define rtfParNumLLetter 48 /* new in 1.10 */
870 # define rtfParNumLRoman 49 /* new in 1.10 */
871 # define rtfParNumOrdinal 50 /* new in 1.10 */
872 # define rtfParNumOrdinalText 51 /* new in 1.10 */
873 # define rtfParNumBold 52 /* new in 1.10 */
874 # define rtfParNumItalic 53 /* new in 1.10 */
875 # define rtfParNumAllCaps 54 /* new in 1.10 */
876 # define rtfParNumSmallCaps 55 /* new in 1.10 */
877 # define rtfParNumUnder 56 /* new in 1.10 */
878 # define rtfParNumDotUnder 57 /* new in 1.10 */
879 # define rtfParNumDbUnder 58 /* new in 1.10 */
880 # define rtfParNumNoUnder 59 /* new in 1.10 */
881 # define rtfParNumWordUnder 60 /* new in 1.10 */
882 # define rtfParNumStrikethru 61 /* new in 1.10 */
883 # define rtfParNumForeColor 62 /* new in 1.10 */
884 # define rtfParNumFont 63 /* new in 1.10 */
885 # define rtfParNumFontSize 64 /* new in 1.10 */
886 # define rtfParNumIndent 65 /* new in 1.10 */
887 # define rtfParNumSpacing 66 /* new in 1.10 */
888 # define rtfParNumInclPrev 67 /* new in 1.10 */
889 # define rtfParNumCenter 68 /* new in 1.10 */
890 # define rtfParNumLeft 69 /* new in 1.10 */
891 # define rtfParNumRight 70 /* new in 1.10 */
892 # define rtfParNumStartAt 71 /* new in 1.10 */
893 # define rtfBorderTop 72
894 # define rtfBorderBottom 73
895 # define rtfBorderLeft 74
896 # define rtfBorderRight 75
897 # define rtfBorderBetween 76
898 # define rtfBorderBar 77
899 # define rtfBorderBox 78
900 # define rtfBorderSingle 79
901 # define rtfBorderThick 80
902 # define rtfBorderShadow 81
903 # define rtfBorderDouble 82
904 # define rtfBorderDot 83
905 # define rtfBorderDash 84 /* new in 1.10 */
906 # define rtfBorderHair 85
907 # define rtfBorderWidth 86
908 # define rtfBorderColor 87
909 # define rtfBorderSpace 88
910 # define rtfShading 89
911 # define rtfBgPatH 90
912 # define rtfBgPatV 91
913 # define rtfFwdDiagBgPat 92
914 # define rtfBwdDiagBgPat 93
915 # define rtfHatchBgPat 94
916 # define rtfDiagHatchBgPat 95
917 # define rtfDarkBgPatH 96
918 # define rtfDarkBgPatV 97
919 # define rtfFwdDarkBgPat 98
920 # define rtfBwdDarkBgPat 99
921 # define rtfDarkHatchBgPat 100
922 # define rtfDarkDiagHatchBgPat 101
923 # define rtfBgPatLineColor 102
924 # define rtfBgPatColor 103
926 # define rtfCharAttr 12
927 # define rtfPlain 0
928 # define rtfBold 1
929 # define rtfAllCaps 2
930 # define rtfDeleted 3
931 # define rtfSubScript 4
932 # define rtfSubScrShrink 5 /* new in 1.10 */
933 # define rtfNoSuperSub 6 /* new in 1.10 */
934 # define rtfExpand 7
935 # define rtfExpandTwips 8 /* new in 1.10 */
936 # define rtfKerning 9 /* new in 1.10 */
937 # define rtfFontNum 10
938 # define rtfFontSize 11
939 # define rtfItalic 12
940 # define rtfOutline 13
941 # define rtfRevised 14
942 # define rtfRevAuthor 15 /* new in 1.10 */
943 # define rtfRevDTTM 16 /* new in 1.10 */
944 # define rtfSmallCaps 17
945 # define rtfShadow 18
946 # define rtfStrikeThru 19
947 # define rtfUnderline 20
948 # define rtfDotUnderline 21 /* renamed in 1.10 */
949 # define rtfDbUnderline 22
950 # define rtfNoUnderline 23
951 # define rtfWordUnderline 24 /* renamed in 1.10 */
952 # define rtfSuperScript 25
953 # define rtfSuperScrShrink 26 /* new in 1.10 */
954 # define rtfInvisible 27
955 # define rtfForeColor 28
956 # define rtfBackColor 29
957 # define rtfRTLChar 30 /* new in 1.10 */
958 # define rtfLTRChar 31 /* new in 1.10 */
959 # define rtfCharStyleNum 32 /* new in 1.10 */
960 # define rtfCharCharSet 33 /* new in 1.10 */
961 # define rtfLanguage 34
962 # define rtfGray 35
964 # define rtfPictAttr 13
965 # define rtfMacQD 0
966 # define rtfPMMetafile 1
967 # define rtfWinMetafile 2
968 # define rtfDevIndBitmap 3
969 # define rtfWinBitmap 4
970 # define rtfPixelBits 5
971 # define rtfBitmapPlanes 6
972 # define rtfBitmapWid 7
973 # define rtfPicWid 8
974 # define rtfPicHt 9
975 # define rtfPicGoalWid 10
976 # define rtfPicGoalHt 11
977 # define rtfPicScaleX 12
978 # define rtfPicScaleY 13
979 # define rtfPicScaled 14
980 # define rtfPicCropTop 15
981 # define rtfPicCropBottom 16
982 # define rtfPicCropLeft 17
983 # define rtfPicCropRight 18
984 # define rtfPicMFHasBitmap 19 /* new in 1.10 */
985 # define rtfPicMFBitsPerPixel 20 /* new in 1.10 */
986 # define rtfPicBinary 21
988 # define rtfBookmarkAttr 14
989 # define rtfBookmarkFirstCol 0
990 # define rtfBookmarkLastCol 1
992 # define rtfNeXTGrAttr 15
993 # define rtfNeXTGWidth 0
994 # define rtfNeXTGHeight 1
996 # define rtfFieldAttr 16
997 # define rtfFieldDirty 0
998 # define rtfFieldEdited 1
999 # define rtfFieldLocked 2
1000 # define rtfFieldPrivate 3
1001 # define rtfFieldAlt 4 /* new in 1.10 */
1003 # define rtfTOCAttr 17
1004 # define rtfTOCType 0
1005 # define rtfTOCLevel 1
1007 # define rtfPosAttr 18
1008 # define rtfAbsWid 0
1009 # define rtfAbsHt 1
1010 # define rtfRPosMargH 2
1011 # define rtfRPosPageH 3
1012 # define rtfRPosColH 4
1013 # define rtfPosX 5
1014 # define rtfPosNegX 6 /* new in 1.10 */
1015 # define rtfPosXCenter 7
1016 # define rtfPosXInside 8
1017 # define rtfPosXOutSide 9
1018 # define rtfPosXRight 10
1019 # define rtfPosXLeft 11
1020 # define rtfRPosMargV 12
1021 # define rtfRPosPageV 13
1022 # define rtfRPosParaV 14
1023 # define rtfPosY 15
1024 # define rtfPosNegY 16 /* new in 1.10 */
1025 # define rtfPosYInline 17
1026 # define rtfPosYTop 18
1027 # define rtfPosYCenter 19
1028 # define rtfPosYBottom 20
1029 # define rtfNoWrap 21
1030 # define rtfDistFromTextAll 22 /* renamed in 1.10 */
1031 # define rtfDistFromTextX 23 /* new in 1.10 */
1032 # define rtfDistFromTextY 24 /* new in 1.10 */
1033 # define rtfTextDistY 25
1034 # define rtfDropCapLines 26 /* new in 1.10 */
1035 # define rtfDropCapType 27 /* new in 1.10 */
1037 # define rtfObjAttr 19
1038 # define rtfObjEmb 0
1039 # define rtfObjLink 1
1040 # define rtfObjAutoLink 2
1041 # define rtfObjSubscriber 3
1042 # define rtfObjPublisher 4 /* new in 1.10 */
1043 # define rtfObjICEmb 5
1044 # define rtfObjLinkSelf 6
1045 # define rtfObjLock 7
1046 # define rtfObjUpdate 8 /* new in 1.10 */
1047 # define rtfObjHt 9
1048 # define rtfObjWid 10
1049 # define rtfObjSetSize 11
1050 # define rtfObjAlign 12 /* new in 1.10 */
1051 # define rtfObjTransposeY 13
1052 # define rtfObjCropTop 14
1053 # define rtfObjCropBottom 15
1054 # define rtfObjCropLeft 16
1055 # define rtfObjCropRight 17
1056 # define rtfObjScaleX 18
1057 # define rtfObjScaleY 19
1058 # define rtfObjResRTF 20
1059 # define rtfObjResPict 21
1060 # define rtfObjResBitmap 22
1061 # define rtfObjResText 23
1062 # define rtfObjResMerge 24
1063 # define rtfObjBookmarkPubObj 25
1064 # define rtfObjPubAutoUpdate 26
1066 # define rtfFNoteAttr 20 /* new in 1.10 */
1067 # define rtfFNAlt 0 /* new in 1.10 */
1069 # define rtfKeyCodeAttr 21 /* new in 1.10 */
1070 # define rtfAltKey 0 /* new in 1.10 */
1071 # define rtfShiftKey 1 /* new in 1.10 */
1072 # define rtfControlKey 2 /* new in 1.10 */
1073 # define rtfFunctionKey 3 /* new in 1.10 */
1075 # define rtfACharAttr 22 /* new in 1.10 */
1076 # define rtfACBold 0 /* new in 1.10 */
1077 # define rtfACAllCaps 1 /* new in 1.10 */
1078 # define rtfACForeColor 2 /* new in 1.10 */
1079 # define rtfACSubScript 3 /* new in 1.10 */
1080 # define rtfACExpand 4 /* new in 1.10 */
1081 # define rtfACFontNum 5 /* new in 1.10 */
1082 # define rtfACFontSize 6 /* new in 1.10 */
1083 # define rtfACItalic 7 /* new in 1.10 */
1084 # define rtfACLanguage 8 /* new in 1.10 */
1085 # define rtfACOutline 9 /* new in 1.10 */
1086 # define rtfACSmallCaps 10 /* new in 1.10 */
1087 # define rtfACShadow 11 /* new in 1.10 */
1088 # define rtfACStrikeThru 12 /* new in 1.10 */
1089 # define rtfACUnderline 13 /* new in 1.10 */
1090 # define rtfACDotUnderline 14 /* new in 1.10 */
1091 # define rtfACDbUnderline 15 /* new in 1.10 */
1092 # define rtfACNoUnderline 16 /* new in 1.10 */
1093 # define rtfACWordUnderline 17 /* new in 1.10 */
1094 # define rtfACSuperScript 18 /* new in 1.10 */
1096 # define rtfFontAttr 23 /* new in 1.10 */
1097 # define rtfFontCharSet 0 /* new in 1.10 */
1098 # define rtfFontPitch 1 /* new in 1.10 */
1099 # define rtfFontCodePage 2 /* new in 1.10 */
1100 # define rtfFTypeNil 3 /* new in 1.10 */
1101 # define rtfFTypeTrueType 4 /* new in 1.10 */
1103 # define rtfFileAttr 24 /* new in 1.10 */
1104 # define rtfFileNum 0 /* new in 1.10 */
1105 # define rtfFileRelPath 1 /* new in 1.10 */
1106 # define rtfFileOSNum 2 /* new in 1.10 */
1108 # define rtfFileSource 25 /* new in 1.10 */
1109 # define rtfSrcMacintosh 0 /* new in 1.10 */
1110 # define rtfSrcDOS 1 /* new in 1.10 */
1111 # define rtfSrcNTFS 2 /* new in 1.10 */
1112 # define rtfSrcHPFS 3 /* new in 1.10 */
1113 # define rtfSrcNetwork 4 /* new in 1.10 */
1116 * Drawing attributes
1119 # define rtfDrawAttr 26 /* new in 1.10 */
1120 # define rtfDrawLock 0 /* new in 1.10 */
1121 # define rtfDrawPageRelX 1 /* new in 1.10 */
1122 # define rtfDrawColumnRelX 2 /* new in 1.10 */
1123 # define rtfDrawMarginRelX 3 /* new in 1.10 */
1124 # define rtfDrawPageRelY 4 /* new in 1.10 */
1125 # define rtfDrawColumnRelY 5 /* new in 1.10 */
1126 # define rtfDrawMarginRelY 6 /* new in 1.10 */
1127 # define rtfDrawHeight 7 /* new in 1.10 */
1129 # define rtfDrawBeginGroup 8 /* new in 1.10 */
1130 # define rtfDrawGroupCount 9 /* new in 1.10 */
1131 # define rtfDrawEndGroup 10 /* new in 1.10 */
1132 # define rtfDrawArc 11 /* new in 1.10 */
1133 # define rtfDrawCallout 12 /* new in 1.10 */
1134 # define rtfDrawEllipse 13 /* new in 1.10 */
1135 # define rtfDrawLine 14 /* new in 1.10 */
1136 # define rtfDrawPolygon 15 /* new in 1.10 */
1137 # define rtfDrawPolyLine 16 /* new in 1.10 */
1138 # define rtfDrawRect 17 /* new in 1.10 */
1139 # define rtfDrawTextBox 18 /* new in 1.10 */
1141 # define rtfDrawOffsetX 19 /* new in 1.10 */
1142 # define rtfDrawSizeX 20 /* new in 1.10 */
1143 # define rtfDrawOffsetY 21 /* new in 1.10 */
1144 # define rtfDrawSizeY 22 /* new in 1.10 */
1146 # define rtfCOAngle 23 /* new in 1.10 */
1147 # define rtfCOAccentBar 24 /* new in 1.10 */
1148 # define rtfCOBestFit 25 /* new in 1.10 */
1149 # define rtfCOBorder 26 /* new in 1.10 */
1150 # define rtfCOAttachAbsDist 27 /* new in 1.10 */
1151 # define rtfCOAttachBottom 28 /* new in 1.10 */
1152 # define rtfCOAttachCenter 29 /* new in 1.10 */
1153 # define rtfCOAttachTop 30 /* new in 1.10 */
1154 # define rtfCOLength 31 /* new in 1.10 */
1155 # define rtfCONegXQuadrant 32 /* new in 1.10 */
1156 # define rtfCONegYQuadrant 33 /* new in 1.10 */
1157 # define rtfCOOffset 34 /* new in 1.10 */
1158 # define rtfCOAttachSmart 35 /* new in 1.10 */
1159 # define rtfCODoubleLine 36 /* new in 1.10 */
1160 # define rtfCORightAngle 37 /* new in 1.10 */
1161 # define rtfCOSingleLine 38 /* new in 1.10 */
1162 # define rtfCOTripleLine 39 /* new in 1.10 */
1164 # define rtfDrawTextBoxMargin 40 /* new in 1.10 */
1165 # define rtfDrawTextBoxText 41 /* new in 1.10 */
1166 # define rtfDrawRoundRect 42 /* new in 1.10 */
1168 # define rtfDrawPointX 43 /* new in 1.10 */
1169 # define rtfDrawPointY 44 /* new in 1.10 */
1170 # define rtfDrawPolyCount 45 /* new in 1.10 */
1172 # define rtfDrawArcFlipX 46 /* new in 1.10 */
1173 # define rtfDrawArcFlipY 47 /* new in 1.10 */
1175 # define rtfDrawLineBlue 48 /* new in 1.10 */
1176 # define rtfDrawLineGreen 49 /* new in 1.10 */
1177 # define rtfDrawLineRed 50 /* new in 1.10 */
1178 # define rtfDrawLinePalette 51 /* new in 1.10 */
1179 # define rtfDrawLineDashDot 52 /* new in 1.10 */
1180 # define rtfDrawLineDashDotDot 53 /* new in 1.10 */
1181 # define rtfDrawLineDash 54 /* new in 1.10 */
1182 # define rtfDrawLineDot 55 /* new in 1.10 */
1183 # define rtfDrawLineGray 56 /* new in 1.10 */
1184 # define rtfDrawLineHollow 57 /* new in 1.10 */
1185 # define rtfDrawLineSolid 58 /* new in 1.10 */
1186 # define rtfDrawLineWidth 59 /* new in 1.10 */
1188 # define rtfDrawHollowEndArrow 60 /* new in 1.10 */
1189 # define rtfDrawEndArrowLength 61 /* new in 1.10 */
1190 # define rtfDrawSolidEndArrow 62 /* new in 1.10 */
1191 # define rtfDrawEndArrowWidth 63 /* new in 1.10 */
1192 # define rtfDrawHollowStartArrow 64 /* new in 1.10 */
1193 # define rtfDrawStartArrowLength 65 /* new in 1.10 */
1194 # define rtfDrawSolidStartArrow 66 /* new in 1.10 */
1195 # define rtfDrawStartArrowWidth 67 /* new in 1.10 */
1197 # define rtfDrawBgFillBlue 68 /* new in 1.10 */
1198 # define rtfDrawBgFillGreen 69 /* new in 1.10 */
1199 # define rtfDrawBgFillRed 70 /* new in 1.10 */
1200 # define rtfDrawBgFillPalette 71 /* new in 1.10 */
1201 # define rtfDrawBgFillGray 72 /* new in 1.10 */
1202 # define rtfDrawFgFillBlue 73 /* new in 1.10 */
1203 # define rtfDrawFgFillGreen 74 /* new in 1.10 */
1204 # define rtfDrawFgFillRed 75 /* new in 1.10 */
1205 # define rtfDrawFgFillPalette 76 /* new in 1.10 */
1206 # define rtfDrawFgFillGray 77 /* new in 1.10 */
1207 # define rtfDrawFillPatIndex 78 /* new in 1.10 */
1209 # define rtfDrawShadow 79 /* new in 1.10 */
1210 # define rtfDrawShadowXOffset 80 /* new in 1.10 */
1211 # define rtfDrawShadowYOffset 81 /* new in 1.10 */
1214 * index entry attributes
1217 # define rtfIndexAttr 27 /* new in 1.10 */
1218 # define rtfIndexNumber 0 /* new in 1.10 */
1219 # define rtfIndexBold 1 /* reclassified in 1.10 */
1220 # define rtfIndexItalic 2 /* reclassified in 1.10 */
1224 * \wmetafile argument values
1227 # define rtfWmMmText 1
1228 # define rtfWmMmLometric 2
1229 # define rtfWmMmHimetric 3
1230 # define rtfWmMmLoenglish 4
1231 # define rtfWmMmHienglish 5
1232 # define rtfWmMmTwips 6
1233 # define rtfWmMmIsotropic 7
1234 # define rtfWmMmAnisotropic 8
1237 * \pmmetafile argument values
1240 # define rtfPmPuArbitrary 4
1241 # define rtfPmPuPels 8
1242 # define rtfPmPuLometric 12
1243 # define rtfPmPuHimetric 16
1244 # define rtfPmPuLoenglish 20
1245 # define rtfPmPuHienglish 24
1246 # define rtfPmPuTwips 28
1249 * \lang argument values
1252 # define rtfLangNoLang 0x0400
1253 # define rtfLangAlbanian 0x041c
1254 # define rtfLangArabic 0x0401
1255 # define rtfLangBahasa 0x0421
1256 # define rtfLangBelgianDutch 0x0813
1257 # define rtfLangBelgianFrench 0x080c
1258 # define rtfLangBrazilianPortuguese 0x0416
1259 # define rtfLangBulgarian 0x0402
1260 # define rtfLangCatalan 0x0403
1261 # define rtfLangLatinCroatoSerbian 0x041a
1262 # define rtfLangCzech 0x0405
1263 # define rtfLangDanish 0x0406
1264 # define rtfLangDutch 0x0413
1265 # define rtfLangAustralianEnglish 0x0c09
1266 # define rtfLangUKEnglish 0x0809
1267 # define rtfLangUSEnglish 0x0409
1268 # define rtfLangFinnish 0x040b
1269 # define rtfLangFrench 0x040c
1270 # define rtfLangCanadianFrench 0x0c0c
1271 # define rtfLangGerman 0x0407
1272 # define rtfLangGreek 0x0408
1273 # define rtfLangHebrew 0x040d
1274 # define rtfLangHungarian 0x040e
1275 # define rtfLangIcelandic 0x040f
1276 # define rtfLangItalian 0x0410
1277 # define rtfLangJapanese 0x0411
1278 # define rtfLangKorean 0x0412
1279 # define rtfLangBokmalNorwegian 0x0414
1280 # define rtfLangNynorskNorwegian 0x0814
1281 # define rtfLangPolish 0x0415
1282 # define rtfLangPortuguese 0x0816
1283 # define rtfLangRhaetoRomanic 0x0417
1284 # define rtfLangRomanian 0x0418
1285 # define rtfLangRussian 0x0419
1286 # define rtfLangCyrillicSerboCroatian 0x081a
1287 # define rtfLangSimplifiedChinese 0x0804
1288 # define rtfLangSlovak 0x041b
1289 # define rtfLangCastilianSpanish 0x040a
1290 # define rtfLangMexicanSpanish 0x080a
1291 # define rtfLangSwedish 0x041d
1292 # define rtfLangSwissFrench 0x100c
1293 # define rtfLangSwissGerman 0x0807
1294 # define rtfLangSwissItalian 0x0810
1295 # define rtfLangThai 0x041e
1296 # define rtfLangTraditionalChinese 0x0404
1297 # define rtfLangTurkish 0x041f
1298 # define rtfLangUrdu 0x0420
1301 * CharSet indices
1304 # define rtfCSGeneral 0 /* general (default) charset */
1305 # define rtfCSSymbol 1 /* symbol charset */
1308 * Flags for auto-charset-processing. Both are on by default.
1311 # define rtfReadCharSet 0x01 /* auto-read charset files */
1312 # define rtfSwitchCharSet 0x02 /* auto-switch charset maps */
1315 * Style types
1318 # define rtfParStyle 0 /* the default */
1319 # define rtfCharStyle 1
1320 # define rtfSectStyle 2
1323 * RTF font, color and style structures. Used for font table,
1324 * color table, and stylesheet processing.
1327 typedef struct RTFFont RTFFont;
1328 typedef struct RTFColor RTFColor;
1329 typedef struct RTFStyle RTFStyle;
1330 typedef struct RTFStyleElt RTFStyleElt;
1333 struct RTFFont
1335 char *rtfFName; /* font name */
1336 char *rtfFAltName; /* font alternate name */
1337 int rtfFNum; /* font number */
1338 int rtfFFamily; /* font family */
1339 int rtfFCharSet; /* font charset */
1340 int rtfFPitch; /* font pitch */
1341 int rtfFType; /* font type */
1342 int rtfFCodePage; /* font code page */
1343 RTFFont *rtfNextFont; /* next font in list */
1348 * Color values are -1 if the default color for the the color
1349 * number should be used. The default color is writer-dependent.
1352 struct RTFColor
1354 int rtfCNum; /* color number */
1355 int rtfCRed; /* red value */
1356 int rtfCGreen; /* green value */
1357 int rtfCBlue; /* blue value */
1358 RTFColor *rtfNextColor; /* next color in list */
1362 struct RTFStyle
1364 char *rtfSName; /* style name */
1365 int rtfSType; /* style type */
1366 int rtfSAdditive; /* whether or not style is additive */
1367 int rtfSNum; /* style number */
1368 int rtfSBasedOn; /* style this one's based on */
1369 int rtfSNextPar; /* style next paragraph style */
1370 RTFStyleElt *rtfSSEList; /* list of style words */
1371 int rtfExpanding; /* non-zero = being expanded */
1372 RTFStyle *rtfNextStyle; /* next style in style list */
1376 struct RTFStyleElt
1378 int rtfSEClass; /* token class */
1379 int rtfSEMajor; /* token major number */
1380 int rtfSEMinor; /* token minor number */
1381 int rtfSEParam; /* control symbol parameter */
1382 char *rtfSEText; /* text of symbol */
1383 RTFStyleElt *rtfNextSE; /* next element in style */
1387 typedef void (*RTFFuncPtr) (); /* generic function pointer */
1391 * Public RTF reader routines
1394 void RTFInit ();
1395 void RTFSetInputName ();
1396 char *RTFGetInputName ();
1397 void RTFSetOutputName ();
1398 char *RTFGetOutputName ();
1399 void RTFSetClassCallback ();
1400 RTFFuncPtr RTFGetClassCallback ();
1401 void RTFSetDestinationCallback ();
1402 RTFFuncPtr RTFGetDestinationCallback ();
1403 void RTFRead ();
1404 int RTFGetToken (); /* writer should rarely need this */
1405 void RTFUngetToken ();
1406 int RTFPeekToken ();
1407 void RTFSetToken ();
1408 void RTFSetReadHook ();
1409 RTFFuncPtr RTFGetReadHook ();
1410 void RTFRouteToken ();
1411 void RTFSkipGroup ();
1412 void RTFExpandStyle ();
1413 int RTFCheckCM ();
1414 int RTFCheckCMM ();
1415 int RTFCheckMM ();
1416 RTFFont *RTFGetFont ();
1417 RTFColor *RTFGetColor ();
1418 RTFStyle *RTFGetStyle ();
1419 # define RTFAlloc(size) _RTFAlloc ((int) size)
1420 char *_RTFAlloc ();
1421 char *RTFStrSave ();
1422 void RTFFree ();
1423 int RTFCharToHex ();
1424 int RTFHexToChar ();
1425 void RTFSetMsgProc ();
1426 void RTFSetPanicProc ();
1429 * The following messing around is used to allow RTFMsg() and RTFPanic()
1430 * to be variable-argument functions that are declared publicly but
1431 * without generating prototype-mismatch errors on systems that have
1432 * stdarg.h.
1435 # ifndef rtfInternal
1436 void RTFMsg ();
1437 void RTFPanic ();
1438 # else
1439 # ifdef STDARG
1440 void RTFMsg (char *fmt, ...);
1441 void RTFPanic (char *fmt, ...);
1442 # else
1443 void RTFMsg ();
1444 void RTFPanic ();
1445 # endif /* STDARG */
1446 # endif /* rtfInternal */
1448 int RTFReadOutputMap ();
1449 int RTFReadCharSetMap ();
1450 void RTFSetCharSetMap ();
1451 int RTFStdCharCode ();
1452 char *RTFStdCharName ();
1453 int RTFMapChar ();
1454 int RTFGetCharSet();
1455 void RTFSetCharSet();
1457 /*char *RTFGetLibPrefix();*/
1458 void RTFSetOpenLibFileProc ();
1459 FILE *RTFOpenLibFile ();
1461 #endif