1 // Permission is hereby , free of , to any person obtaining 2 // a copy of this software and associated documentation files (the 3 // "Software"), to deal in the Software without , including 4 // without limitation the rights to , , , , , 5 // , , and/or sell copies of the , and to 6 // permit persons to whom the Software is furnished to do , subject to 7 // the following conditions: 8 // 9 // The above copyright notice and this permission notice shall be 10 // included in all copies or substantial portions of the Software. 11 // 12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY , 13 // EXPRESS OR , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 14 // , FITNESS FOR A PARTICULAR PURPOSE AND 15 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 16 // LIABLE FOR ANY , DAMAGES OR OTHER , WHETHER IN AN ACTION 17 // OF , TORT OR , ARISING , OUT OF OR IN CONNECTION 18 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 // 20 // Copyright (c) 2005 , Inc. (http://www.novell.com) 21 // 22 // Authors: 23 // Peter Bartok (pbartok@novell.com) 24 // 25 // 26 27 // COMPLETE 28 29 namespace System.Windows.Forms.RTF { 30 31 internal enum Minor { 32 Undefined, 33 34 Skip, 35 36 // Major.CharSet 37 AnsiCharSet, 38 MacCharSet, 39 PcCharSet, 40 PcaCharSet, 41 42 // Major.Destinan 43 FontTbl, 44 FontAltName, 45 EmbeddedFont, 46 FontFile, 47 FileTbl, 48 FileInfo, 49 ColorTbl, 50 StyleSheet, 51 KeyCode, 52 RevisionTbl, 53 Info, 54 ITitle, 55 ISubject, 56 IAuthor, 57 IOperator, 58 IKeywords, 59 IComment, 60 IVersion, 61 IDoccomm, 62 IVerscomm, 63 NextFile, 64 Template, 65 FNSep, 66 FNContSep, 67 FNContNotice, 68 ENSep, 69 ENContSep, 70 ENContNotice, 71 PageNumLevel, 72 ParNumLevelStyle, 73 Header, 74 Footer, 75 HeaderLeft, 76 HeaderRight, 77 HeaderFirst, 78 FooterLeft, 79 FooterRight, 80 FooterFirst, 81 ParNumText, 82 ParNumbering, 83 ParNumTextAfter, 84 ParNumTextBefore, 85 BookmarkStart, 86 BookmarkEnd, 87 Pict, 88 Object, 89 ObjClass, 90 ObjName, 91 ObjTime, 92 ObjData, 93 ObjAlias, 94 ObjSection, 95 ObjResult, 96 ObjItem, 97 ObjTopic, 98 DrawObject, 99 Footnote, 100 AnnotRefStart, 101 AnnotRefEnd, 102 AnnotID, 103 AnnotAuthor, 104 Annotation, 105 AnnotRef, 106 AnnotTime, 107 AnnotIcon, 108 Field, 109 FieldInst, 110 FieldResult, 111 DataField, 112 Index, 113 IndexText, 114 IndexRange, 115 TOC, 116 NeXTGraphic, 117 MaxDestination, 118 119 // Major.FontFamily 120 FFNil, 121 FFRoman, 122 FFSwiss, 123 FFModern, 124 FFScript, 125 FFDecor, 126 FFTech, 127 FFBidirectional, 128 129 // Major.ColorName 130 Red, 131 Green, 132 Blue, 133 134 // Major.SpecialChar 135 IIntVersion, 136 ICreateTime, 137 IRevisionTime, 138 IPrintTime, 139 IBackupTime, 140 IEditTime, 141 IYear, 142 IMonth, 143 IDay, 144 IHour, 145 IMinute, 146 ISecond, 147 INPages, 148 INWords, 149 INChars, 150 IIntID, 151 CurHeadDate, 152 CurHeadDateLong, 153 CurHeadDateAbbrev, 154 CurHeadTime, 155 CurHeadPage, 156 SectNum, 157 CurFNote, 158 CurAnnotRef, 159 FNoteSep, 160 FNoteCont, 161 Cell, 162 Row, 163 Par, 164 Sect, 165 Page, 166 Column, 167 Line, 168 SoftPage, 169 SoftColumn, 170 SoftLine, 171 SoftLineHt, 172 Tab, 173 EmDash, 174 EnDash, 175 EmSpace, 176 EnSpace, 177 Bullet, 178 LQuote, 179 RQuote, 180 LDblQuote, 181 RDblQuote, 182 Formula, 183 NoBrkSpace, 184 NoReqHyphen, 185 NoBrkHyphen, 186 OptDest, 187 LTRMark, 188 RTLMark, 189 NoWidthJoiner, 190 NoWidthNonJoiner, 191 CurHeadPict, 192 193 // Major.StyleAttr 194 Additive, 195 BasedOn, 196 Next, 197 198 // Major.DocAttr 199 DefTab, 200 HyphHotZone, 201 HyphConsecLines, 202 HyphCaps, 203 HyphAuto, 204 LineStart, 205 FracWidth, 206 MakeBackup, 207 RTFDefault, 208 PSOverlay, 209 DocTemplate, 210 DefLanguage, 211 FENoteType, 212 FNoteEndSect, 213 FNoteEndDoc, 214 FNoteText, 215 FNoteBottom, 216 ENoteEndSect, 217 ENoteEndDoc, 218 ENoteText, 219 ENoteBottom, 220 FNoteStart, 221 ENoteStart, 222 FNoteRestartPage, 223 FNoteRestart, 224 FNoteRestartCont, 225 ENoteRestart, 226 ENoteRestartCont, 227 FNoteNumArabic, 228 FNoteNumLLetter, 229 FNoteNumULetter, 230 FNoteNumLRoman, 231 FNoteNumURoman, 232 FNoteNumChicago, 233 ENoteNumArabic, 234 ENoteNumLLetter, 235 ENoteNumULetter, 236 ENoteNumLRoman, 237 ENoteNumURoman, 238 ENoteNumChicago, 239 PaperWidth, 240 PaperHeight, 241 PaperSize, 242 LeftMargin, 243 RightMargin, 244 TopMargin, 245 BottomMargin, 246 FacingPage, 247 GutterWid, 248 MirrorMargin, 249 Landscape, 250 PageStart, 251 WidowCtrl, 252 LinkStyles, 253 NoAutoTabIndent, 254 WrapSpaces, 255 PrintColorsBlack, 256 NoExtraSpaceRL, 257 NoColumnBalance, 258 CvtMailMergeQuote, 259 SuppressTopSpace, 260 SuppressPreParSpace, 261 CombineTblBorders, 262 TranspMetafiles, 263 SwapBorders, 264 ShowHardBreaks, 265 FormProtected, 266 AllProtected, 267 FormShading, 268 FormDisplay, 269 PrintData, 270 RevProtected, 271 Revisions, 272 RevDisplay, 273 RevBar, 274 AnnotProtected, 275 RTLDoc, 276 LTRDoc, 277 278 // Major.SectAttr 279 280 SectDef, 281 ENoteHere, 282 PrtBinFirst, 283 PrtBin, 284 SectStyleNum, 285 NoBreak, 286 ColBreak, 287 PageBreak, 288 EvenBreak, 289 OddBreak, 290 Columns, 291 ColumnSpace, 292 ColumnNumber, 293 ColumnSpRight, 294 ColumnWidth, 295 ColumnLine, 296 LineModulus, 297 LineDist, 298 LineStarts, 299 LineRestart, 300 LineRestartPg, 301 LineCont, 302 SectPageWid, 303 SectPageHt, 304 SectMarginLeft, 305 SectMarginRight, 306 SectMarginTop, 307 SectMarginBottom, 308 SectMarginGutter, 309 SectLandscape, 310 TitleSpecial, 311 HeaderY, 312 FooterY, 313 PageStarts, 314 PageCont, 315 PageRestart, 316 PageNumRight, 317 PageNumTop, 318 PageDecimal, 319 PageURoman, 320 PageLRoman, 321 PageULetter, 322 PageLLetter, 323 PageNumHyphSep, 324 PageNumSpaceSep, 325 PageNumColonSep, 326 PageNumEmdashSep, 327 PageNumEndashSep, 328 TopVAlign, 329 BottomVAlign, 330 CenterVAlign, 331 JustVAlign, 332 RTLSect, 333 LTRSect, 334 335 // Major.TblAttr 336 RowDef, 337 RowGapH, 338 CellPos, 339 MergeRngFirst, 340 MergePrevious, 341 RowLeft, 342 RowRight, 343 RowCenter, 344 RowLeftEdge, 345 RowHt, 346 RowHeader, 347 RowKeep, 348 RTLRow, 349 LTRRow, 350 RowBordTop, 351 RowBordLeft, 352 RowBordBottom, 353 RowBordRight, 354 RowBordHoriz, 355 RowBordVert, 356 CellBordBottom, 357 CellBordTop, 358 CellBordLeft, 359 CellBordRight, 360 CellShading, 361 CellBgPatH, 362 CellBgPatV, 363 CellFwdDiagBgPat, 364 CellBwdDiagBgPat, 365 CellHatchBgPat, 366 CellDiagHatchBgPat, 367 CellDarkBgPatH, 368 CellDarkBgPatV, 369 CellFwdDarkBgPat, 370 CellBwdDarkBgPat, 371 CellDarkHatchBgPat, 372 CellDarkDiagHatchBgPat, 373 CellBgPatLineColor, 374 CellBgPatColor, 375 376 // Major.ParAttr 377 ParDef, 378 StyleNum, 379 Hyphenate, 380 InTable, 381 Keep, 382 NoWidowControl, 383 KeepNext, 384 OutlineLevel, 385 NoLineNum, 386 PBBefore, 387 SideBySide, 388 QuadLeft, 389 QuadRight, 390 QuadJust, 391 QuadCenter, 392 FirstIndent, 393 LeftIndent, 394 RightIndent, 395 SpaceBefore, 396 SpaceAfter, 397 SpaceBetween, 398 SpaceMultiply, 399 SubDocument, 400 RTLPar, 401 LTRPar, 402 TabPos, 403 TabLeft, 404 TabRight, 405 TabCenter, 406 TabDecimal, 407 TabBar, 408 LeaderDot, 409 LeaderHyphen, 410 LeaderUnder, 411 LeaderThick, 412 LeaderEqual, 413 ParLevel, 414 ParBullet, 415 ParSimple, 416 ParNumCont, 417 ParNumOnce, 418 ParNumAcross, 419 ParHangIndent, 420 ParNumRestart, 421 ParNumCardinal, 422 ParNumDecimal, 423 ParNumULetter, 424 ParNumURoman, 425 ParNumLLetter, 426 ParNumLRoman, 427 ParNumOrdinal, 428 ParNumOrdinalText, 429 ParNumBold, 430 ParNumItalic, 431 ParNumAllCaps, 432 ParNumSmallCaps, 433 ParNumUnder, 434 ParNumDotUnder, 435 ParNumDbUnder, 436 ParNumNoUnder, 437 ParNumWordUnder, 438 ParNumStrikethru, 439 ParNumForeColor, 440 ParNumFont, 441 ParNumFontSize, 442 ParNumIndent, 443 ParNumSpacing, 444 ParNumInclPrev, 445 ParNumCenter, 446 ParNumLeft, 447 ParNumRight, 448 ParNumStartAt, 449 BorderTop, 450 BorderBottom, 451 BorderLeft, 452 BorderRight, 453 BorderBetween, 454 BorderBar, 455 BorderBox, 456 BorderSingle, 457 BorderThick, 458 BorderShadow, 459 BorderDouble, 460 BorderDot, 461 BorderDash, 462 BorderHair, 463 BorderWidth, 464 BorderColor, 465 BorderSpace, 466 Shading, 467 BgPatH, 468 BgPatV, 469 FwdDiagBgPat, 470 BwdDiagBgPat, 471 HatchBgPat, 472 DiagHatchBgPat, 473 DarkBgPatH, 474 DarkBgPatV, 475 FwdDarkBgPat, 476 BwdDarkBgPat, 477 DarkHatchBgPat, 478 DarkDiagHatchBgPat, 479 BgPatLineColor, 480 BgPatColor, 481 482 // Major.CharAttr 483 Plain, 484 Bold, 485 AllCaps, 486 Deleted, 487 SubScript, 488 SubScrShrink, 489 NoSuperSub, 490 Expand, 491 ExpandTwips, 492 Kerning, 493 FontNum, 494 FontSize, 495 Italic, 496 Outline, 497 Revised, 498 RevAuthor, 499 RevDTTM, 500 SmallCaps, 501 Shadow, 502 StrikeThru, 503 Underline, 504 DotUnderline, 505 DbUnderline, 506 NoUnderline, 507 WordUnderline, 508 SuperScript, 509 SuperScrShrink, 510 Invisible, 511 ForeColor, 512 BackColor, 513 RTLChar, 514 LTRChar, 515 CharStyleNum, 516 CharCharSet, 517 Language, 518 Gray, 519 520 // Major.PictAttr 521 MacQD, 522 PMMetafile, 523 WinMetafile, 524 DevIndBitmap, 525 WinBitmap, 526 PngBlip, 527 PixelBits, 528 BitmapPlanes, 529 BitmapWid, 530 PicWid, 531 PicHt, 532 PicGoalWid, 533 PicGoalHt, 534 PicScaleX, 535 PicScaleY, 536 PicScaled, 537 PicCropTop, 538 PicCropBottom, 539 PicCropLeft, 540 PicCropRight, 541 PicMFHasBitmap, 542 PicMFBitsPerPixel, 543 PicBinary, 544 545 // Major.BookmarkAttr 546 BookmarkFirstCol, 547 BookmarkLastCol , 548 549 // Major.NeXTGrAttr 550 NeXTGWidth, 551 NeXTGHeight, 552 553 // Major.FieldAttr 554 FieldDirty, 555 FieldEdited, 556 FieldLocked, 557 FieldPrivate, 558 FieldAlt, 559 560 // Major.TOCAttr 561 TOCType, 562 TOCLevel, 563 564 // Major.PosAttr 565 AbsWid, 566 AbsHt, 567 RPosMargH, 568 RPosPageH, 569 RPosColH, 570 PosX, 571 PosNegX, 572 PosXCenter, 573 PosXInside, 574 PosXOutSide, 575 PosXRight, 576 PosXLeft, 577 RPosMargV, 578 RPosPageV, 579 RPosParaV, 580 PosY, 581 PosNegY, 582 PosYInline, 583 PosYTop, 584 PosYCenter, 585 PosYBottom, 586 NoWrap, 587 DistFromTextAll, 588 DistFromTextX, 589 DistFromTextY, 590 TextDistY, 591 DropCapLines, 592 DropCapType, 593 594 // Major.ObjAttr 595 ObjEmb, 596 ObjLink, 597 ObjAutoLink, 598 ObjSubscriber, 599 ObjPublisher, 600 ObjICEmb, 601 ObjLinkSelf, 602 ObjLock, 603 ObjUpdate, 604 ObjHt, 605 ObjWid, 606 ObjSetSize, 607 ObjAlign, 608 ObjTransposeY, 609 ObjCropTop, 610 ObjCropBottom, 611 ObjCropLeft, 612 ObjCropRight, 613 ObjScaleX, 614 ObjScaleY, 615 ObjResRTF, 616 ObjResPict, 617 ObjResBitmap, 618 ObjResText, 619 ObjResMerge, 620 ObjBookmarkPubObj, 621 ObjPubAutoUpdate, 622 623 // Major.FNoteAttr 624 FNAlt, 625 626 // Major.KeyCodeAttr 627 AltKey, 628 ShiftKey, 629 ControlKey, 630 FunctionKey, 631 632 // Major.ACharAttr 633 ACBold, 634 ACAllCaps, 635 ACForeColor, 636 ACSubScript, 637 ACExpand, 638 ACFontNum, 639 ACFontSize, 640 ACItalic, 641 ACLanguage, 642 ACOutline, 643 ACSmallCaps, 644 ACShadow, 645 ACStrikeThru, 646 ACUnderline, 647 ACDotUnderline, 648 ACDbUnderline, 649 ACNoUnderline, 650 ACWordUnderline, 651 ACSuperScript, 652 653 // Major.FontAttr 654 FontCharSet, 655 FontPitch, 656 FontCodePage, 657 FTypeNil, 658 FTypeTrueType, 659 660 // Major.FileAttr 661 FileNum, 662 FileRelPath, 663 FileOSNum, 664 665 // Major.FileSource 666 SrcMacintosh, 667 SrcDOS, 668 SrcNTFS, 669 SrcHPFS, 670 SrcNetwork, 671 672 // Major.DrawAttr 673 DrawLock, 674 DrawPageRelX, 675 DrawColumnRelX, 676 DrawMarginRelX, 677 DrawPageRelY, 678 DrawColumnRelY, 679 DrawMarginRelY, 680 DrawHeight, 681 DrawBeginGroup, 682 DrawGroupCount, 683 DrawEndGroup, 684 DrawArc, 685 DrawCallout, 686 DrawEllipse, 687 DrawLine, 688 DrawPolygon, 689 DrawPolyLine, 690 DrawRect, 691 DrawTextBox, 692 DrawOffsetX, 693 DrawSizeX, 694 DrawOffsetY, 695 DrawSizeY, 696 COAngle, 697 COAccentBar, 698 COBestFit, 699 COBorder, 700 COAttachAbsDist, 701 COAttachBottom, 702 COAttachCenter, 703 COAttachTop, 704 COLength, 705 CONegXQuadrant, 706 CONegYQuadrant, 707 COOffset, 708 COAttachSmart, 709 CODoubleLine, 710 CORightAngle, 711 COSingleLine, 712 COTripleLine, 713 DrawTextBoxMargin, 714 DrawTextBoxText, 715 DrawRoundRect, 716 DrawPointX, 717 DrawPointY, 718 DrawPolyCount, 719 DrawArcFlipX, 720 DrawArcFlipY, 721 DrawLineBlue, 722 DrawLineGreen, 723 DrawLineRed, 724 DrawLinePalette, 725 DrawLineDashDot, 726 DrawLineDashDotDot, 727 DrawLineDash, 728 DrawLineDot, 729 DrawLineGray, 730 DrawLineHollow, 731 DrawLineSolid, 732 DrawLineWidth, 733 DrawHollowEndArrow, 734 DrawEndArrowLength, 735 DrawSolidEndArrow, 736 DrawEndArrowWidth, 737 DrawHollowStartArrow, 738 DrawStartArrowLength, 739 DrawSolidStartArrow, 740 DrawStartArrowWidth, 741 DrawBgFillBlue, 742 DrawBgFillGreen, 743 DrawBgFillRed, 744 DrawBgFillPalette, 745 DrawBgFillGray, 746 DrawFgFillBlue, 747 DrawFgFillGreen, 748 DrawFgFillRed, 749 DrawFgFillPalette, 750 DrawFgFillGray, 751 DrawFillPatIndex, 752 DrawShadow, 753 DrawShadowXOffset, 754 DrawShadowYOffset, 755 756 // Major.IndexAttr 757 IndexNumber, 758 IndexBold, 759 IndexItalic, 760 761 // Major.Unicode 762 UnicodeCharBytes, 763 UnicodeChar, 764 UnicodeDestination, 765 UnicodeDualDestination, 766 UnicodeAnsiCodepage 767 768 } 769 } 770