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