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

Safe Haskell | None
Language | Haskell2010

Codec.Xlsx.Types.Drawing.Common

Synopsis

- newtype Angle = Angle Int
- data TextBody = TextBody {
  - _txbdRotation :: Angle
  - _txbdSpcFirstLastPara :: Bool
  - _txbdVertOverflow :: TextVertOverflow
  - _txbdVertical :: TextVertical
  - _txbdWrap :: TextWrap
  - _txbdAnchor :: TextAnchoring
  - _txbdAnchorCenter :: Bool
  - _txbdParagraphs :: [TextParagraph]
  }
- data TextVertOverflow
  - = TextVertOverflowClip
  - | TextVertOverflowEllipsis
  - | TextVertOverflow
- data TextVertical
  - = TextVerticalEA
  - | TextVerticalHorz
  - | TextVerticalMongolian
  - | TextVertical
  - | TextVertical270
  - | TextVerticalWordArt
  - | TextVerticalWordArtRtl
- data TextWrap
  - = TextWrapNone
  - | TextWrapSquare
- data TextAnchoring
  - = TextAnchoringBottom
  - | TextAnchoringCenter
  - | TextAnchoringDistributed
  - | TextAnchoringJustified
  - | TextAnchoringTop
- data TextParagraph = TextParagraph {
  - _txpaDefCharProps :: Maybe TextCharacterProperties
  - _txpaRuns :: [TextRun]
  }
- data TextCharacterProperties = TextCharacterProperties {
  - _txchBold :: Bool
  - _txchItalic :: Bool
  - _txchUnderline :: Bool
  }
- data TextRun = RegularRun {
  - _txrCharProps :: Maybe TextCharacterProperties
  - _txrText :: Text
  }
- data Coordinate
  - = UnqCoordinate Int
  - | UniversalMeasure UnitIdentifier Double
- data UnitIdentifier
  - = UnitCm
  - | UnitMm
  - | UnitIn
  - | UnitPt
  - | UnitPc
  - | UnitPi
- data Point2D = Point2D {
  - _pt2dX :: Coordinate
  - _pt2dY :: Coordinate
  }
- unqPoint2D :: Int -> Int -> Point2D
- newtype PositiveCoordinate = PositiveCoordinate Integer
- data PositiveSize2D = PositiveSize2D {
  - _ps2dX :: PositiveCoordinate
  - _ps2dY :: PositiveCoordinate
  }
- positiveSize2D :: Integer -> Integer -> PositiveSize2D
- cmSize2D :: Integer -> Integer -> PositiveSize2D
- cm2emu :: Integer -> Integer
- data Transform2D = Transform2D {
  - _trRot :: Angle
  - _trFlipH :: Bool
  - _trFlipV :: Bool
  - _trOffset :: Maybe Point2D
  - _trExtents :: Maybe PositiveSize2D
  }
- data Geometry = PresetGeometry
- data ShapeProperties = ShapeProperties {
  - _spXfrm :: Maybe Transform2D
  - _spGeometry :: Maybe Geometry
  - _spFill :: Maybe FillProperties
  - _spOutline :: Maybe LineProperties
  }
- data LineProperties = LineProperties {
  - _lnFill :: Maybe FillProperties
  - _lnWidth :: Int
  }
- data ColorChoice = RgbColor Text
- data FillProperties
  - = NoFill
  - | SolidFill (Maybe ColorChoice)
- solidRgb :: Text -> FillProperties
- spFill :: Lens' ShapeProperties (Maybe FillProperties)
- spGeometry :: Lens' ShapeProperties (Maybe Geometry)
- spOutline :: Lens' ShapeProperties (Maybe LineProperties)
- spXfrm :: Lens' ShapeProperties (Maybe Transform2D)
- geometryFromNode :: Node -> [Geometry]
- fillPropsFromNode :: Node -> [FillProperties]
- colorChoiceFromNode :: Node -> [ColorChoice]
- coordinate :: MonadFail m => Text -> m Coordinate
- geometryToElement :: Geometry -> Element
- fillPropsToElement :: FillProperties -> Element
- colorChoiceToElement :: ColorChoice -> Element
- a_ :: Text -> Name
- drawingNs :: Text

