xlsx-0.4.1: Simple and incomplete Excel file parser/writer

Safe HaskellNone
LanguageHaskell2010

Codec.Xlsx.Types.Drawing.Common

Synopsis

Documentation

newtype Angle Source #

This simple type represents an angle in 60,000ths of a degree. Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

Constructors

Angle Int 

data TextBody Source #

A string with rich text formatting

TODO: horzOverflow, lIns, tIns, rIns, bIns, numCol, spcCol, rtlCol, fromWordArt, forceAA, upright, compatLnSpc, prstTxWarp, a_EG_TextAutofit, scene3d, a_EG_Text3D, extLst

See CT_TextBody (p. 4034)

Constructors

TextBody 

Fields

  • _txbdRotation :: Angle

    Specifies the rotation that is being applied to the text within the bounding box.

  • _txbdSpcFirstLastPara :: Bool

    Specifies whether the before and after paragraph spacing defined by the user is to be respected.

  • _txbdVertOverflow :: TextVertOverflow

    Determines whether the text can flow out of the bounding box vertically.

  • _txbdVertical :: TextVertical

    Determines if the text within the given text body should be displayed vertically.

  • _txbdWrap :: TextWrap

    Specifies the wrapping options to be used for this text body.

  • _txbdAnchor :: TextAnchoring

    Specifies the anchoring position of the txBody within the shape.

  • _txbdAnchorCenter :: Bool

    Specifies the centering of the text box. The way it works fundamentally is to determine the smallest possible "bounds box" for the text and then to center that "bounds box" accordingly. This is different than paragraph alignment, which aligns the text within the "bounds box" for the text.

  • _txbdParagraphs :: [TextParagraph]

    Paragraphs of text within the containing text body

data TextVertOverflow Source #

Text vertical overflow See 20.1.10.83 "ST_TextVertOverflowType (Text Vertical Overflow)" (p. 3083)

Constructors

TextVertOverflowClip

Pay attention to top and bottom barriers. Provide no indication that there is text which is not visible.

TextVertOverflowEllipsis

Pay attention to top and bottom barriers. Use an ellipsis to denote that there is text which is not visible.

TextVertOverflow

Overflow the text and pay no attention to top and bottom barriers.

data TextVertical Source #

If there is vertical text, determines what kind of vertical text is going to be used.

See 20.1.10.82 "ST_TextVerticalType (Vertical Text Types)" (p. 3083)

Constructors

TextVerticalEA

A special version of vertical text, where some fonts are displayed as if rotated by 90 degrees while some fonts (mostly East Asian) are displayed vertical.

TextVerticalHorz

Horizontal text. This should be default.

TextVerticalMongolian

A special version of vertical text, where some fonts are displayed as if rotated by 90 degrees while some fonts (mostly East Asian) are displayed vertical. The difference between this and the TextVerticalEA is the text flows top down then LEFT RIGHT, instead of RIGHT LEFT

TextVertical

Determines if all of the text is vertical orientation (each line is 90 degrees rotated clockwise, so it goes from top to bottom; each next line is to the left from the previous one).

TextVertical270

Determines if all of the text is vertical orientation (each line is 270 degrees rotated clockwise, so it goes from bottom to top; each next line is to the right from the previous one).

TextVerticalWordArt

Determines if all of the text is vertical ("one letter on top of another").

TextVerticalWordArtRtl

Specifies that vertical WordArt should be shown from right to left rather than left to right.

data TextWrap Source #

Text wrapping types

See 20.1.10.84 "ST_TextWrappingType (Text Wrapping Types)" (p. 3084)

Constructors

TextWrapNone

No wrapping occurs on this text body. Words spill out without paying attention to the bounding rectangle boundaries.

TextWrapSquare

Determines whether we wrap words within the bounding rectangle.

data TextAnchoring Source #

This type specifies a list of available anchoring types for text.

See 20.1.10.59 "ST_TextAnchoringType (Text Anchoring Types)" (p. 3058)

Constructors

TextAnchoringBottom

Anchor the text at the bottom of the bounding rectangle.

TextAnchoringCenter

Anchor the text at the middle of the bounding rectangle.

TextAnchoringDistributed

Anchor the text so that it is distributed vertically. When text is horizontal, this spaces out the actual lines of text and is almost always identical in behavior to TextAnchoringJustified (special case: if only 1 line, then anchored in middle). When text is vertical, then it distributes the letters vertically. This is different than TextAnchoringJustified, because it always forces distribution of the words, even if there are only one or two words in a line.

TextAnchoringJustified

Anchor the text so that it is justified vertically. When text is horizontal, this spaces out the actual lines of text and is almost always identical in behavior to TextAnchoringDistributed (special case: if only 1 line, then anchored at top). When text is vertical, then it justifies the letters vertically. This is different than TextAnchoringDistributed because in some cases such as very little text in a line, it does not justify.

TextAnchoringTop

Anchor the text at the top of the bounding rectangle.

data TextCharacterProperties Source #

Text character properties

TODO: kumimoji, lang, altLang, sz, strike, kern, cap, spc, normalizeH, baseline, noProof, dirty, err, smtClean, smtId, bmk, ln, a_EG_FillProperties, a_EG_EffectProperties, highlight, a_EG_TextUnderlineLine, a_EG_TextUnderlineFill, latin, ea, cs, sym, hlinkClick, hlinkMouseOver, rtl, extLst

See CT_TextCharacterProperties (p. 4039)

data Coordinate Source #

This simple type represents a one dimensional position or length

See 20.1.10.16 "ST_Coordinate (Coordinate)" (p. 2921)

Constructors

UnqCoordinate Int

see 20.1.10.19 "ST_CoordinateUnqualified (Coordinate)" (p. 2922)

UniversalMeasure UnitIdentifier Double

see 22.9.2.15 "ST_UniversalMeasure (Universal Measurement)" (p. 3793)

data UnitIdentifier Source #

Units used in "Universal measure" coordinates see 22.9.2.15 "ST_UniversalMeasure (Universal Measurement)" (p. 3793)

Constructors

UnitCm 
UnitMm 
UnitIn 
UnitPt 
UnitPc 
UnitPi 

data Transform2D Source #

Constructors

Transform2D 

Fields

  • _trRot :: Angle

    Specifies the rotation of the Graphic Frame.

  • _trFlipH :: Bool

    Specifies a horizontal flip. When true, this attribute defines that the shape is flipped horizontally about the center of its bounding box.

  • _trFlipV :: Bool

    Specifies a vertical flip. When true, this attribute defines that the shape is flipped vetically about the center of its bounding box.

  • _trOffset :: Maybe Point2D

    See 20.1.7.4 "off (Offset)" (p. 2847)

  • _trExtents :: Maybe PositiveSize2D

    See 20.1.7.3 "ext (Extents)" (p. 2846) or 20.5.2.14 "ext (Shape Extent)" (p. 3165)

data FillProperties Source #

Constructors

NoFill

See 20.1.8.44 "noFill (No Fill)" (p. 2872)

SolidFill

Solid fill TODO: colors See 20.1.8.54 "solidFill (Solid Fill)" (p. 2879)

a_ :: Text -> Name Source #

Add DrawingML namespace to name