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