# 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 |

#### Instances

Instances details

NFData Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: Angle -> () Source #
Generic Angle Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep Angle |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep Angle = D1 ('MetaData "Angle" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'True) (C1 ('MetaCons "Angle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Methods

from :: Angle -> Rep Angle x Source #

to :: Rep Angle x -> Angle Source #

Show Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> Angle -> ShowS Source # show :: Angle -> String Source # showList :: [Angle] -> ShowS Source #
Eq Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: Angle -> Angle -> Bool Source # (/=) :: Angle -> Angle -> Bool Source #
FromAttrVal Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromAttrVal :: Reader Angle Source #
ToAttrVal Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: Angle -> Text Source #
type Rep Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep Angle = D1 ('MetaData "Angle" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'True) (C1 ('MetaCons "Angle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 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

#### Instances

Instances details

NFData TextBody Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextBody -> () Source #
Generic TextBody Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextBody |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextBody = D1 ('MetaData "TextBody" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextBody" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_txbdRotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Angle) :*: S1 ('MetaSel ('Just "_txbdSpcFirstLastPara") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "_txbdVertOverflow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextVertOverflow) :*: S1 ('MetaSel ('Just "_txbdVertical") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextVertical))) :*: ((S1 ('MetaSel ('Just "_txbdWrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextWrap) :*: S1 ('MetaSel ('Just "_txbdAnchor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextAnchoring)) :*: (S1 ('MetaSel ('Just "_txbdAnchorCenter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_txbdParagraphs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextParagraph])))))

Methods

from :: TextBody -> Rep TextBody x Source #

to :: Rep TextBody x -> TextBody Source #

Show TextBody Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextBody -> ShowS Source # show :: TextBody -> String Source # showList :: [TextBody] -> ShowS Source #
Eq TextBody Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextBody -> TextBody -> Bool Source # (/=) :: TextBody -> TextBody -> Bool Source #
FromCursor TextBody Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextBody] Source #
ToElement TextBody Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextBody -> Element Source #
type Rep TextBody Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextBody = D1 ('MetaData "TextBody" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextBody" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_txbdRotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Angle) :*: S1 ('MetaSel ('Just "_txbdSpcFirstLastPara") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "_txbdVertOverflow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextVertOverflow) :*: S1 ('MetaSel ('Just "_txbdVertical") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextVertical))) :*: ((S1 ('MetaSel ('Just "_txbdWrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextWrap) :*: S1 ('MetaSel ('Just "_txbdAnchor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextAnchoring)) :*: (S1 ('MetaSel ('Just "_txbdAnchorCenter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_txbdParagraphs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextParagraph])))))

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.

#### Instances

Instances details

NFData TextVertOverflow Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextVertOverflow -> () Source #
Generic TextVertOverflow Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextVertOverflow |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextVertOverflow = D1 ('MetaData "TextVertOverflow" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextVertOverflowClip" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TextVertOverflowEllipsis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVertOverflow" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: TextVertOverflow -> Rep TextVertOverflow x Source #

to :: Rep TextVertOverflow x -> TextVertOverflow Source #

Show TextVertOverflow Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextVertOverflow -> ShowS Source # show :: TextVertOverflow -> String Source # showList :: [TextVertOverflow] -> ShowS Source #
Eq TextVertOverflow Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextVertOverflow -> TextVertOverflow -> Bool Source # (/=) :: TextVertOverflow -> TextVertOverflow -> Bool Source #
FromAttrVal TextVertOverflow Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromAttrVal :: Reader TextVertOverflow Source #
ToAttrVal TextVertOverflow Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextVertOverflow -> Text Source #
type Rep TextVertOverflow Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextVertOverflow = D1 ('MetaData "TextVertOverflow" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextVertOverflowClip" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TextVertOverflowEllipsis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVertOverflow" 'PrefixI 'False) (U1 :: Type -> Type)))

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.

#### Instances

Instances details

NFData TextVertical Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextVertical -> () Source #
Generic TextVertical Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextVertical |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextVertical = D1 ('MetaData "TextVertical" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "TextVerticalEA" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TextVerticalHorz" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVerticalMongolian" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TextVertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVertical270" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextVerticalWordArt" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVerticalWordArtRtl" 'PrefixI 'False) (U1 :: Type -> Type))))

Methods

from :: TextVertical -> Rep TextVertical x Source #

to :: Rep TextVertical x -> TextVertical Source #

Show TextVertical Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextVertical -> ShowS Source # show :: TextVertical -> String Source # showList :: [TextVertical] -> ShowS Source #
Eq TextVertical Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextVertical -> TextVertical -> Bool Source # (/=) :: TextVertical -> TextVertical -> Bool Source #
FromAttrVal TextVertical Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromAttrVal :: Reader TextVertical Source #
ToAttrVal TextVertical Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextVertical -> Text Source #
type Rep TextVertical Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextVertical = D1 ('MetaData "TextVertical" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "TextVerticalEA" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TextVerticalHorz" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVerticalMongolian" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TextVertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVertical270" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextVerticalWordArt" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextVerticalWordArtRtl" 'PrefixI 'False) (U1 :: Type -> Type))))

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.

#### Instances

Instances details

NFData TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextWrap -> () Source #
Generic TextWrap Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextWrap |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep TextWrap = D1 ('MetaData "TextWrap" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextWrapNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextWrapSquare" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: TextWrap -> Rep TextWrap x Source #

to :: Rep TextWrap x -> TextWrap Source #

Show TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextWrap -> ShowS Source # show :: TextWrap -> String Source # showList :: [TextWrap] -> ShowS Source #
Eq TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextWrap -> TextWrap -> Bool Source # (/=) :: TextWrap -> TextWrap -> Bool Source #
FromAttrVal TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromAttrVal :: Reader TextWrap Source #
ToAttrVal TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextWrap -> Text Source #
type Rep TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep TextWrap = D1 ('MetaData "TextWrap" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextWrapNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextWrapSquare" 'PrefixI 'False) (U1 :: Type -> Type))

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.

#### Instances

Instances details

NFData TextAnchoring Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextAnchoring -> () Source #
Generic TextAnchoring Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextAnchoring |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextAnchoring = D1 ('MetaData "TextAnchoring" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "TextAnchoringBottom" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextAnchoringCenter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextAnchoringDistributed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TextAnchoringJustified" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextAnchoringTop" 'PrefixI 'False) (U1 :: Type -> Type))))

Methods

from :: TextAnchoring -> Rep TextAnchoring x Source #

to :: Rep TextAnchoring x -> TextAnchoring Source #

Show TextAnchoring Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextAnchoring -> ShowS Source # show :: TextAnchoring -> String Source # showList :: [TextAnchoring] -> ShowS Source #
Eq TextAnchoring Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextAnchoring -> TextAnchoring -> Bool Source # (/=) :: TextAnchoring -> TextAnchoring -> Bool Source #
FromAttrVal TextAnchoring Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromAttrVal :: Reader TextAnchoring Source #
ToAttrVal TextAnchoring Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextAnchoring -> Text Source #
type Rep TextAnchoring Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextAnchoring = D1 ('MetaData "TextAnchoring" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "TextAnchoringBottom" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextAnchoringCenter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextAnchoringDistributed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TextAnchoringJustified" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextAnchoringTop" 'PrefixI 'False) (U1 :: Type -> Type))))

data TextParagraph Source #

Constructors

TextParagraph |

Fields

- _txpaDefCharProps :: Maybe TextCharacterProperties
- _txpaRuns :: [TextRun]

#### Instances

Instances details

NFData TextParagraph Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextParagraph -> () Source #
Generic TextParagraph Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextParagraph |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextParagraph = D1 ('MetaData "TextParagraph" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextParagraph" 'PrefixI 'True) (S1 ('MetaSel ('Just "_txpaDefCharProps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TextCharacterProperties)) :*: S1 ('MetaSel ('Just "_txpaRuns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextRun])))

Methods

from :: TextParagraph -> Rep TextParagraph x Source #

to :: Rep TextParagraph x -> TextParagraph Source #

Show TextParagraph Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextParagraph -> ShowS Source # show :: TextParagraph -> String Source # showList :: [TextParagraph] -> ShowS Source #
Eq TextParagraph Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextParagraph -> TextParagraph -> Bool Source # (/=) :: TextParagraph -> TextParagraph -> Bool Source #
FromCursor TextParagraph Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextParagraph] Source #
ToElement TextParagraph Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextParagraph -> Element Source #
type Rep TextParagraph Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextParagraph = D1 ('MetaData "TextParagraph" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextParagraph" 'PrefixI 'True) (S1 ('MetaSel ('Just "_txpaDefCharProps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TextCharacterProperties)) :*: S1 ('MetaSel ('Just "_txpaRuns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextRun])))

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)

Constructors

TextCharacterProperties |

Fields

- _txchBold :: Bool
- _txchItalic :: Bool
- _txchUnderline :: Bool

#### Instances

Instances details

NFData TextCharacterProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextCharacterProperties -> () Source #
Generic TextCharacterProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextCharacterProperties |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextCharacterProperties = D1 ('MetaData "TextCharacterProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextCharacterProperties" 'PrefixI 'True) (S1 ('MetaSel ('Just "_txchBold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_txchItalic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_txchUnderline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

Methods

from :: TextCharacterProperties -> Rep TextCharacterProperties x Source #

to :: Rep TextCharacterProperties x -> TextCharacterProperties Source #

Show TextCharacterProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextCharacterProperties -> ShowS Source # show :: TextCharacterProperties -> String Source # showList :: [TextCharacterProperties] -> ShowS Source #
Eq TextCharacterProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextCharacterProperties -> TextCharacterProperties -> Bool Source # (/=) :: TextCharacterProperties -> TextCharacterProperties -> Bool Source #
FromCursor TextCharacterProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextCharacterProperties] Source #
ToElement TextCharacterProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextCharacterProperties -> Element Source #
type Rep TextCharacterProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextCharacterProperties = D1 ('MetaData "TextCharacterProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "TextCharacterProperties" 'PrefixI 'True) (S1 ('MetaSel ('Just "_txchBold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_txchItalic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_txchUnderline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data TextRun Source #

Text run

TODO: br, fld

Constructors

RegularRun |

Fields

- _txrCharProps :: Maybe TextCharacterProperties
- _txrText :: Text

#### Instances

Instances details

NFData TextRun Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: TextRun -> () Source #
Generic TextRun Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep TextRun |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextRun = D1 ('MetaData "TextRun" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "RegularRun" 'PrefixI 'True) (S1 ('MetaSel ('Just "_txrCharProps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TextCharacterProperties)) :*: S1 ('MetaSel ('Just "_txrText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Methods

from :: TextRun -> Rep TextRun x Source #

to :: Rep TextRun x -> TextRun Source #

Show TextRun Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> TextRun -> ShowS Source # show :: TextRun -> String Source # showList :: [TextRun] -> ShowS Source #
Eq TextRun Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: TextRun -> TextRun -> Bool Source # (/=) :: TextRun -> TextRun -> Bool Source #
FromCursor TextRun Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextRun] Source #
ToElement TextRun Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextRun -> Element Source #
type Rep TextRun Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep TextRun = D1 ('MetaData "TextRun" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "RegularRun" 'PrefixI 'True) (S1 ('MetaSel ('Just "_txrCharProps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TextCharacterProperties)) :*: S1 ('MetaSel ('Just "_txrText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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)

#### Instances

Instances details

NFData Coordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: Coordinate -> () Source #
Generic Coordinate Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep Coordinate |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep Coordinate = D1 ('MetaData "Coordinate" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "UnqCoordinate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "UniversalMeasure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnitIdentifier) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

Methods

from :: Coordinate -> Rep Coordinate x Source #

to :: Rep Coordinate x -> Coordinate Source #

Show Coordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> Coordinate -> ShowS Source # show :: Coordinate -> String Source # showList :: [Coordinate] -> ShowS Source #
Eq Coordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: Coordinate -> Coordinate -> Bool Source # (/=) :: Coordinate -> Coordinate -> Bool Source #
ToAttrVal Coordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: Coordinate -> Text Source #
type Rep Coordinate Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep Coordinate = D1 ('MetaData "Coordinate" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "UnqCoordinate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "UniversalMeasure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnitIdentifier) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

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 |

#### Instances

Instances details

NFData UnitIdentifier Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: UnitIdentifier -> () Source #
Generic UnitIdentifier Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep UnitIdentifier |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep UnitIdentifier = D1 ('MetaData "UnitIdentifier" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "UnitCm" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnitMm" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnitIn" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "UnitPt" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnitPc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnitPi" 'PrefixI 'False) (U1 :: Type -> Type))))

Methods

from :: UnitIdentifier -> Rep UnitIdentifier x Source #

to :: Rep UnitIdentifier x -> UnitIdentifier Source #

Show UnitIdentifier Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> UnitIdentifier -> ShowS Source # show :: UnitIdentifier -> String Source # showList :: [UnitIdentifier] -> ShowS Source #
Eq UnitIdentifier Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: UnitIdentifier -> UnitIdentifier -> Bool Source # (/=) :: UnitIdentifier -> UnitIdentifier -> Bool Source #
type Rep UnitIdentifier Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep UnitIdentifier = D1 ('MetaData "UnitIdentifier" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "UnitCm" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnitMm" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnitIn" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "UnitPt" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnitPc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnitPi" 'PrefixI 'False) (U1 :: Type -> Type))))

data Point2D Source #

Constructors

Point2D |

Fields

- _pt2dX :: Coordinate
- _pt2dY :: Coordinate

#### Instances

Instances details

NFData Point2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: Point2D -> () Source #
Generic Point2D Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep Point2D |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep Point2D = D1 ('MetaData "Point2D" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Point2D" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pt2dX") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coordinate) :*: S1 ('MetaSel ('Just "_pt2dY") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coordinate)))

Methods

from :: Point2D -> Rep Point2D x Source #

to :: Rep Point2D x -> Point2D Source #

Show Point2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> Point2D -> ShowS Source # show :: Point2D -> String Source # showList :: [Point2D] -> ShowS Source #
Eq Point2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: Point2D -> Point2D -> Bool Source # (/=) :: Point2D -> Point2D -> Bool Source #
FromCursor Point2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [Point2D] Source #
ToElement Point2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> Point2D -> Element Source #
type Rep Point2D Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep Point2D = D1 ('MetaData "Point2D" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Point2D" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pt2dX") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coordinate) :*: S1 ('MetaSel ('Just "_pt2dY") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coordinate)))

unqPoint2D :: Int -> Int -> Point2D Source #

newtype PositiveCoordinate Source #

Positive position or length in EMUs, maximu allowed value is 27273042316900. see 20.1.10.41 "ST_PositiveCoordinate (Positive Coordinate)" (p. 2942)

Constructors

PositiveCoordinate Integer |

#### Instances

Instances details

NFData PositiveCoordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: PositiveCoordinate -> () Source #
Generic PositiveCoordinate Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep PositiveCoordinate |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep PositiveCoordinate = D1 ('MetaData "PositiveCoordinate" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'True) (C1 ('MetaCons "PositiveCoordinate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

Methods

from :: PositiveCoordinate -> Rep PositiveCoordinate x Source #

to :: Rep PositiveCoordinate x -> PositiveCoordinate Source #

Show PositiveCoordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> PositiveCoordinate -> ShowS Source # show :: PositiveCoordinate -> String Source # showList :: [PositiveCoordinate] -> ShowS Source #
Eq PositiveCoordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: PositiveCoordinate -> PositiveCoordinate -> Bool Source # (/=) :: PositiveCoordinate -> PositiveCoordinate -> Bool Source #
Ord PositiveCoordinate Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

compare :: PositiveCoordinate -> PositiveCoordinate -> Ordering Source #

(<) :: PositiveCoordinate -> PositiveCoordinate -> Bool Source #

(<=) :: PositiveCoordinate -> PositiveCoordinate -> Bool Source #

(>) :: PositiveCoordinate -> PositiveCoordinate -> Bool Source #

(>=) :: PositiveCoordinate -> PositiveCoordinate -> Bool Source #

max :: PositiveCoordinate -> PositiveCoordinate -> PositiveCoordinate Source #

min :: PositiveCoordinate -> PositiveCoordinate -> PositiveCoordinate Source #

ToAttrVal PositiveCoordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: PositiveCoordinate -> Text Source #
type Rep PositiveCoordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep PositiveCoordinate = D1 ('MetaData "PositiveCoordinate" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'True) (C1 ('MetaCons "PositiveCoordinate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

data PositiveSize2D Source #

Constructors

PositiveSize2D |

Fields

- _ps2dX :: PositiveCoordinate
- _ps2dY :: PositiveCoordinate

#### Instances

Instances details

NFData PositiveSize2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: PositiveSize2D -> () Source #
Generic PositiveSize2D Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep PositiveSize2D |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep PositiveSize2D = D1 ('MetaData "PositiveSize2D" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "PositiveSize2D" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ps2dX") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PositiveCoordinate) :*: S1 ('MetaSel ('Just "_ps2dY") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PositiveCoordinate)))

Methods

from :: PositiveSize2D -> Rep PositiveSize2D x Source #

to :: Rep PositiveSize2D x -> PositiveSize2D Source #

Show PositiveSize2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> PositiveSize2D -> ShowS Source # show :: PositiveSize2D -> String Source # showList :: [PositiveSize2D] -> ShowS Source #
Eq PositiveSize2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: PositiveSize2D -> PositiveSize2D -> Bool Source # (/=) :: PositiveSize2D -> PositiveSize2D -> Bool Source #
FromCursor PositiveSize2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [PositiveSize2D] Source #
ToElement PositiveSize2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> PositiveSize2D -> Element Source #
type Rep PositiveSize2D Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep PositiveSize2D = D1 ('MetaData "PositiveSize2D" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "PositiveSize2D" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ps2dX") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PositiveCoordinate) :*: S1 ('MetaSel ('Just "_ps2dY") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PositiveCoordinate)))

positiveSize2D :: Integer -> Integer -> PositiveSize2D Source #

cmSize2D :: Integer -> Integer -> PositiveSize2D Source #

cm2emu :: Integer -> Integer Source #

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)

#### Instances

Instances details

NFData Transform2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: Transform2D -> () Source #
Generic Transform2D Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep Transform2D |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep Transform2D = D1 ('MetaData "Transform2D" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Transform2D" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_trRot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Angle) :*: S1 ('MetaSel ('Just "_trFlipH") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "_trFlipV") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_trOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Point2D)) :*: S1 ('MetaSel ('Just "_trExtents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PositiveSize2D))))))

Methods

from :: Transform2D -> Rep Transform2D x Source #

to :: Rep Transform2D x -> Transform2D Source #

Show Transform2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> Transform2D -> ShowS Source # show :: Transform2D -> String Source # showList :: [Transform2D] -> ShowS Source #
Eq Transform2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: Transform2D -> Transform2D -> Bool Source # (/=) :: Transform2D -> Transform2D -> Bool Source #
FromCursor Transform2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [Transform2D] Source #
ToElement Transform2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> Transform2D -> Element Source #
type Rep Transform2D Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep Transform2D = D1 ('MetaData "Transform2D" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Transform2D" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_trRot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Angle) :*: S1 ('MetaSel ('Just "_trFlipH") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "_trFlipV") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_trOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Point2D)) :*: S1 ('MetaSel ('Just "_trExtents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PositiveSize2D))))))

data Geometry Source #

Constructors

PresetGeometry |

#### Instances

Instances details

NFData Geometry Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: Geometry -> () Source #
Generic Geometry Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep Geometry |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep Geometry = D1 ('MetaData "Geometry" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "PresetGeometry" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: Geometry -> Rep Geometry x Source #

to :: Rep Geometry x -> Geometry Source #

Show Geometry Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> Geometry -> ShowS Source # show :: Geometry -> String Source # showList :: [Geometry] -> ShowS Source #
Eq Geometry Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: Geometry -> Geometry -> Bool Source # (/=) :: Geometry -> Geometry -> Bool Source #
FromCursor Geometry Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [Geometry] Source #
type Rep Geometry Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep Geometry = D1 ('MetaData "Geometry" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "PresetGeometry" 'PrefixI 'False) (U1 :: Type -> Type))

data ShapeProperties Source #

Constructors

ShapeProperties |

Fields

- _spXfrm :: Maybe Transform2D
- _spGeometry :: Maybe Geometry
- _spFill :: Maybe FillProperties
- _spOutline :: Maybe LineProperties

#### Instances

Instances details

Default ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods def :: ShapeProperties Source #
NFData ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: ShapeProperties -> () Source #
Generic ShapeProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep ShapeProperties |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep ShapeProperties = D1 ('MetaData "ShapeProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "ShapeProperties" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_spXfrm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Transform2D)) :*: S1 ('MetaSel ('Just "_spGeometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Geometry))) :*: (S1 ('MetaSel ('Just "_spFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FillProperties)) :*: S1 ('MetaSel ('Just "_spOutline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LineProperties)))))

Methods

from :: ShapeProperties -> Rep ShapeProperties x Source #

to :: Rep ShapeProperties x -> ShapeProperties Source #

Show ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> ShapeProperties -> ShowS Source # show :: ShapeProperties -> String Source # showList :: [ShapeProperties] -> ShowS Source #
Eq ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: ShapeProperties -> ShapeProperties -> Bool Source # (/=) :: ShapeProperties -> ShapeProperties -> Bool Source #
FromCursor ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [ShapeProperties] Source #
ToElement ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> ShapeProperties -> Element Source #
type Rep ShapeProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep ShapeProperties = D1 ('MetaData "ShapeProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "ShapeProperties" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_spXfrm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Transform2D)) :*: S1 ('MetaSel ('Just "_spGeometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Geometry))) :*: (S1 ('MetaSel ('Just "_spFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FillProperties)) :*: S1 ('MetaSel ('Just "_spOutline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LineProperties)))))

data LineProperties Source #

Specifies an outline style that can be applied to a number of different objects such as shapes and text.

TODO: cap, cmpd, algn, a_EG_LineDashProperties, a_EG_LineJoinProperties, headEnd, tailEnd, extLst

See 20.1.2.2.24 "ln (Outline)" (p. 2744)

Constructors

LineProperties |

Fields

- _lnFill :: Maybe FillProperties
- _lnWidth :: Int

  Specifies the width to be used for the underline stroke. The value is in EMU, is greater of equal to 0 and maximum value is 20116800.

#### Instances

Instances details

Default LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods def :: LineProperties Source #
NFData LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: LineProperties -> () Source #
Generic LineProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep LineProperties |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep LineProperties = D1 ('MetaData "LineProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "LineProperties" 'PrefixI 'True) (S1 ('MetaSel ('Just "_lnFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FillProperties)) :*: S1 ('MetaSel ('Just "_lnWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Methods

from :: LineProperties -> Rep LineProperties x Source #

to :: Rep LineProperties x -> LineProperties Source #

Show LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> LineProperties -> ShowS Source # show :: LineProperties -> String Source # showList :: [LineProperties] -> ShowS Source #
Eq LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: LineProperties -> LineProperties -> Bool Source # (/=) :: LineProperties -> LineProperties -> Bool Source #
FromCursor LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [LineProperties] Source #
ToElement LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> LineProperties -> Element Source #
type Rep LineProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep LineProperties = D1 ('MetaData "LineProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "LineProperties" 'PrefixI 'True) (S1 ('MetaSel ('Just "_lnFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FillProperties)) :*: S1 ('MetaSel ('Just "_lnWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data ColorChoice Source #

Color choice for some drawing element

TODO: scrgbClr, hslClr, sysClr, schemeClr, prstClr

See `EG_ColorChoice` (p. 3996)

Constructors

RgbColor Text | Specifies a color using the red, green, blue RGB color model. Red, green, and blue is expressed as sequence of hex digits, RRGGBB. A perceptual gamma of 2.2 is used. See 20.1.2.3.32 "srgbClr (RGB Color Model - Hex Variant)" (p. 2773)

#### Instances

Instances details

NFData ColorChoice Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: ColorChoice -> () Source #
Generic ColorChoice Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep ColorChoice |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep ColorChoice = D1 ('MetaData "ColorChoice" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "RgbColor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Methods

from :: ColorChoice -> Rep ColorChoice x Source #

to :: Rep ColorChoice x -> ColorChoice Source #

Show ColorChoice Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> ColorChoice -> ShowS Source # show :: ColorChoice -> String Source # showList :: [ColorChoice] -> ShowS Source #
Eq ColorChoice Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: ColorChoice -> ColorChoice -> Bool Source # (/=) :: ColorChoice -> ColorChoice -> Bool Source #
type Rep ColorChoice Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common type Rep ColorChoice = D1 ('MetaData "ColorChoice" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "RgbColor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data FillProperties Source #

Constructors

NoFill | See 20.1.8.44 "noFill (No Fill)" (p. 2872)
SolidFill (Maybe ColorChoice) | Solid fill See 20.1.8.54 "solidFill (Solid Fill)" (p. 2879)

#### Instances

Instances details

NFData FillProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods rnf :: FillProperties -> () Source #
Generic FillProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Associated Types

type Rep FillProperties |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep FillProperties = D1 ('MetaData "FillProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "NoFill" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SolidFill" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ColorChoice))))

Methods

from :: FillProperties -> Rep FillProperties x Source #

to :: Rep FillProperties x -> FillProperties Source #

Show FillProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods showsPrec :: Int -> FillProperties -> ShowS Source # show :: FillProperties -> String Source # showList :: [FillProperties] -> ShowS Source #
Eq FillProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods (==) :: FillProperties -> FillProperties -> Bool Source # (/=) :: FillProperties -> FillProperties -> Bool Source #
FromCursor FillProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [FillProperties] Source #
type Rep FillProperties Source # |

Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

type Rep FillProperties = D1 ('MetaData "FillProperties" "Codec.Xlsx.Types.Drawing.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "NoFill" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SolidFill" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ColorChoice))))

solidRgb :: Text -> FillProperties Source #

solid fill with color specified by hexadecimal RGB color

spFill :: Lens' ShapeProperties (Maybe FillProperties) Source #

spGeometry :: Lens' ShapeProperties (Maybe Geometry) Source #

spOutline :: Lens' ShapeProperties (Maybe LineProperties) Source #

spXfrm :: Lens' ShapeProperties (Maybe Transform2D) Source #

geometryFromNode :: Node -> [Geometry] Source #

fillPropsFromNode :: Node -> [FillProperties] Source #

colorChoiceFromNode :: Node -> [ColorChoice] Source #

coordinate :: MonadFail m => Text -> m Coordinate Source #

geometryToElement :: Geometry -> Element Source #

fillPropsToElement :: FillProperties -> Element Source #

colorChoiceToElement :: ColorChoice -> Element Source #

a_ :: Text -> Name Source #

Add DrawingML namespace to name

drawingNs :: Text Source #