devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
778 lines (777 loc) • 39.2 kB
JavaScript
import { MapCreator } from '../../../utils/map-creator';
import { ThemeColorValues } from '../../../model/color/enums';
import { ShadingPattern } from '../../../model/shadings/shading-pattern';
export class RtfExportSR {
static ShadingPatternTable = createShadingPatternTable();
static RunShadingPatternTable = createRunShadingPatternTable();
static TableCellShadingPatternTable = createTableCellShadingPatternTable();
static TableStyleShadingPatternTable = createTableStyleShadingPatternTable();
static ThemeColorValuesTable = createThemeColorValuesTable();
static OpenGroup = "{";
static CloseGroup = "}";
static RtfSignature = "\\rtf1";
static DefaultFontIndex = "\\deff";
static StyleTable = "\\stylesheet";
static ColorTable = "\\colortbl";
static FontTable = "\\fonttbl";
static FontCharset = "\\fcharset";
static UserTable = "\\*\\protusertbl";
static ColorSchemeMapping = "\\*\\colorschememapping";
static ThemeData = "\\*\\themedata";
static DocumentInformation = "\\info";
static Password = "\\*\\password";
static PasswordHash = "\\*\\passwordhash";
static EnforceProtection = "\\enforceprot";
static AnnotationProtection = "\\annotprot";
static ReadOnlyProtection = "\\readprot";
static ProtectionLevel = "\\protlevel";
static NoUICompatible = "\\nouicompat";
static UnicodeAndANSIGroup = "\\upr";
static UnicodeGroup = "\\*\\ud";
static Category = "\\*\\category";
static Title = "\\title";
static Subject = "\\subject";
static Author = "\\author";
static Keywords = "\\keywords";
static Description = "\\doccomm";
static LastModifiedBy = "\\operator";
static Created = "\\creatim";
static Modified = "\\revtim";
static LastPrinted = "\\printim";
static Revision = "\\version";
static Year = "\\yr";
static Month = "\\mo";
static Day = "\\dy";
static Hour = "\\hr";
static Minute = "\\min";
static CustomProperties = "\\*\\userprops";
static CustomPropertyName = "\\propname";
static CustomPropertyType = "\\proptype";
static CustomPropertyLinkTarget = "\\linkval";
static CustomPropertyValue = "\\staticval";
static DefaultTabWidth = "\\deftab";
static MirrorMargins = "\\margmirror";
static HyphenateDocument = "\\hyphauto";
static PageFacing = "\\facingp";
static DisplayBackgroundShape = "\\viewbksp";
static RemovePersonalInformation = "\\rempersonalinfo";
static CompatibilityNoColumnBalance = "\\nocolbal";
static CompatibilityDoNotAlignTableRowsIndependently = "\\alntblind";
static CompatibilityDontJustifyLinesEndingInSoftLineBreak = "\\expshrtn";
static CompatibilitySplitPageBreakAndParagraphMark = "\\spltpgpar";
static CompatibilityAllowTablesToExtendIntoMargin = "\\nogrowautofit";
static ColorRed = "\\red";
static ColorGreen = "\\green";
static ColorBlue = "\\blue";
static ThemeColorTint = "\\ctint";
static ThemeColorShade = "\\cshade";
static ResetParagraphProperties = "\\pard";
static FrameHorizontalPosition = "\\posx";
static FrameVerticalPosition = "\\posy";
static FrameNegativeHorizontalPosition = "\\posnegx";
static FrameNegativeVerticalPosition = "\\posnegy";
static FrameWidth = "\\absw";
static FrameHeight = "\\absh";
static FrameVerticalPadding = "\\dfrmtxty";
static FrameHorizontalPadding = "\\dfrmtxtx";
static FrameLockAnchor = "\\abslock";
static FrameNoWrap = "\\nowrap";
static FrameWrapOverlay = "\\overlay";
static FrameWrapDefault = "\\wrapdefault";
static FrameWrapAround = "\\wraparound";
static FrameWrapTight = "\\wraptight";
static FrameWrapThrough = "\\wrapthrough";
static FrameHorizontalPositionAlignmentCenter = "\\posxc";
static FrameHorizontalPositionAlignmentLeft = "\\posxl";
static FrameHorizontalPositionAlignmentRight = "\\posxr";
static FrameHorizontalPositionAlignmentInside = "\\posxi";
static FrameHorizontalPositionAlignmentOutside = "\\posxo";
static FrameVerticalPositionAlignmentCenter = "\\posyc";
static FrameVerticalPositionAlignmentTop = "\\posyt";
static FrameVerticalPositionAlignmentBottom = "\\posyb";
static FrameVerticalPositionAlignmentInside = "\\posyin";
static FrameVerticalPositionAlignmentOutside = "\\posyout";
static TopParagraphBorder = "\\brdrt";
static BottomParagraphBorder = "\\brdrb";
static LeftParagraphBorder = "\\brdrl";
static RightParagraphBorder = "\\brdrr";
static BetweenParagraphBorder = "\\brdrbtw";
static ParagraphHorizontalPositionTypeMargin = "\\phmrg";
static ParagraphHorizontalPositionTypePage = "\\phpg";
static ParagraphHorizontalPositionTypeColumn = "\\phcol";
static ParagraphVerticalPositionTypeMargin = "\\pvmrg";
static ParagraphVerticalPositionTypePage = "\\pvpg";
static ParagraphVerticalPositionTypeLine = "\\pvpara";
static ResetCharacterFormatting = "\\plain";
static EndOfParagraph = "\\par";
static LeftAlignment = "\\ql";
static RightAlignment = "\\qr";
static CenterAlignment = "\\qc";
static JustifyAlignment = "\\qj";
static FirstLineIndentInTwips = "\\fi";
static LeftIndentInTwips = "\\li";
static LeftIndentInTwips_Lin = "\\lin";
static RightIndentInTwips = "\\ri";
static RightIndentInTwips_Rin = "\\rin";
static AutomaticParagraphHyphenation = "\\hyphpar";
static SuppressLineNumbering = "\\noline";
static ContextualSpacing = "\\contextualspace";
static PageBreakBefore = "\\pagebb";
static BeforeAutoSpacing = "\\sbauto";
static AfterAutoSpacing = "\\saauto";
static KeepWithNext = "\\keepn";
static KeepLinesTogether = "\\keep";
static WidowOrphanControlOn = "\\widctlpar";
static WidowOrphanControlOff = "\\nowidctlpar";
static OutlineLevel = "\\outlinelevel";
static ParagraphShading = "\\shading";
static ParagraphFillColor = "\\cfpat";
static ParagraphBackgroundColor = "\\cbpat";
static RtfLineSpacingValue = "\\sl";
static RtfLineSpacingMultiple = "\\slmult";
static SpaceBefore = "\\sb";
static SpaceAfter = "\\sa";
static ListIndex = "\\ls";
static LevelIndex = "\\ilvl";
static AlternativeText = "\\listtext";
static ParagraphNumerationText = "\\*\\pntext";
static CenteredTab = "\\tqc";
static DecimalTab = "\\tqdec";
static FlushRightTab = "\\tqr";
static NumberingTab = "\\jclisttab";
static TabLeaderDots = "\\tldot";
static TabLeaderEqualSign = "\\tleq";
static TabLeaderHyphens = "\\tlhyph";
static TabLeaderMiddleDots = "\\tlmdot";
static TabLeaderThickLine = "\\tlth";
static TabLeaderUnderline = "\\tlul";
static TabPosition = "\\tx";
static AllCapitals = "\\caps";
static SmallCapitals = "\\scaps";
static LangInfo = "\\lang";
static LangInfo1 = "\\langfe";
static LangInfo2 = "\\langnp";
static LangInfo3 = "\\langfenp";
static NoProof = "\\noproof";
static HiddenText = "\\v";
static FontBold = "\\b";
static FontItalic = "\\i";
static FontStrikeout = "\\strike";
static FontDoubleStrikeout = "\\striked1";
static FontUnderline = "\\ul";
static FontUnderlineDotted = "\\uld";
static FontUnderlineDashed = "\\uldash";
static FontUnderlineDashDotted = "\\uldashd";
static FontUnderlineDashDotDotted = "\\uldashdd";
static FontUnderlineDouble = "\\uldb";
static FontUnderlineHeavyWave = "\\ulhwave";
static FontUnderlineLongDashed = "\\ulldash";
static FontUnderlineThickSingle = "\\ulth";
static FontUnderlineThickDotted = "\\ulthd";
static FontUnderlineThickDashed = "\\ulthdash";
static FontUnderlineThickDashDotted = "\\ulthdashd";
static FontUnderlineThickDashDotDotted = "\\ulthdashdd";
static FontUnderlineThickLongDashed = "\\ulthldash";
static FontUnderlineDoubleWave = "\\ululdbwave";
static FontUnderlineWave = "\\ulwave";
static FontUnderlineWordsOnly = "\\ulw";
static FontNumber = "\\f";
static FontSize = "\\fs";
static RunShadingPattern = "\\chshdng";
static RunFillColor = "\\chcfpat";
static RunBackgroundColor = "\\chcbpat";
static RunHighlightColor = "\\highlight";
static RunForegroundColor = "\\cf";
static RunUnderlineColor = "\\ulc";
static RunSuperScript = "\\super";
static RunSubScript = "\\sub";
static Picture = "\\pict";
static PictureWidth = "\\picw";
static PictureHeight = "\\pich";
static PictureDesiredWidth = "\\picwgoal";
static PictureDesiredHeight = "\\pichgoal";
static PictureScaleX = "\\picscalex";
static PictureScaleY = "\\picscaley";
static PictureCropLeft = "\\piccropl";
static PictureCropTop = "\\piccropt";
static PictureCropRight = "\\piccropr";
static PictureCropBottom = "\\piccropb";
static ShapePicture = "\\*\\shppict";
static NonShapePicture = "\\nonshppict";
static DxImageUri = "\\*\\dximageuri";
static PictureProperties = "\\*\\picprop";
static Defshp = "\\defshp";
static PNGPictureKeyword = "\\pngblip";
static JpegPictureKeyword = "\\jpegblip";
static Space = " ";
static CLRF = "\\r\\n";
static ResetSectionProperties = "\\sectd";
static SectionEndMark = "\\sect";
static SectionMarginsLeft = "\\marglsxn";
static SectionMarginsRight = "\\margrsxn";
static SectionMarginsTop = "\\margtsxn";
static SectionMarginsBottom = "\\margbsxn";
static SectionMarginsHeaderOffset = "\\headery";
static SectionMarginsFooterOffset = "\\footery";
static SectionMarginsGutter = "\\guttersxn";
static SectionFirstPageHeader = "\\headerf";
static SectionOddPageHeader = "\\headerr";
static SectionEvenPageHeader = "\\headerl";
static SectionFirstPageFooter = "\\footerf";
static SectionOddPageFooter = "\\footerr";
static SectionEvenPageFooter = "\\footerl";
static SectionPageWidth = "\\pgwsxn";
static SectionPageHeight = "\\pghsxn";
static SectionPageLandscape = "\\lndscpsxn";
static PaperKind = "\\psz";
static SectionFirstPagePaperSource = "\\binfsxn";
static SectionOtherPagePaperSource = "\\binsxn";
static SectionOnlyAllowEditingOfFormFields = "\\sectunlocked";
static SectionTextFlow = "\\stextflow";
static SectionTitlePage = "\\titlepg";
static VerticalAlignmentBottom = "\\vertal\\vertalb";
static VerticalAlignmentTop = "\\vertalt";
static VerticalAlignmentCenter = "\\vertalc";
static VerticalAlignmentJustify = "\\vertalj";
static SectionBreakTypeNextPage = "\\sbkpage";
static SectionBreakTypeOddPage = "\\sbkodd";
static SectionBreakTypeEvenPage = "\\sbkeven";
static SectionBreakTypeColumn = "\\sbkcol";
static SectionBreakTypeContinuous = "\\sbknone";
static SectionChapterSeparatorHyphen = "\\pgnhnsh";
static SectionChapterSeparatorPeriod = "\\pgnhnsp";
static SectionChapterSeparatorColon = "\\pgnhnsc";
static SectionChapterSeparatorEmDash = "\\pgnhnsm";
static SectionChapterSeparatorEnDash = "\\pgnhnsn";
static SectionChapterHeaderStyle = "\\pgnhn";
static SectionPageNumberingStart = "\\pgnstarts";
static SectionPageNumberingContinuous = "\\pgncont";
static SectionPageNumberingRestart = "\\pgnrestart";
static SectionPageNumberingDecimal = "\\pgndec";
static SectionPageNumberingUpperRoman = "\\pgnucrm";
static SectionPageNumberingLowerRoman = "\\pgnlcrm";
static SectionPageNumberingUpperLetter = "\\pgnucltr";
static SectionPageNumberingLowerLetter = "\\pgnlcltr";
static SectionPageNumberingArabicAbjad = "\\pgnbidia";
static SectionPageNumberingArabicAlpha = "\\pgnbidib";
static SectionPageNumberingChosung = "\\pgnchosung";
static SectionPageNumberingDecimalEnclosedCircle = "\\pgncnum";
static SectionPageNumberingDecimalFullWidth = "\\pgndecd";
static SectionPageNumberingGanada = "\\pgnganada";
static SectionPageNumberingHindiVowels = "\\pgnhindia";
static SectionPageNumberingHindiConsonants = "\\pgnhindib";
static SectionPageNumberingHindiNumbers = "\\pgnhindic";
static SectionPageNumberingHindiDescriptive = "\\pgnhindid";
static SectionPageNumberingThaiLetters = "\\pgnthaia";
static SectionPageNumberingThaiNumbers = "\\pgnthaib";
static SectionPageNumberingThaiDescriptive = "\\pgnthaic";
static SectionPageNumberingVietnameseDescriptive = "\\pgnvieta";
static SectionLineNumberingContinuous = "\\linecont";
static SectionLineNumberingStart = "\\linestarts";
static SectionLineNumberingRestartNewPage = "\\lineppage";
static SectionLineNumberingRestartNewSection = "\\linerestart";
static SectionLineNumberingCountBy = "\\linemod";
static SectionLineNumberingDistance = "\\linex";
static SectionColumnsCount = "\\cols";
static SectionSpaceBetweenColumns = "\\colsx";
static SectionColumnsDrawVerticalSeparator = "\\linebetcol";
static SectionColumnNumber = "\\colno";
static SectionColumnWidth = "\\colw";
static SectionColumnSpace = "\\colsr";
static SectionFootNotePlacementBelowText = "\\sftntj";
static SectionFootNotePlacementPageBottom = "\\sftnbj";
static SectionFootNoteNumberingStart = "\\sftnstart";
static SectionFootNoteNumberingRestartEachPage = "\\sftnrstpg";
static SectionFootNoteNumberingRestartEachSection = "\\sftnrestart";
static SectionFootNoteNumberingRestartContinuous = "\\sftnrstcont";
static SectionFootNoteNumberingFormatDecimal = "\\sftnnar";
static SectionFootNoteNumberingFormatUpperRoman = "\\sftnnruc";
static SectionFootNoteNumberingFormatLowerRoman = "\\sftnnrlc";
static SectionFootNoteNumberingFormatUpperLetter = "\\sftnnauc";
static SectionFootNoteNumberingFormatLowerLetter = "\\sftnnalc";
static SectionFootNoteNumberingFormatChicago = "\\sftnnchi";
static SectionFootNoteNumberingFormatChosung = "\\sftnnchosung";
static SectionFootNoteNumberingFormatDecimalEnclosedCircle = "\\sftnncnum";
static SectionFootNoteNumberingFormatDecimalFullWidth = "\\sftnndbar";
static SectionFootNoteNumberingFormatGanada = "\\sftnnganada";
static SectionEndNoteNumberingStart = "\\saftnstart";
static SectionEndNoteNumberingRestartEachSection = "\\saftnrestart";
static SectionEndNoteNumberingRestartContinuous = "\\saftnrstcont";
static SectionEndNoteNumberingFormatDecimal = "\\saftnnar";
static SectionEndNoteNumberingFormatUpperRoman = "\\saftnnruc";
static SectionEndNoteNumberingFormatLowerRoman = "\\saftnnrlc";
static SectionEndNoteNumberingFormatUpperLetter = "\\saftnnauc";
static SectionEndNoteNumberingFormatLowerLetter = "\\saftnnalc";
static SectionEndNoteNumberingFormatChicago = "\\saftnnchi";
static SectionEndNoteNumberingFormatChosung = "\\saftnnchosung";
static SectionEndNoteNumberingFormatDecimalEnclosedCircle = "\\saftnncnum";
static SectionEndNoteNumberingFormatDecimalFullWidth = "\\saftnndbar";
static SectionEndNoteNumberingFormatGanada = "\\saftnnganada";
static LegacyPaperWidth = "\\paperw";
static LegacyPaperHeight = "\\paperh";
static LegacyLandscape = "\\landscape";
static LegacyPageNumberingStart = "\\pgnstart";
static LegacyMarginsLeft = "\\margl";
static LegacyMarginsRight = "\\margr";
static LegacyMarginsTop = "\\margt";
static LegacyMarginsBottom = "\\margb";
static LegacyMarginsGutter = "\\gutter";
static LegacyMarginsGutterAtRight = "\\rtlgutter";
static FootNotePlacementBelowText = "\\ftntj";
static FootNotePlacementPageBottom = "\\ftnbj";
static FootNoteNumberingStart = "\\ftnstart";
static FootNoteNumberingRestartEachPage = "\\ftnrstpg";
static FootNoteNumberingRestartEachSection = "\\ftnrestart";
static FootNoteNumberingRestartContinuous = "\\ftnrstcont";
static FootNoteNumberingFormatDecimal = "\\ftnnar";
static FootNoteNumberingFormatUpperRoman = "\\ftnnruc";
static FootNoteNumberingFormatLowerRoman = "\\ftnnrlc";
static FootNoteNumberingFormatUpperLetter = "\\ftnnauc";
static FootNoteNumberingFormatLowerLetter = "\\ftnnalc";
static FootNoteNumberingFormatChicago = "\\ftnnchi";
static FootNoteNumberingFormatChosung = "\\ftnnchosung";
static FootNoteNumberingFormatDecimalEnclosedCircle = "\\ftnncnum";
static FootNoteNumberingFormatDecimalFullWidth = "\\ftnndbar";
static FootNoteNumberingFormatGanada = "\\ftnnganada";
static EndNotePlacementEndOfSection = "\\aendnotes";
static EndNotePlacementEndOfDocument = "\\aenddoc";
static EndNoteNumberingStart = "\\aftnstart";
static EndNoteNumberingRestartEachSection = "\\aftnrestart";
static EndNoteNumberingRestartContinuous = "\\aftnrstcont";
static EndNoteNumberingFormatDecimal = "\\aftnnar";
static EndNoteNumberingFormatUpperRoman = "\\aftnnruc";
static EndNoteNumberingFormatLowerRoman = "\\aftnnrlc";
static EndNoteNumberingFormatUpperLetter = "\\aftnnauc";
static EndNoteNumberingFormatLowerLetter = "\\aftnnalc";
static EndNoteNumberingFormatChicago = "\\aftnnchi";
static EndNoteNumberingFormatChosung = "\\aftnnchosung";
static EndNoteNumberingFormatDecimalEnclosedCircle = "\\aftnncnum";
static EndNoteNumberingFormatDecimalFullWidth = "\\aftnndbar";
static EndNoteNumberingFormatGanada = "\\aftnnganada";
static Field = "\\field";
static FieldLocked = "\\fldlock";
static FieldInstructions = "\\*\\fldinst";
static FieldResult = "\\fldrslt";
static FieldCodeView = "\\dxfldcodeview";
static FieldEdit = "\\fldedit";
static FormField = "\\*\\formfield";
static FormFieldType = "\\fftype";
static FormFieldListFieldResult = "\\ffres";
static FormFieldProtected = "\\ffprot";
static FormFieldCheckBoxFieldSizeType = "\\ffsize";
static FormFieldCalculatedOnExit = "\\ffrecalc";
static FormFieldCheckBoxFieldSize = "\\ffhps";
static FormFieldName = "\\*\\ffname";
static FormFieldListFieldDefault = "\\ffdefres";
static FormFieldHelpTextCustom = "\\ffownhelp";
static FormFieldHelpText = "\\*\\ffhelptext";
static FormFieldStatusBarTextCustom = "\\ffownstat";
static FormFieldStatusBarText = "\\*\\ffstattext";
static FormFieldEntryMacro = "\\*\\ffentrymcr";
static FormFieldExitMacro = "\\*\\ffexitmcr";
static FieldMapData = "\\*\\mmodsofldmpdata";
static FieldTypeNull = "\\mmfttypenull";
static FieldTypeColumn = "\\mmfttypedbcolumn";
static FieldTypeAddress = "\\mmfttypeaddress";
static FieldTypeSalutation = "\\mmfttypesalutation";
static FieldTypeMapped = "\\mmfttypemapped";
static FieldTypeBarcode = "\\mmfttypebarcode";
static MailMergeDataSourceObjectName = "\\mmodsoname";
static MailMergeDataSourceObjectMappedName = "\\mmodsomappedname";
static MailMergeDataSourceObjectColumnIndex = "\\mmodsofmcolumn";
static MailMergeDataSourceObjectDynamicAddress = "\\mmodsodynaddr";
static MailMergeDataSourceObjectLanguageId = "\\mmodsolid";
static BookmarkStart = "\\*\\bkmkstart";
static BookmarkEnd = "\\*\\bkmkend";
static RangePermissionStart = "\\*\\protstart";
static RangePermissionEnd = "\\*\\protend";
static CommentStart = "\\*\\atrfstart";
static CommentEnd = "\\*\\atrfend";
static CommentId = "\\*\\atnid";
static CommentAuthor = "\\*\\atnauthor";
static CommentTime = "\\*\\atntime";
static CommentChatn = "\\chatn";
static CommentAnnotation = "\\*\\annotation";
static CommentDate = "\\*\\atndate";
static CommentRef = "\\*\\atnref";
static CommentParent = "\\*\\atnparent";
static HyperlinkFieldType = "HYPERLINK";
static DocumentVariable = "\\*\\docvar";
static FootNote = "\\footnote";
static FootNoteReference = "\\chftn";
static EndNote = "\\ftnalt";
static PageBackground = "\\*\\background";
static Shape = "\\shp";
static ShapeInstance = "\\*\\shpinst";
static ShapeText = "\\shptxt";
static ShapeLeft = "\\shpleft";
static ShapeRight = "\\shpright";
static ShapeTop = "\\shptop";
static ShapeBottom = "\\shpbottom";
static ShapeZOrder = "\\shpz";
static ShapeLegacyHorizontalPositionTypePage = "\\shpbxpage";
static ShapeLegacyHorizontalPositionTypeMargin = "\\shpbxmargin";
static ShapeLegacyHorizontalPositionTypeColumn = "\\shpbxcolumn";
static ShapeIgnoreLegacyHorizontalPositionType = "\\shpbxignore";
static ShapeLegacyVerticalPositionTypePage = "\\shpbypage";
static ShapeLegacyVerticalPositionTypeMargin = "\\shpbymargin";
static ShapeLegacyVerticalPositionTypeParagraph = "\\shpbypara";
static ShapeIgnoreLegacyVerticalPositionType = "\\shpbyignore";
static ShapeWrapTextType = "\\shpwr";
static ShapeWrapTextTypeZOrder = "\\shpfblwtxt";
static ShapeWrapTextSide = "\\shpwrk";
static ShapeLocked = "\\shplockanchor";
static ShapeProperty = "\\sp";
static ShapePropertyName = "\\sn";
static ShapePropertyValue = "\\sv";
static ShapeResult = "\\shprslt";
static ShapeDoNotLay = "\\splytwnine";
static ShapeHyperlink = "\\*\\hl";
static ShapeHyperlinkFrame = "\\hlfr";
static ShapeHyperlinkSource = "\\hlsrc";
static ShapeHyperlinkLocation = "\\hlloc";
static HtmlAutoSpacing = "\\htmautsp";
static CustomRunData = "\\*\\dxcustomrundata";
static ParagraphGroupPropertiesTable = "\\*\\pgptbl";
static ParagraphGroupProperties = "\\pgp";
static ParagraphGroupPropertiesId = "\\ipgp";
static ResetTableProperties = "\\trowd";
static InTableParagraph = "\\intbl";
static TableEndCell = "\\cell";
static NestedTableEndCell = "\\nestcell";
static TableEndRow = "\\row";
static NestedTableEndRow = "\\nestrow";
static NestedTableProperties = "\\*\\nesttableprops";
static NoNestedTable = "\\nonesttables";
static ParagraphNestingLevel = "\\itap";
static TableCellRight = "\\cellx";
static TableCellPreferredWidth = "\\clwWidth";
static TableCellPreferredWidthType = "\\clftsWidth";
static TableCellBottomMargin = "\\clpadb";
static TableCellLeftMargin = "\\clpadl";
static TableCellRightMargin = "\\clpadr";
static TableCellTopMargin = "\\clpadt";
static TableCellBottomMarginType = "\\clpadfb";
static TableCellLeftMarginType = "\\clpadfl";
static TableCellRightMarginType = "\\clpadfr";
static TableCellTopMarginType = "\\clpadft";
static TableRowIndex = "\\irow";
static TableRowBandIndex = "\\irowband";
static TableRowLeftAlignment = "\\trql";
static TableRowRightAlignment = "\\trqr";
static TableRowCenterAlignment = "\\trqc";
static TableIndent = "\\tblind";
static TableIndentType = "\\tblindtype";
static TableCellBottomBorder = "\\clbrdrb";
static TableCellTopBorder = "\\clbrdrt";
static TableCellLeftBorder = "\\clbrdrl";
static TableCellRightBorder = "\\clbrdrr";
static TableCellUpperLeftToLowerRightBorder = "\\cldglu";
static TableCellUpperRightToLowerLeftBorder = "\\cldgll";
static TableCellStartHorizontalMerging = "\\clmgf";
static TableCellContinueHorizontalMerging = "\\clmrg";
static TableCellStartVerticalMerging = "\\clvmgf";
static TableCellContinueVerticalMerging = "\\clvmrg";
static TableCellTextTopAlignment = "\\clvertalt";
static TableCellTextCenterAlignment = "\\clvertalc";
static TableCellTextBottomAlignment = "\\clvertalb";
static TableCellLeftToRightTopToBottomTextDirection = "\\cltxlrtb";
static TableCellTopToBottomRightToLeftTextDirection = "\\cltxtbrl";
static TableCellBottomToTopLeftToRightTextDirection = "\\cltxbtlr";
static TableCellLeftToRightTopToBottomVerticalTextDirection = "\\cltxlrtbv";
static TableCellTopToBottomRightToLeftVerticalTextDirection = "\\cltxtbrlv";
static TableCellFitText = "\\clFitText";
static TableCellNoWrap = "\\clNoWrap";
static TableCellHideMark = "\\clhidemark";
static TableCellBackgroundColor = "\\clcbpat";
static TableCellForegroundColor = "\\clcfpat";
static TableCellShading = "\\clshdng";
static TableTopBorder = "\\trbrdrt";
static TableLeftBorder = "\\trbrdrl";
static TableBottomBorder = "\\trbrdrb";
static TableRightBorder = "\\trbrdrr";
static TableHorizontalBorder = "\\trbrdrh";
static TableVerticalBorder = "\\trbrdrv";
static TableRowBackgroundColor = "\\trcbpat";
static TableRowForegroundColor = "\\trcfpat";
static TableRowShading = "\\trshdng";
static TableRowHorizontalAnchorColumn = "\\tphcol";
static TableRowHorizontalAnchorMargin = "\\tphmrg";
static TableRowHorizontalAnchorPage = "\\tphpg";
static TableRowVerticalAnchorMargin = "\\tpvmrg";
static TableRowVerticalAnchorParagraph = "\\tpvpara";
static TableRowVerticalAnchorPage = "\\tpvpg";
static TableRowHorizontalAlignCenter = "\\tposxc";
static TableRowHorizontalAlignInside = "\\tposxi";
static TableRowHorizontalAlignLeft = "\\tposxl";
static TableRowHorizontalAlignOutside = "\\tposxo";
static TableRowHorizontalAlignRight = "\\tposxr";
static TableRowHorizontalPosition = "\\tposx";
static TableRowHorizontalPositionNeg = "\\tposnegx";
static TableRowVerticalAlignBottom = "\\tposyb";
static TableRowVerticalAlignCenter = "\\tposyc";
static TableRowVerticalAlignInline = "\\tposyil";
static TableRowVerticalAlignInside = "\\tposyin";
static TableRowVerticalAlignOutside = "\\tposyout";
static TableRowVerticalAlignTop = "\\tposyt";
static TableRowVerticalPosition = "\\tposy";
static TableRowVerticalPositionNeg = "\\tposnegy";
static TableRowLeftFromText = "\\tdfrmtxtLeft";
static TableRowBottomFromText = "\\tdfrmtxtBottom";
static TableRowRightFromText = "\\tdfrmtxtRight";
static TableRowTopFromText = "\\tdfrmtxtTop";
static TableNoOverlap = "\\tabsnoovrlp";
static TableHalfSpaceBetweenCells = "\\trgaph";
static TableRowLeft = "\\trleft";
static TableRowHeight = "\\trrh";
static TableRowHeader = "\\trhdr";
static TableRowCantSplit = "\\trkeep";
static TablePreferredWidth = "\\trwWidth";
static TablePreferredWidthType = "\\trftsWidth";
static TableRowWidthBefore = "\\trwWidthB";
static TableRowWidthBeforeType = "\\trftsWidthB";
static TableRowWidthAfter = "\\trwWidthA";
static TableRowWidthAfterType = "\\trftsWidthA";
static TableLayout = "\\trautofit";
static TableCellSpacingBottom = "\\trspdb";
static TableCellSpacingLeft = "\\trspdl";
static TableCellSpacingRight = "\\trspdr";
static TableCellSpacingTop = "\\trspdt";
static TableCellSpacingBottomType = "\\trspdfb";
static TableCellSpacingLeftType = "\\trspdfl";
static TableCellSpacingRightType = "\\trspdfr";
static TableCellSpacingTopType = "\\trspdft";
static TableCellMarginsBottom = "\\trpaddb";
static TableCellMarginsLeft = "\\trpaddl";
static TableCellMarginsRight = "\\trpaddr";
static TableCellMarginsTop = "\\trpaddt";
static TableCellMarginsBottomType = "\\trpaddfb";
static TableCellMarginsLeftType = "\\trpaddfl";
static TableCellMarginsRightType = "\\trpaddfr";
static TableCellMarginsTopType = "\\trpaddft";
static TableApplyFirstRow = "\\tbllkhdrrows";
static TableApplyLastRow = "\\tbllklastrow";
static TableApplyFirstColumn = "\\tbllkhdrcols";
static TableApplyLastColumn = "\\tbllklastcol";
static TableDoNotApplyRowBanding = "\\tbllknorowband";
static TableDoNotApplyColumnBanding = "\\tbllknocolband";
static TableLastRow = "\\lastrow";
static TableStyleResetTableProperties = "\\tsrowd";
static TableStyleCellVerticalAlignmentTop = "\\tsvertalt";
static TableStyleCellVerticalAlignmentCenter = "\\tsvertalc";
static TableStyleCellVerticalAlignmentBottom = "\\tsvertalb";
static TableStyleRowBandSize = "\\tscbandsh";
static TableStyleColumnBandSize = "\\tscbandsv";
static TableStyleCellBackgroundColor = "\\tscellcbpat";
static TableStyleCellForegroundColor = "\\tscellcfpat";
static TableStyleCellShading = "\\tscellpct";
static TableStyleTopCellBorder = "\\tsbrdrt";
static TableStyleLeftCellBorder = "\\tsbrdrl";
static TableStyleBottomCellBorder = "\\tsbrdrb";
static TableStyleRightCellBorder = "\\tsbrdrr";
static TableStyleHorizontalCellBorder = "\\tsbrdrh";
static TableStyleVerticalCellBorder = "\\tsbrdrv";
static TableStyleCellNoWrap = "\\tsnowrap";
static TableStyleTableBottomCellMargin = "\\tscellpaddb";
static TableStyleTableLeftCellMargin = "\\tscellpaddl";
static TableStyleTableRightCellMargin = "\\tscellpaddr";
static TableStyleTableTopCellMargin = "\\tscellpaddt";
static TableStyleTableBottomCellMarginUnitType = "\\tscellpaddfb";
static TableStyleTableLeftCellMarginUnitType = "\\tscellpaddfl";
static TableStyleTableRightCellMarginUnitType = "\\tscellpaddfr";
static TableStyleTableTopCellMarginUnitType = "\\tscellpaddft";
static TableStyleUpperLeftToLowerRightBorder = "\\tsbrdrdgl";
static TableStyleUpperRightToLowerLeftBorder = "\\tsbrdrdgr";
static TableConditionalStyleFirstRow = "\\tscfirstrow";
static TableConditionalStyleLastRow = "\\tsclastrow";
static TableConditionalStyleFirstColumn = "\\tscfirstcol";
static TableConditionalStyleLastColumn = "\\tsclastcol";
static TableConditionalStyleOddRowBanding = "\\tscbandhorzodd";
static TableConditionalStyleEvenRowBanding = "\\tscbandhorzeven";
static TableConditionalStyleOddColumnBanding = "\\tscbandvertodd";
static TableConditionalStyleEvenColumnBanding = "\\tscbandverteven";
static TableConditionalStyleTopLeftCell = "\\tscnwcell";
static TableConditionalStyleTopRightCell = "\\tscnecell";
static TableConditionalStyleBottomLeftCell = "\\tscswcell";
static TableConditionalStyleBottomRightCell = "\\tscsecell";
static NoTableBorder = "\\brdrtbl";
static NoBorder = "\\brdrnil";
static BorderWidth = "\\brdrw";
static BorderColor = "\\brdrcf";
static BorderFrame = "\\brdrframe";
static BorderSpace = "\\brsp";
static BorderArtIndex = "\\brdrart";
static BorderSingleWidth = "\\brdrs";
static BorderDoubleWidth = "\\brdrth";
static BorderShadow = "\\brdrsh";
static BorderDouble = "\\brdrdb";
static BorderDotted = "\\brdrdot";
static BorderDashed = "\\brdrdash";
static BorderSingle = "\\brdrhair";
static BorderDashedSmall = "\\brdrdashsm";
static BorderDotDashed = "\\brdrdashd";
static BorderDotDotDashed = "\\brdrdashdd";
static BorderInset = "\\brdrinset";
static BorderNone = "\\brdrnone";
static BorderOutset = "\\brdroutset";
static BorderTriple = "\\brdrtriple";
static BorderThickThinSmall = "\\brdrthtnsg";
static BorderThinThickSmall = "\\brdrtnthsg";
static BorderThinThickThinSmall = "\\brdrtnthtnsg";
static BorderThickThinMedium = "\\brdrthtnmg";
static BorderThinThickMedium = "\\brdrtnthmg";
static BorderThinThickThinMedium = "\\brdrtnthtnmg";
static BorderThickThinLarge = "\\brdrthtnlg";
static BorderThinThickLarge = "\\brdrtnthlg";
static BorderThinThickThinLarge = "\\brdrtnthtnlg";
static BorderWavy = "\\brdrwavy";
static BorderDoubleWavy = "\\brdrwavydb";
static BorderDashDotStroked = "\\brdrdashdotstr";
static BorderThreeDEmboss = "\\brdremboss";
static BorderThreeDEngrave = "\\brdrengrave";
static NumberingListTable = "\\*\\listtable";
static ListOverrideTable = "\\*\\listoverridetable";
static NumberingList = "\\list";
static NumberingListId = "\\listid";
static NumberingListTemplateId = "\\listtemplateid";
static NumberingListStyleId = "\\liststyleid";
static NumberingListStyleName = "\\*\\liststylename ";
static NumberingListName = "\\listname ;";
static NumberingListHybrid = "\\listhybrid";
static ListLevel = "\\listlevel";
static ListLevelStart = "\\levelstartat";
static ListLevelTentative = "\\lvltentative";
static ListLevelNumberingFormat = "\\levelnfc";
static ListLevelAlignment = "\\leveljc";
static ListLevelNumberingFormatN = "\\levelnfcn";
static ListLevelAlignmentN = "\\leveljcn";
static LisLeveltOld = "\\levelold";
static ListLevelPrev = "\\levelprev";
static ListLevelPrevSpase = "\\levelprevspace";
static ListLevelSpace = "\\levelspace";
static ListLevelIntdent = "\\levelindent";
static ListLevelNumbers = "\\levelnumbers";
static ListLevelText = "\\leveltext";
static LevelTemplateId = "\\leveltemplateid";
static ListLevelFollow = "\\levelfollow";
static ListLevelLegal = "\\levellegal";
static ListLevelNoRestart = "\\levelnorestart";
static ListLevelPicture = "\\levelpicture";
static ListLevelPictureNoSize = "\\levelpicturenosize";
static ListLevelLegacy = "\\levelold";
static ListLevelLegacySpace = "\\levelspace";
static ListLevelLegacyIndent = "\\levelindent";
static ListOverride = "\\listoverride";
static ListOverrideListId = "\\listid";
static ListOverrideCount = "\\listoverridecount";
static ListOverrideLevel = "\\lfolevel";
static ListOverrideFormat = "\\listoverrideformat";
static ListOverrideStart = "\\listoverridestartat";
static ListOverrideStartValue = "\\levelstartat";
static ListOverrideListLevel = "\\listlevel";
static DefaultCharacterProperties = "\\*\\defchp";
static DefaultParagraphProperties = "\\*\\defpap";
static StyleSheet = "\\stylesheet";
static ParagraphStyle = "\\s";
static CharacterStyle = "\\*\\cs";
static CharacterStyleIndex = "\\cs";
static TableStyle = "\\*\\ts";
static TableStyleIndex = "\\ts";
static TableStyleCellIndex = "\\yts";
static ParentStyle = "\\sbasedon";
static LinkedStyle = "\\slink";
static NextStyle = "\\snext";
static QuickFormatStyle = "\\sqformat";
static RTLRun = "\\rtlch";
static LTRRun = "\\ltrch";
static RLTParagraph = "\\rtlpar";
static LTRParagraph = "\\ltrpar";
static RTLRow = "\\rtlrow";
static LTRRow = "\\ltrrow";
static RTLSection = "\\rtlsect";
static LTRSection = "\\ltrsect";
}
function createShadingPatternTable() {
return new MapCreator()
.add(ShadingPattern.ThinHorzStripe, "\\bghoriz")
.add(ShadingPattern.ThinVertStripe, "\\bgvert")
.add(ShadingPattern.ThinReverseDiagStripe, "\\bgfdiag")
.add(ShadingPattern.ThinDiagStripe, "\\bgbdiag")
.add(ShadingPattern.ThinHorzCross, "\\bgcross")
.add(ShadingPattern.ThinDiagCross, "\\bgdcross")
.add(ShadingPattern.HorzStripe, "\\bgdkhoriz")
.add(ShadingPattern.VertStripe, "\\bgdkvert")
.add(ShadingPattern.ReverseDiagStripe, "\\bgdkfdiag")
.add(ShadingPattern.DiagStripe, "\\bgdkbdiag")
.add(ShadingPattern.HorzCross, "\\bgdkcross")
.add(ShadingPattern.DiagCross, "\\bgdkdcross")
.get();
}
function createRunShadingPatternTable() {
return new MapCreator()
.add(ShadingPattern.ThinHorzStripe, "\\chbghoriz")
.add(ShadingPattern.ThinVertStripe, "\\chbgvert")
.add(ShadingPattern.ThinReverseDiagStripe, "\\chbgfdiag")
.add(ShadingPattern.ThinDiagStripe, "\\chbgbdiag")
.add(ShadingPattern.ThinHorzCross, "\\chbgcross")
.add(ShadingPattern.ThinDiagCross, "\\chbgdcross")
.add(ShadingPattern.HorzStripe, "\\chbgdkhoriz")
.add(ShadingPattern.VertStripe, "\\chbgdkvert")
.add(ShadingPattern.ReverseDiagStripe, "\\chbgdkfdiag")
.add(ShadingPattern.DiagStripe, "\\chbgdkbdiag")
.add(ShadingPattern.HorzCross, "\\chbgdkcross")
.add(ShadingPattern.DiagCross, "\\chbgdkdcross")
.get();
}
function createTableCellShadingPatternTable() {
return new MapCreator()
.add(ShadingPattern.ThinHorzStripe, "\\clbghoriz")
.add(ShadingPattern.ThinVertStripe, "\\clbgvert")
.add(ShadingPattern.ThinReverseDiagStripe, "\\clbgfdiag")
.add(ShadingPattern.ThinDiagStripe, "\\clbgbdiag")
.add(ShadingPattern.ThinHorzCross, "\\clbgcross")
.add(ShadingPattern.ThinDiagCross, "\\clbgdcross")
.add(ShadingPattern.HorzStripe, "\\clbgdkhor")
.add(ShadingPattern.VertStripe, "\\clbgdkvert")
.add(ShadingPattern.ReverseDiagStripe, "\\clbgdkfdiag")
.add(ShadingPattern.DiagStripe, "\\clbgdkbdiag")
.add(ShadingPattern.HorzCross, "\\clbgdkcross")
.add(ShadingPattern.DiagCross, "\\clbgdkdcross")
.get();
}
function createTableStyleShadingPatternTable() {
return new MapCreator()
.add(ShadingPattern.ThinHorzStripe, "\\tsbghoriz")
.add(ShadingPattern.ThinVertStripe, "\\tsbgvert")
.add(ShadingPattern.ThinReverseDiagStripe, "\\tsbgfdiag")
.add(ShadingPattern.ThinDiagStripe, "\\tsbgbdiag")
.add(ShadingPattern.ThinHorzCross, "\\tsbgcross")
.add(ShadingPattern.ThinDiagCross, "\\tsbgdcross")
.add(ShadingPattern.HorzStripe, "\\tsbgdkhor")
.add(ShadingPattern.VertStripe, "\\tsbgdkvert")
.add(ShadingPattern.ReverseDiagStripe, "\\tsbgdkfdiag")
.add(ShadingPattern.DiagStripe, "\\tsbgdkbdiag")
.add(ShadingPattern.HorzCross, "\\tsbgdkcross")
.add(ShadingPattern.DiagCross, "\\tsbgdkdcross")
.get();
}
function createThemeColorValuesTable() {
return new MapCreator()
.add(ThemeColorValues.Dark1, "\\cmaindarkone")
.add(ThemeColorValues.Light1, "\\cmainlightone")
.add(ThemeColorValues.Dark2, "\\cmaindarktwo")
.add(ThemeColorValues.Light2, "\\cmainlighttwo")
.add(ThemeColorValues.Accent1, "\\caccentone")
.add(ThemeColorValues.Accent2, "\\caccenttwo")
.add(ThemeColorValues.Accent3, "\\caccentthree")
.add(ThemeColorValues.Accent4, "\\caccentfour")
.add(ThemeColorValues.Accent5, "\\caccentfive")
.add(ThemeColorValues.Accent6, "\\caccentsix")
.add(ThemeColorValues.Hyperlink, "\\chyperlink")
.add(ThemeColorValues.FollowedHyperlink, "\\cfollowedhyperlink")
.add(ThemeColorValues.Background1, "\\cbackgroundone")
.add(ThemeColorValues.Text1, "\\ctextone")
.add(ThemeColorValues.Background2, "\\cbackgroundtwo")
.add(ThemeColorValues.Text2, "\\ctexttwo")
.get();
}