UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

265 lines (264 loc) 14.5 kB
import { MapCreator } from '../../../utils/map-creator'; import { AnchorObjectHorizontalPositionAlignment, AnchorObjectHorizontalPositionType, AnchorObjectTextWrapSide, AnchorObjectTextWrapType, AnchorObjectVerticalPositionAlignment, AnchorObjectVerticalPositionType, RelativeHeightType, RelativeWidthType } from '../../../model/floating-objects/enums'; export class RtfDrawingKeywords { static { this.DXInternalLegacyHorizontalPositionAlignment = "_dxInternalLegacyHorizontalPositionAlignment"; } static { this.DXInternalLegacyVerticalPositionAlignment = "_dxInternalLegacyVerticalPositionAlignment"; } static { this.DXInternalIsShape = "_dxInternalIsShape"; } static { this.Shape = "shp"; } static { this.ShapeInstance = "shpinst"; } static { this.ShapeGroup = "shpgrp"; } static { this.ShapeText = "shptxt"; } static { this.ShapeLid = "shplid"; } static { this.ShapeLeft = "shpleft"; } static { this.ShapeRight = "shpright"; } static { this.ShapeTop = "shptop"; } static { this.ShapeBottom = "shpbottom"; } static { this.ShapeZOrder = "shpz"; } static { this.ShapeLegacyHorizontalPositionTypePage = "shpbxpage"; } static { this.ShapeLegacyHorizontalPositionTypeMargin = "shpbxmargin"; } static { this.ShapeLegacyHorizontalPositionTypeColumn = "shpbxcolumn"; } static { this.ShapeIgnoreLegacyHorizontalPositionType = "shpbxignore"; } static { this.ShapeLegacyVerticalPositionTypePage = "shpbypage"; } static { this.ShapeLegacyVerticalPositionTypeMargin = "shpbymargin"; } static { this.ShapeLegacyVerticalPositionTypeParagraph = "shpbypara"; } static { this.ShapeIgnoreLegacyVerticalPositionType = "shpbyignore"; } static { this.ShapeWrapTextType = "shpwr"; } static { this.ShapeWrapTextTypeZOrder = "shpfblwtxt"; } static { this.ShapeWrapTextSide = "shpwrk"; } static { this.ShapeLocked = "shplockanchor"; } static { this.Name = "wzName"; } static { this.LockAspectRatio = "fLockAspectRatio"; } static { this.Rotation = "rotation"; } static { this.Filled = "fFilled"; } static { this.FillColor = "fillColor"; } static { this.LineWidth = "lineWidth"; } static { this.Line = "fLine"; } static { this.LineColor = "lineColor"; } static { this.CropFromTop = "cropFromTop"; } static { this.CropFromBottom = "cropFromBottom"; } static { this.CropFromLeft = "cropFromLeft"; } static { this.CropFromRight = "cropFromRight"; } static { this.FitShapeToText = "fFitShapeToText"; } static { this.WrapText = "WrapText"; } static { this.LayoutInCell = "fLayoutInCell"; } static { this.HorizontalPositionAlignment = "posh"; } static { this.HorizontalPositionType = "posrelh"; } static { this.VerticalPositionAlignment = "posv"; } static { this.VerticalPositionType = "posrelv"; } static { this.RelativeHorizontalSizeWidth = "pctHoriz"; } static { this.RelativeHorizontalSizeFrom = "sizerelh"; } static { this.RelativeVerticalSizeHeight = "pctVert"; } static { this.RelativeVerticalSizeFrom = "sizerelv"; } static { this.PictureBinaryData = "pib"; } static { this.ExternalPictureName = "pibName"; } static { this.WrapDistLeft = "dxWrapDistLeft"; } static { this.WrapDistRight = "dxWrapDistRight"; } static { this.WrapDistTop = "dyWrapDistTop"; } static { this.WrapDistBottom = "dyWrapDistBottom"; } static { this.Hidden = "fHidden"; } static { this.AllowOverlap = "fAllowOverlap"; } static { this.BehindDocument = "fBehindDocument"; } static { this.TextLeft = "dxTextLeft"; } static { this.TextTop = "dyTextTop"; } static { this.TextRight = "dxTextRight"; } static { this.TextBottom = "dyTextBottom"; } static { this.FlipH = "fFlipH"; } static { this.FlipV = "fFlipV"; } static { this.PctHorizPos = "pctHorizPos"; } static { this.PctVertPos = "pctVertPos"; } static { this.PseudoInline = "fPseudoInline"; } static { this.ShapeType = "shapeType"; } static { this.BWMode = "bWMode"; } static { this.GeoLeft = "geoLeft"; } static { this.GeoTop = "geoTop"; } static { this.GeoRight = "geoRight"; } static { this.GeoBottom = "geoBottom"; } static { this.ShapePath = "shapePath"; } static { this.Verticies = "pVerticies"; } static { this.SegmentInfo = "pSegmentInfo"; } static { this.ConnectionSites = "pConnectionSites"; } static { this.ConnectionSitesDir = "pConnectionSitesDir"; } static { this.ShadowType = "shadowType"; } static { this.ShadowColor = "shadowColor"; } static { this.ShadowOpacity = "shadowOpacity"; } static { this.ShadowOffsetX = "shadowOffsetX"; } static { this.ShadowOffsetY = "shadowOffsetY"; } static { this.ShadowScaleXToX = "shadowScaleXToX"; } static { this.ShadowScaleYToY = "shadowScaleYToY"; } static { this.ShadowScaleYToX = "shadowScaleYToX"; } static { this.ShadowScaleXToY = "shadowScaleXToY"; } static { this.ShadowOriginX = "shadowOriginX"; } static { this.ShadowOriginY = "shadowOriginY"; } static { this.Shadow = "fShadow"; } static { this.ShadowSoftness = "shadowSoftness"; } static { this.PictureBrightness = "pictureBrightness"; } static { this.PictureContrast = "pictureContrast"; } static { this.PictureGray = "pictureGray"; } static { this.PictureTransparent = "pictureTransparent"; } static { this.AdjustValue = "adjustValue"; } static { this.AdjustFormatStringValue = "adjust{0}Value"; } static { this.FillType = "fillType"; } static { this.Hsv = "hsv"; } static { this.Accent1 = "caccentone"; } static { this.Accent2 = "caccenttwo"; } static { this.Accent3 = "caccentthree"; } static { this.Accent4 = "caccentfour"; } static { this.Accent5 = "caccentfive"; } static { this.Accent6 = "caccentsix"; } static { this.Tint = "ctint"; } static { this.Shade = "cshade"; } static { this.FillOpacity = "fillOpacity"; } static { this.FillBackColor = "fillBackColor"; } static { this.FillBackOpacity = "fillBackOpacity"; } static { this.FillAngle = "fillAngle"; } static { this.FillFocus = "fillFocus"; } static { this.FillToBottom = "fillToBottom"; } static { this.FillToTop = "fillToTop"; } static { this.FillToLeft = "fillToLeft"; } static { this.FillToRight = "fillToRight"; } static { this.LineMiterLimit = "lineMiterLimit"; } static { this.LineStyle = "lineStyle"; } static { this.LineDashing = "lineDashing"; } static { this.LineStartArrowhead = "lineStartArrowhead"; } static { this.LineEndArrowhead = "lineEndArrowhead"; } static { this.LineStartArrowWidth = "lineStartArrowWidth"; } static { this.LineEndArrowWidth = "lineEndArrowWidth"; } static { this.LineStartArrowLength = "lineStartArrowLength"; } static { this.LineEndArrowLength = "lineEndArrowLength"; } static { this.LineJoinStyle = "lineJoinStyle"; } static { this.LineEndCapStyle = "lineEndCapStyle"; } static { this.LineType = "lineType"; } static { this.LockAgainstGrouping = "fLockAgainstGrouping"; } static { this.LockAgainstSelect = "fLockAgainstSelect"; } static { this.LockPosition = "fLockPosition"; } static { this.LockRotation = "fLockRotation"; } static { this.LockVerticies = "fLockVerticies"; } static { this.LockAdjustHandles = "fLockAdjustHandles"; } static { this.LockShapeType = "fLockShapeType"; } static { this.LockText = "fLockText"; } static { this.LockAgainstUngrouping = "fLockAgainstUngrouping"; } static { this.LockCropping = "fLockCropping"; } static { this.FillShadeColors = "fillShadeColors"; } static { this.FillBlip = "fillBlip"; } static { this.LineFillBlip = "lineFillBlip"; } static { this.Description = "wzDescription"; } static { this.PihlShape = "pihlShape"; } static { this.Tooltip = "wzTooltip"; } static { this.ShapeHyperlink = "hl"; } static { this.ShapeHyperlinkFrame = "hlfr"; } static { this.ShapeHyperlinkSource = "hlsrc"; } static { this.ShapeHyperlinkLocation = "hlloc"; } static { this.AnchorText = "anchorText"; } static { this.TxflTextFlow = "txflTextFlow"; } static { this.GroupLeft = "groupLeft"; } static { this.GroupRight = "groupRight"; } static { this.GroupTop = "groupTop"; } static { this.GroupBottom = "groupBottom"; } static { this.Dhgt = "dhgt"; } static { this.RelLeft = "relLeft"; } static { this.RelRight = "relRight"; } static { this.RelTop = "relTop"; } static { this.RelBottom = "relBottom"; } static { this.RelFlipH = "fRelFlipH"; } static { this.RelFlipV = "fRelFlipV"; } static { this.WrapPolygonVertices = "pWrapPolygonVertices"; } static { this.EditedWrap = "fEditedWrap"; } static { this.Dgmt = "dgmt"; } static { this.PreferRelativeResize = "fPreferRelativeResize"; } static { this.XLimo = "xLimo"; } static { this.YLimo = "yLimo"; } static { this.LineOpacity = "lineOpacity"; } static { this.LineBackColor = "lineBackColor"; } static { this.PInscribe = "pInscribe"; } static { this.IsButton = "fIsButton"; } static { this.PatternFillFormatString = "{{\\pict\\picscalex-1\\picscaley-1\\piccropl0\\piccropr0\\piccropt0\\piccropb0\\picw212\\pich212\\picwgoal120\\pichgoal120\\wmetafile8\\bliptag{0}\\blipupi96}}"; } static { this.DrawingObjectTextWrapTypeTable = RtfDrawingKeywords.createDrawingObjectTextWrapTypeTable(); } static { this.DrawingObjectTextWrapSideTable = RtfDrawingKeywords.createDrawingObjectTextWrapSideTable(); } static { this.DrawingObjectHorizontalPositionAlignmentTable = RtfDrawingKeywords.createFloatingObjectHorizontalPositionAlignmentTable(); } static { this.DrawingObjectHorizontalPositionTypeTable = RtfDrawingKeywords.createFloatingObjectHorizontalPositionTypeTable(); } static { this.DrawingObjectVerticalPositionAlignmentTable = RtfDrawingKeywords.createFloatingObjectVerticalPositionAlignment(); } static { this.DrawingObjectVerticalPositionTypeTable = RtfDrawingKeywords.createFloatingObjectVerticalPositionType(); } static { this.DrawingObjectRelativeWidthTypeTable = RtfDrawingKeywords.createFloatingObjectRelativeWidthType(); } static { this.DrawingObjectRelativeHeightTypeTable = RtfDrawingKeywords.createFloatingObjectRelativeHeightType(); } static createDrawingObjectTextWrapTypeTable() { return new MapCreator() .add(AnchorObjectTextWrapType.TopAndBottom, 1) .add(AnchorObjectTextWrapType.Square, 2) .add(AnchorObjectTextWrapType.None, 3) .add(AnchorObjectTextWrapType.Tight, 4) .add(AnchorObjectTextWrapType.Through, 5) .get(); } static createDrawingObjectTextWrapSideTable() { return new MapCreator() .add(AnchorObjectTextWrapSide.Both, 0) .add(AnchorObjectTextWrapSide.Left, 1) .add(AnchorObjectTextWrapSide.Right, 2) .add(AnchorObjectTextWrapSide.Largest, 3) .get(); } static createFloatingObjectHorizontalPositionAlignmentTable() { return new MapCreator() .add(AnchorObjectHorizontalPositionAlignment.None, 0) .add(AnchorObjectHorizontalPositionAlignment.Left, 1) .add(AnchorObjectHorizontalPositionAlignment.Center, 2) .add(AnchorObjectHorizontalPositionAlignment.Right, 3) .add(AnchorObjectHorizontalPositionAlignment.Inside, 4) .add(AnchorObjectHorizontalPositionAlignment.Outside, 5) .get(); } static createFloatingObjectHorizontalPositionTypeTable() { return new MapCreator() .add(AnchorObjectHorizontalPositionType.Margin, 0) .add(AnchorObjectHorizontalPositionType.Page, 1) .add(AnchorObjectHorizontalPositionType.Column, 2) .add(AnchorObjectHorizontalPositionType.Character, 3) .add(AnchorObjectHorizontalPositionType.LeftMargin, 4) .add(AnchorObjectHorizontalPositionType.RightMargin, 5) .add(AnchorObjectHorizontalPositionType.InsideMargin, 6) .add(AnchorObjectHorizontalPositionType.OutsideMargin, 7) .get(); } static createFloatingObjectVerticalPositionAlignment() { return new MapCreator() .add(AnchorObjectVerticalPositionAlignment.None, 0) .add(AnchorObjectVerticalPositionAlignment.Top, 1) .add(AnchorObjectVerticalPositionAlignment.Center, 2) .add(AnchorObjectVerticalPositionAlignment.Bottom, 3) .add(AnchorObjectVerticalPositionAlignment.Inside, 4) .add(AnchorObjectVerticalPositionAlignment.Outside, 5) .get(); } static createFloatingObjectVerticalPositionType() { return new MapCreator() .add(AnchorObjectVerticalPositionType.Margin, 0) .add(AnchorObjectVerticalPositionType.Page, 1) .add(AnchorObjectVerticalPositionType.Paragraph, 2) .add(AnchorObjectVerticalPositionType.Line, 3) .add(AnchorObjectVerticalPositionType.TopMargin, 4) .add(AnchorObjectVerticalPositionType.BottomMargin, 5) .add(AnchorObjectVerticalPositionType.InsideMargin, 6) .add(AnchorObjectVerticalPositionType.OutsideMargin, 7) .get(); } static createFloatingObjectRelativeWidthType() { return new MapCreator() .add(RelativeWidthType.Margin, 0) .add(RelativeWidthType.Page, 1) .add(RelativeWidthType.LeftMargin, 2) .add(RelativeWidthType.RightMargin, 3) .add(RelativeWidthType.InsideMargin, 4) .add(RelativeWidthType.OutsideMargin, 5) .get(); } static createFloatingObjectRelativeHeightType() { return new MapCreator() .add(RelativeHeightType.Margin, 0) .add(RelativeHeightType.Page, 1) .add(RelativeHeightType.TopMargin, 2) .add(RelativeHeightType.BottomMargin, 3) .add(RelativeHeightType.InsideMargin, 4) .add(RelativeHeightType.OutsideMargin, 5) .get(); } }