| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Xlsx.Types.StyleSheet
Description
Support for writing (but not reading) style sheets
Synopsis
- data StyleSheet = StyleSheet {
- _styleSheetBorders :: [Border]
- _styleSheetCellXfs :: [CellXf]
- _styleSheetFills :: [Fill]
- _styleSheetFonts :: [Font]
- _styleSheetDxfs :: [Dxf]
- _styleSheetNumFmts :: Map Int FormatCode
- data CellXf = CellXf {
- _cellXfApplyAlignment :: Maybe Bool
- _cellXfApplyBorder :: Maybe Bool
- _cellXfApplyFill :: Maybe Bool
- _cellXfApplyFont :: Maybe Bool
- _cellXfApplyNumberFormat :: Maybe Bool
- _cellXfApplyProtection :: Maybe Bool
- _cellXfBorderId :: Maybe Int
- _cellXfFillId :: Maybe Int
- _cellXfFontId :: Maybe Int
- _cellXfNumFmtId :: Maybe Int
- _cellXfPivotButton :: Maybe Bool
- _cellXfQuotePrefix :: Maybe Bool
- _cellXfId :: Maybe Int
- _cellXfAlignment :: Maybe Alignment
- _cellXfProtection :: Maybe Protection
- minimalStyleSheet :: StyleSheet
- data Alignment = Alignment {
- _alignmentHorizontal :: Maybe CellHorizontalAlignment
- _alignmentIndent :: Maybe Int
- _alignmentJustifyLastLine :: Maybe Bool
- _alignmentReadingOrder :: Maybe ReadingOrder
- _alignmentRelativeIndent :: Maybe Int
- _alignmentShrinkToFit :: Maybe Bool
- _alignmentTextRotation :: Maybe Int
- _alignmentVertical :: Maybe CellVerticalAlignment
- _alignmentWrapText :: Maybe Bool
- data Border = Border {
- _borderDiagonalDown :: Maybe Bool
- _borderDiagonalUp :: Maybe Bool
- _borderOutline :: Maybe Bool
- _borderBottom :: Maybe BorderStyle
- _borderDiagonal :: Maybe BorderStyle
- _borderEnd :: Maybe BorderStyle
- _borderHorizontal :: Maybe BorderStyle
- _borderLeft :: Maybe BorderStyle
- _borderRight :: Maybe BorderStyle
- _borderStart :: Maybe BorderStyle
- _borderTop :: Maybe BorderStyle
- _borderVertical :: Maybe BorderStyle
- data BorderStyle = BorderStyle {}
- data Color = Color {}
- data Dxf = Dxf {}
- data Fill = Fill {}
- data FillPattern = FillPattern {}
- data Font = Font {
- _fontBold :: Maybe Bool
- _fontCharset :: Maybe Int
- _fontColor :: Maybe Color
- _fontCondense :: Maybe Bool
- _fontExtend :: Maybe Bool
- _fontFamily :: Maybe FontFamily
- _fontItalic :: Maybe Bool
- _fontName :: Maybe Text
- _fontOutline :: Maybe Bool
- _fontScheme :: Maybe FontScheme
- _fontShadow :: Maybe Bool
- _fontStrikeThrough :: Maybe Bool
- _fontSize :: Maybe Double
- _fontUnderline :: Maybe FontUnderline
- _fontVertAlign :: Maybe FontVerticalAlignment
- data NumberFormat
- data NumFmt = NumFmt {}
- data ImpliedNumberFormat
- = NfGeneral
- | NfZero
- | Nf2Decimal
- | NfMax3Decimal
- | NfThousandSeparator2Decimal
- | NfPercent
- | NfPercent2Decimal
- | NfExponent2Decimal
- | NfSingleSpacedFraction
- | NfDoubleSpacedFraction
- | NfMmDdYy
- | NfDMmmYy
- | NfDMmm
- | NfMmmYy
- | NfHMm12Hr
- | NfHMmSs12Hr
- | NfHMm
- | NfHMmSs
- | NfMdyHMm
- | NfThousandsNegativeParens
- | NfThousandsNegativeRed
- | NfThousands2DecimalNegativeParens
- | NfThousands2DecimalNegativeRed
- | NfMmSs
- | NfOptHMmSs
- | NfMmSs1Decimal
- | NfExponent1Decimal
- | NfTextPlaceHolder
- | NfOtherImplied Int
- type FormatCode = Text
- data Protection = Protection {}
- data CellHorizontalAlignment
- data CellVerticalAlignment
- data FontFamily
- data FontScheme
- data FontUnderline
- data FontVerticalAlignment
- data LineStyle
- data PatternType
- = PatternTypeDarkDown
- | PatternTypeDarkGray
- | PatternTypeDarkGrid
- | PatternTypeDarkHorizontal
- | PatternTypeDarkTrellis
- | PatternTypeDarkUp
- | PatternTypeDarkVertical
- | PatternTypeGray0625
- | PatternTypeGray125
- | PatternTypeLightDown
- | PatternTypeLightGray
- | PatternTypeLightGrid
- | PatternTypeLightHorizontal
- | PatternTypeLightTrellis
- | PatternTypeLightUp
- | PatternTypeLightVertical
- | PatternTypeMediumGray
- | PatternTypeNone
- | PatternTypeSolid
- data ReadingOrder
- styleSheetBorders :: Lens' StyleSheet [Border]
- styleSheetFonts :: Lens' StyleSheet [Font]
- styleSheetFills :: Lens' StyleSheet [Fill]
- styleSheetCellXfs :: Lens' StyleSheet [CellXf]
- styleSheetDxfs :: Lens' StyleSheet [Dxf]
- styleSheetNumFmts :: Lens' StyleSheet (Map Int FormatCode)
- cellXfApplyAlignment :: Lens' CellXf (Maybe Bool)
- cellXfApplyBorder :: Lens' CellXf (Maybe Bool)
- cellXfApplyFill :: Lens' CellXf (Maybe Bool)
- cellXfApplyFont :: Lens' CellXf (Maybe Bool)
- cellXfApplyNumberFormat :: Lens' CellXf (Maybe Bool)
- cellXfApplyProtection :: Lens' CellXf (Maybe Bool)
- cellXfBorderId :: Lens' CellXf (Maybe Int)
- cellXfFillId :: Lens' CellXf (Maybe Int)
- cellXfFontId :: Lens' CellXf (Maybe Int)
- cellXfNumFmtId :: Lens' CellXf (Maybe Int)
- cellXfPivotButton :: Lens' CellXf (Maybe Bool)
- cellXfQuotePrefix :: Lens' CellXf (Maybe Bool)
- cellXfId :: Lens' CellXf (Maybe Int)
- cellXfAlignment :: Lens' CellXf (Maybe Alignment)
- cellXfProtection :: Lens' CellXf (Maybe Protection)
- dxfAlignment :: Lens' Dxf (Maybe Alignment)
- dxfBorder :: Lens' Dxf (Maybe Border)
- dxfFill :: Lens' Dxf (Maybe Fill)
- dxfFont :: Lens' Dxf (Maybe Font)
- dxfNumFmt :: Lens' Dxf (Maybe NumFmt)
- dxfProtection :: Lens' Dxf (Maybe Protection)
- alignmentHorizontal :: Lens' Alignment (Maybe CellHorizontalAlignment)
- alignmentIndent :: Lens' Alignment (Maybe Int)
- alignmentJustifyLastLine :: Lens' Alignment (Maybe Bool)
- alignmentReadingOrder :: Lens' Alignment (Maybe ReadingOrder)
- alignmentRelativeIndent :: Lens' Alignment (Maybe Int)
- alignmentShrinkToFit :: Lens' Alignment (Maybe Bool)
- alignmentTextRotation :: Lens' Alignment (Maybe Int)
- alignmentVertical :: Lens' Alignment (Maybe CellVerticalAlignment)
- alignmentWrapText :: Lens' Alignment (Maybe Bool)
- borderDiagonalDown :: Lens' Border (Maybe Bool)
- borderDiagonalUp :: Lens' Border (Maybe Bool)
- borderOutline :: Lens' Border (Maybe Bool)
- borderBottom :: Lens' Border (Maybe BorderStyle)
- borderDiagonal :: Lens' Border (Maybe BorderStyle)
- borderEnd :: Lens' Border (Maybe BorderStyle)
- borderHorizontal :: Lens' Border (Maybe BorderStyle)
- borderStart :: Lens' Border (Maybe BorderStyle)
- borderTop :: Lens' Border (Maybe BorderStyle)
- borderVertical :: Lens' Border (Maybe BorderStyle)
- borderLeft :: Lens' Border (Maybe BorderStyle)
- borderRight :: Lens' Border (Maybe BorderStyle)
- borderStyleColor :: Lens' BorderStyle (Maybe Color)
- borderStyleLine :: Lens' BorderStyle (Maybe LineStyle)
- colorAutomatic :: Lens' Color (Maybe Bool)
- colorARGB :: Lens' Color (Maybe Text)
- colorTheme :: Lens' Color (Maybe Int)
- colorTint :: Lens' Color (Maybe Double)
- fillPattern :: Iso' Fill (Maybe FillPattern)
- fillPatternBgColor :: Lens' FillPattern (Maybe Color)
- fillPatternFgColor :: Lens' FillPattern (Maybe Color)
- fillPatternType :: Lens' FillPattern (Maybe PatternType)
- fontBold :: Lens' Font (Maybe Bool)
- fontCharset :: Lens' Font (Maybe Int)
- fontColor :: Lens' Font (Maybe Color)
- fontCondense :: Lens' Font (Maybe Bool)
- fontExtend :: Lens' Font (Maybe Bool)
- fontFamily :: Lens' Font (Maybe FontFamily)
- fontItalic :: Lens' Font (Maybe Bool)
- fontName :: Lens' Font (Maybe Text)
- fontOutline :: Lens' Font (Maybe Bool)
- fontScheme :: Lens' Font (Maybe FontScheme)
- fontShadow :: Lens' Font (Maybe Bool)
- fontStrikeThrough :: Lens' Font (Maybe Bool)
- fontSize :: Lens' Font (Maybe Double)
- fontUnderline :: Lens' Font (Maybe FontUnderline)
- fontVertAlign :: Lens' Font (Maybe FontVerticalAlignment)
- protectionHidden :: Lens' Protection (Maybe Bool)
- protectionLocked :: Lens' Protection (Maybe Bool)
- fmtDecimals :: Int -> NumberFormat
- fmtDecimalsZeroes :: Int -> NumberFormat
- stdNumberFormatId :: ImpliedNumberFormat -> Int
- idToStdNumberFormat :: Int -> Maybe ImpliedNumberFormat
- firstUserNumFmtId :: Int
The main two types
data StyleSheet Source #
StyleSheet for an XML document
Relevant parts of the EMCA standard (4th edition, part 1, https://ecma-international.org/publications-and-standards/standards/ecma-376/), page numbers refer to the page in the PDF rather than the page number as printed on the page):
- Chapter 12, "SpreadsheetML" (p. 74) In particular Section 12.3.20, "Styles Part" (p. 104)
- Chapter 18, "SpreadsheetML Reference Material" (p. 1528) In particular Section 18.8, "Styles" (p. 1754) and Section 18.8.39 "styleSheet" (Style Sheet)" (p. 1796); it is the latter section that specifies the top-level style sheet format.
TODO: the following child elements:
- cellStyles
- cellStyleXfs
- colors
- extLst
- tableStyles
NOTE: Because of undocumented Excel requirements you will probably want to base
your style sheet on minimalStyleSheet (a proper style sheet should have some
contents for details see
SO post).
def for StyleSheet includes no contents at all and this could be a problem
for Excel.
See also:
renderStyleSheetto translate aStyleSheettoStylesformattedfor a higher level interface.parseStyleSheetto translate a rawStyleSheetintoStyles
Constructors
| StyleSheet | |
Fields
| |
Instances
Cell formatting
TODO: The extLst field is currently unsupported.
Section 18.8.45 "xf (Format)" (p. 1800)
Constructors
| CellXf | |
Fields
| |
Instances
| Default CellXf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData CellXf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic CellXf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show CellXf Source # | |||||
| Eq CellXf Source # | |||||
| Ord CellXf Source # | |||||
| FromCursor CellXf Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [CellXf] Source # | |||||
| ToElement CellXf Source # | See | ||||
| type Rep CellXf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep CellXf = D1 ('MetaData "CellXf" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "CellXf" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_cellXfApplyAlignment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "_cellXfApplyBorder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_cellXfApplyFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "_cellXfApplyFont") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_cellXfApplyNumberFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "_cellXfApplyProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_cellXfBorderId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))) :*: (((S1 ('MetaSel ('Just "_cellXfFillId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_cellXfFontId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "_cellXfNumFmtId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_cellXfPivotButton") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "_cellXfQuotePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_cellXfId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "_cellXfAlignment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Alignment)) :*: S1 ('MetaSel ('Just "_cellXfProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Protection))))))) | |||||
minimalStyleSheet :: StyleSheet Source #
Minimal style sheet
Excel expects some minimal definitions in the stylesheet; you probably want to define your own stylesheets based on this one.
This more-or-less follows the recommendations at http://stackoverflow.com/questions/26050708/minimal-style-sheet-for-excel-open-xml-with-dates, but with some additions based on experimental evidence.
Supporting record types
Alignment
See 18.8.1 "alignment (Alignment)" (p. 1754)
Constructors
| Alignment | |
Fields
| |
Instances
| Default Alignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData Alignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic Alignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Alignment Source # | |||||
| Eq Alignment Source # | |||||
| Ord Alignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| FromCursor Alignment Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Alignment] Source # | |||||
| ToElement Alignment Source # | See | ||||
| type Rep Alignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Alignment = D1 ('MetaData "Alignment" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Alignment" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_alignmentHorizontal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CellHorizontalAlignment)) :*: S1 ('MetaSel ('Just "_alignmentIndent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "_alignmentJustifyLastLine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_alignmentReadingOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReadingOrder)))) :*: ((S1 ('MetaSel ('Just "_alignmentRelativeIndent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_alignmentShrinkToFit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "_alignmentTextRotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "_alignmentVertical") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CellVerticalAlignment)) :*: S1 ('MetaSel ('Just "_alignmentWrapText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))) | |||||
Expresses a single set of cell border formats (left, right, top, bottom,
diagonal). Color is optional. When missing, automatic is implied.
See 18.8.4 "border (Border)" (p. 1759)
Constructors
| Border | |
Fields
| |
Instances
| Default Border Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData Border Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic Border Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Border Source # | |||||
| Eq Border Source # | |||||
| Ord Border Source # | |||||
| FromCursor Border Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Border] Source # | |||||
| ToElement Border Source # | See | ||||
| type Rep Border Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Border = D1 ('MetaData "Border" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Border" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_borderDiagonalDown") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "_borderDiagonalUp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_borderOutline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "_borderBottom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)) :*: (S1 ('MetaSel ('Just "_borderDiagonal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)) :*: S1 ('MetaSel ('Just "_borderEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle))))) :*: ((S1 ('MetaSel ('Just "_borderHorizontal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)) :*: (S1 ('MetaSel ('Just "_borderLeft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)) :*: S1 ('MetaSel ('Just "_borderRight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)))) :*: (S1 ('MetaSel ('Just "_borderStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)) :*: (S1 ('MetaSel ('Just "_borderTop") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle)) :*: S1 ('MetaSel ('Just "_borderVertical") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BorderStyle))))))) | |||||
data BorderStyle Source #
Border style
See CT_BorderPr (p. 3934)
Constructors
| BorderStyle | |
Fields | |
Instances
| Default BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods def :: BorderStyle Source # | |||||
| NFData BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: BorderStyle -> () Source # | |||||
| Generic BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: BorderStyle -> Rep BorderStyle x Source # to :: Rep BorderStyle x -> BorderStyle Source # | |||||
| Show BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: BorderStyle -> BorderStyle -> Bool Source # (/=) :: BorderStyle -> BorderStyle -> Bool Source # | |||||
| Ord BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: BorderStyle -> BorderStyle -> Ordering Source # (<) :: BorderStyle -> BorderStyle -> Bool Source # (<=) :: BorderStyle -> BorderStyle -> Bool Source # (>) :: BorderStyle -> BorderStyle -> Bool Source # (>=) :: BorderStyle -> BorderStyle -> Bool Source # max :: BorderStyle -> BorderStyle -> BorderStyle Source # min :: BorderStyle -> BorderStyle -> BorderStyle Source # | |||||
| FromCursor BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [BorderStyle] Source # | |||||
| ToElement BorderStyle Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| type Rep BorderStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep BorderStyle = D1 ('MetaData "BorderStyle" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "BorderStyle" 'PrefixI 'True) (S1 ('MetaSel ('Just "_borderStyleColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Color)) :*: S1 ('MetaSel ('Just "_borderStyleLine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LineStyle)))) | |||||
One of the colors associated with the data bar or color scale.
The indexed attribute (used for backwards compatibility only) is not
modelled here.
See 18.3.1.15 "color (Data Bar Color)" (p. 1608)
Constructors
| Color | |
Fields
| |
Instances
| Default Color Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData Color Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic Color Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Color Source # | |||||
| Eq Color Source # | |||||
| Ord Color Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| FromCursor Color Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Color] Source # | |||||
| FromXenoNode Color Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| ToElement Color Source # | See | ||||
| type Rep Color Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Color = D1 ('MetaData "Color" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Color" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_colorAutomatic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_colorARGB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "_colorTheme") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_colorTint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))))) | |||||
A single dxf record, expressing incremental formatting to be applied.
Section 18.8.14, "dxf (Formatting)" (p. 1765)
Constructors
| Dxf | |
Fields
| |
Instances
| Default Dxf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData Dxf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic Dxf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Dxf Source # | |||||
| Eq Dxf Source # | |||||
| Ord Dxf Source # | |||||
| FromCursor Dxf Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Dxf] Source # | |||||
| ToElement Dxf Source # | See | ||||
| type Rep Dxf Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Dxf = D1 ('MetaData "Dxf" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Dxf" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_dxfFont") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Font)) :*: (S1 ('MetaSel ('Just "_dxfNumFmt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe NumFmt)) :*: S1 ('MetaSel ('Just "_dxfFill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Fill)))) :*: (S1 ('MetaSel ('Just "_dxfAlignment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Alignment)) :*: (S1 ('MetaSel ('Just "_dxfBorder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Border)) :*: S1 ('MetaSel ('Just "_dxfProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Protection)))))) | |||||
This element specifies fill formatting.
TODO: Gradient fills (18.8.4) are currently unsupported. If we add them,
then the spec says (CT_Fill, p. 3935), _either_ a gradient _or_ a solid
fill pattern should be specified.
Section 18.8.20, "fill (Fill)" (p. 1768)
Constructors
| Fill | |
Fields | |
Instances
| Default Fill Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData Fill Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic Fill Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Fill Source # | |||||
| Eq Fill Source # | |||||
| Ord Fill Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| FromCursor Fill Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Fill] Source # | |||||
| ToElement Fill Source # | See | ||||
| type Rep Fill Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Fill = D1 ('MetaData "Fill" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Fill" 'PrefixI 'True) (S1 ('MetaSel ('Just "_fillPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FillPattern)))) | |||||
data FillPattern Source #
This element is used to specify cell fill information for pattern and solid color cell fills. For solid cell fills (no pattern), fgColor is used. For cell fills with patterns specified, then the cell fill color is specified by the bgColor element.
Section 18.8.32 "patternFill (Pattern)" (p. 1793)
Constructors
| FillPattern | |
Fields | |
Instances
| Default FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods def :: FillPattern Source # | |||||
| NFData FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: FillPattern -> () Source # | |||||
| Generic FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: FillPattern -> Rep FillPattern x Source # to :: Rep FillPattern x -> FillPattern Source # | |||||
| Show FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: FillPattern -> FillPattern -> Bool Source # (/=) :: FillPattern -> FillPattern -> Bool Source # | |||||
| Ord FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: FillPattern -> FillPattern -> Ordering Source # (<) :: FillPattern -> FillPattern -> Bool Source # (<=) :: FillPattern -> FillPattern -> Bool Source # (>) :: FillPattern -> FillPattern -> Bool Source # (>=) :: FillPattern -> FillPattern -> Bool Source # max :: FillPattern -> FillPattern -> FillPattern Source # min :: FillPattern -> FillPattern -> FillPattern Source # | |||||
| FromCursor FillPattern Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [FillPattern] Source # | |||||
| ToElement FillPattern Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| type Rep FillPattern Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep FillPattern = D1 ('MetaData "FillPattern" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "FillPattern" 'PrefixI 'True) (S1 ('MetaSel ('Just "_fillPatternBgColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Color)) :*: (S1 ('MetaSel ('Just "_fillPatternFgColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Color)) :*: S1 ('MetaSel ('Just "_fillPatternType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PatternType))))) | |||||
This element defines the properties for one of the fonts used in this workbook.
Section 18.2.22 "font (Font)" (p. 1769)
Constructors
| Font | |
Fields
| |
Instances
| Default Font Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| NFData Font Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic Font Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Font Source # | |||||
| Eq Font Source # | |||||
| Ord Font Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| FromCursor Font Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Font] Source # | |||||
| ToElement Font Source # | See | ||||
| type Rep Font Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Font = D1 ('MetaData "Font" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Font" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_fontBold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "_fontCharset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_fontColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Color)))) :*: ((S1 ('MetaSel ('Just "_fontCondense") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_fontExtend") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "_fontFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FontFamily)) :*: S1 ('MetaSel ('Just "_fontItalic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :*: (((S1 ('MetaSel ('Just "_fontName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_fontOutline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "_fontScheme") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FontScheme)) :*: S1 ('MetaSel ('Just "_fontShadow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "_fontStrikeThrough") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_fontSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "_fontUnderline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FontUnderline)) :*: S1 ('MetaSel ('Just "_fontVertAlign") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FontVerticalAlignment))))))) | |||||
data NumberFormat Source #
This type gives a high-level version of representation of number format
used in Format.
Constructors
| StdNumberFormat ImpliedNumberFormat | |
| UserNumberFormat FormatCode |
Instances
| NFData NumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: NumberFormat -> () Source # | |||||
| Generic NumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: NumberFormat -> Rep NumberFormat x Source # to :: Rep NumberFormat x -> NumberFormat Source # | |||||
| Show NumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq NumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: NumberFormat -> NumberFormat -> Bool Source # (/=) :: NumberFormat -> NumberFormat -> Bool Source # | |||||
| Ord NumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: NumberFormat -> NumberFormat -> Ordering Source # (<) :: NumberFormat -> NumberFormat -> Bool Source # (<=) :: NumberFormat -> NumberFormat -> Bool Source # (>) :: NumberFormat -> NumberFormat -> Bool Source # (>=) :: NumberFormat -> NumberFormat -> Bool Source # max :: NumberFormat -> NumberFormat -> NumberFormat Source # min :: NumberFormat -> NumberFormat -> NumberFormat Source # | |||||
| type Rep NumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep NumberFormat = D1 ('MetaData "NumberFormat" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "StdNumberFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ImpliedNumberFormat)) :+: C1 ('MetaCons "UserNumberFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormatCode))) | |||||
This element specifies number format properties which indicate how to format and render the numeric value of a cell.
Section 18.8.30 "numFmt (Number Format)" (p. 1777)
Constructors
| NumFmt | |
Fields
| |
Instances
| NFData NumFmt Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic NumFmt Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show NumFmt Source # | |||||
| Eq NumFmt Source # | |||||
| Ord NumFmt Source # | |||||
| FromCursor NumFmt Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [NumFmt] Source # | |||||
| ToElement NumFmt Source # | See | ||||
| type Rep NumFmt Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep NumFmt = D1 ('MetaData "NumFmt" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "NumFmt" 'PrefixI 'True) (S1 ('MetaSel ('Just "_numFmtId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "_numFmtCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormatCode))) | |||||
data ImpliedNumberFormat Source #
Implied number formats
Note: This only implements the predefined values for 18.2.30 "All Languages",
other built-in format ids (with id < firstUserNumFmtId) are stored in NfOtherBuiltin
Constructors
| NfGeneral | 0 General |
| NfZero | 1 0 |
| Nf2Decimal | 2 0.00 |
| NfMax3Decimal | 3 #,##0 |
| NfThousandSeparator2Decimal | 4 #,##0.00 |
| NfPercent | 9 0% |
| NfPercent2Decimal | 10 0.00% |
| NfExponent2Decimal | 11 0.00E+00 |
| NfSingleSpacedFraction | 12 # ?/? |
| NfDoubleSpacedFraction | 13 # ??/?? |
| NfMmDdYy | 14 mm-dd-yy |
| NfDMmmYy | 15 d-mmm-yy |
| NfDMmm | 16 d-mmm |
| NfMmmYy | 17 mmm-yy |
| NfHMm12Hr | 18 h:mm AM/PM |
| NfHMmSs12Hr | 19 h:mm:ss AM/PM |
| NfHMm | 20 h:mm |
| NfHMmSs | 21 h:mm:ss |
| NfMdyHMm | 22 m/d/yy h:mm |
| NfThousandsNegativeParens | 37 #,##0 ;(#,##0) |
| NfThousandsNegativeRed | 38 #,##0 ;[Red](#,##0) |
| NfThousands2DecimalNegativeParens | 39 #,##0.00;(#,##0.00) |
| NfThousands2DecimalNegativeRed | 40 #,##0.00;[Red](#,##0.00) |
| NfMmSs | 45 mm:ss |
| NfOptHMmSs | 46 [h]:mm:ss |
| NfMmSs1Decimal | 47 mmss.0 |
| NfExponent1Decimal | 48 ##0.0E+0 |
| NfTextPlaceHolder | 49 @ |
| NfOtherImplied Int | other (non local-neutral?) built-in format (id < 164) |
Instances
| NFData ImpliedNumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: ImpliedNumberFormat -> () Source # | |||||
| Generic ImpliedNumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: ImpliedNumberFormat -> Rep ImpliedNumberFormat x Source # to :: Rep ImpliedNumberFormat x -> ImpliedNumberFormat Source # | |||||
| Show ImpliedNumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq ImpliedNumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: ImpliedNumberFormat -> ImpliedNumberFormat -> Bool Source # (/=) :: ImpliedNumberFormat -> ImpliedNumberFormat -> Bool Source # | |||||
| Ord ImpliedNumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: ImpliedNumberFormat -> ImpliedNumberFormat -> Ordering Source # (<) :: ImpliedNumberFormat -> ImpliedNumberFormat -> Bool Source # (<=) :: ImpliedNumberFormat -> ImpliedNumberFormat -> Bool Source # (>) :: ImpliedNumberFormat -> ImpliedNumberFormat -> Bool Source # (>=) :: ImpliedNumberFormat -> ImpliedNumberFormat -> Bool Source # max :: ImpliedNumberFormat -> ImpliedNumberFormat -> ImpliedNumberFormat Source # min :: ImpliedNumberFormat -> ImpliedNumberFormat -> ImpliedNumberFormat Source # | |||||
| type Rep ImpliedNumberFormat Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep ImpliedNumberFormat = D1 ('MetaData "ImpliedNumberFormat" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((((C1 ('MetaCons "NfGeneral" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NfZero" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Nf2Decimal" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NfMax3Decimal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfThousandSeparator2Decimal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NfPercent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfPercent2Decimal" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "NfExponent2Decimal" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NfSingleSpacedFraction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfDoubleSpacedFraction" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NfMmDdYy" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfDMmmYy" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NfDMmm" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfMmmYy" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "NfHMm12Hr" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NfHMmSs12Hr" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfHMm" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NfHMmSs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfMdyHMm" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NfThousandsNegativeParens" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfThousandsNegativeRed" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "NfThousands2DecimalNegativeParens" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfThousands2DecimalNegativeRed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NfMmSs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfOptHMmSs" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NfMmSs1Decimal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfExponent1Decimal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NfTextPlaceHolder" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NfOtherImplied" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))))) | |||||
type FormatCode = Text Source #
A number format code.
Section 18.8.30, "numFmt (Number Format)" (p. 1777)
data Protection Source #
Protection properties
Contains protection properties associated with the cell. Each cell has protection properties that can be set. The cell protection properties do not take effect unless the sheet has been protected.
Section 18.8.33, "protection (Protection Properties)", p. 1793
Constructors
| Protection | |
Fields | |
Instances
| Default Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods def :: Protection Source # | |||||
| NFData Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: Protection -> () Source # | |||||
| Generic Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: Protection -> Protection -> Bool Source # (/=) :: Protection -> Protection -> Bool Source # | |||||
| Ord Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: Protection -> Protection -> Ordering Source # (<) :: Protection -> Protection -> Bool Source # (<=) :: Protection -> Protection -> Bool Source # (>) :: Protection -> Protection -> Bool Source # (>=) :: Protection -> Protection -> Bool Source # max :: Protection -> Protection -> Protection Source # min :: Protection -> Protection -> Protection Source # | |||||
| FromCursor Protection Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Protection] Source # | |||||
| ToElement Protection Source # | See | ||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| type Rep Protection Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep Protection = D1 ('MetaData "Protection" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Protection" 'PrefixI 'True) (S1 ('MetaSel ('Just "_protectionHidden") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_protectionLocked") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) | |||||
Supporting enumerations
data CellHorizontalAlignment Source #
Horizontal alignment in cells
See 18.18.40 "ST_HorizontalAlignment (Horizontal Alignment Type)" (p. 2459)
Constructors
| CellHorizontalAlignmentCenter | |
| CellHorizontalAlignmentCenterContinuous | |
| CellHorizontalAlignmentDistributed | |
| CellHorizontalAlignmentFill | |
| CellHorizontalAlignmentGeneral | |
| CellHorizontalAlignmentJustify | |
| CellHorizontalAlignmentLeft | |
| CellHorizontalAlignmentRight |
Instances
| NFData CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: CellHorizontalAlignment -> () Source # | |||||
| Generic CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: CellHorizontalAlignment -> Rep CellHorizontalAlignment x Source # to :: Rep CellHorizontalAlignment x -> CellHorizontalAlignment Source # | |||||
| Show CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: CellHorizontalAlignment -> CellHorizontalAlignment -> Bool Source # (/=) :: CellHorizontalAlignment -> CellHorizontalAlignment -> Bool Source # | |||||
| Ord CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: CellHorizontalAlignment -> CellHorizontalAlignment -> Ordering Source # (<) :: CellHorizontalAlignment -> CellHorizontalAlignment -> Bool Source # (<=) :: CellHorizontalAlignment -> CellHorizontalAlignment -> Bool Source # (>) :: CellHorizontalAlignment -> CellHorizontalAlignment -> Bool Source # (>=) :: CellHorizontalAlignment -> CellHorizontalAlignment -> Bool Source # max :: CellHorizontalAlignment -> CellHorizontalAlignment -> CellHorizontalAlignment Source # min :: CellHorizontalAlignment -> CellHorizontalAlignment -> CellHorizontalAlignment Source # | |||||
| FromAttrVal CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| ToAttrVal CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| type Rep CellHorizontalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep CellHorizontalAlignment = D1 ('MetaData "CellHorizontalAlignment" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (((C1 ('MetaCons "CellHorizontalAlignmentCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CellHorizontalAlignmentCenterContinuous" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CellHorizontalAlignmentDistributed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CellHorizontalAlignmentFill" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CellHorizontalAlignmentGeneral" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CellHorizontalAlignmentJustify" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CellHorizontalAlignmentLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CellHorizontalAlignmentRight" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
data CellVerticalAlignment Source #
Vertical alignment in cells
See 18.18.88 "ST_VerticalAlignment (Vertical Alignment Types)" (p. 2512)
Constructors
| CellVerticalAlignmentBottom | |
| CellVerticalAlignmentCenter | |
| CellVerticalAlignmentDistributed | |
| CellVerticalAlignmentJustify | |
| CellVerticalAlignmentTop |
Instances
| NFData CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: CellVerticalAlignment -> () Source # | |||||
| Generic CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: CellVerticalAlignment -> Rep CellVerticalAlignment x Source # to :: Rep CellVerticalAlignment x -> CellVerticalAlignment Source # | |||||
| Show CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: CellVerticalAlignment -> CellVerticalAlignment -> Bool Source # (/=) :: CellVerticalAlignment -> CellVerticalAlignment -> Bool Source # | |||||
| Ord CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: CellVerticalAlignment -> CellVerticalAlignment -> Ordering Source # (<) :: CellVerticalAlignment -> CellVerticalAlignment -> Bool Source # (<=) :: CellVerticalAlignment -> CellVerticalAlignment -> Bool Source # (>) :: CellVerticalAlignment -> CellVerticalAlignment -> Bool Source # (>=) :: CellVerticalAlignment -> CellVerticalAlignment -> Bool Source # max :: CellVerticalAlignment -> CellVerticalAlignment -> CellVerticalAlignment Source # min :: CellVerticalAlignment -> CellVerticalAlignment -> CellVerticalAlignment Source # | |||||
| FromAttrVal CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| ToAttrVal CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| type Rep CellVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep CellVerticalAlignment = D1 ('MetaData "CellVerticalAlignment" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "CellVerticalAlignmentBottom" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CellVerticalAlignmentCenter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CellVerticalAlignmentDistributed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CellVerticalAlignmentJustify" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CellVerticalAlignmentTop" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
data FontFamily Source #
Font family
See 18.8.18 "family (Font Family)" (p. 1766) and 17.18.30 "ST_FontFamily (Font Family Value)" (p. 1388)
Constructors
| FontFamilyNotApplicable | Family is not applicable |
| FontFamilyRoman | Proportional font with serifs |
| FontFamilySwiss | Proportional font without serifs |
| FontFamilyModern | Monospace font with or without serifs |
| FontFamilyScript | Script font designed to mimic the appearance of handwriting |
| FontFamilyDecorative | Novelty font |
Instances
| NFData FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: FontFamily -> () Source # | |||||
| Generic FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: FontFamily -> FontFamily -> Bool Source # (/=) :: FontFamily -> FontFamily -> Bool Source # | |||||
| Ord FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: FontFamily -> FontFamily -> Ordering Source # (<) :: FontFamily -> FontFamily -> Bool Source # (<=) :: FontFamily -> FontFamily -> Bool Source # (>) :: FontFamily -> FontFamily -> Bool Source # (>=) :: FontFamily -> FontFamily -> Bool Source # max :: FontFamily -> FontFamily -> FontFamily Source # min :: FontFamily -> FontFamily -> FontFamily Source # | |||||
| FromAttrVal FontFamily Source # | See 18.18.94 "ST_FontFamily (Font Family)" (p. 2517) | ||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| FromAttrBs FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromAttrBs :: ByteString -> Either Text FontFamily Source # | |||||
| ToAttrVal FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontFamily -> Text Source # | |||||
| type Rep FontFamily Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep FontFamily = D1 ('MetaData "FontFamily" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "FontFamilyNotApplicable" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FontFamilyRoman" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FontFamilySwiss" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "FontFamilyModern" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FontFamilyScript" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FontFamilyDecorative" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
data FontScheme Source #
Font scheme
See 18.18.33 "ST_FontScheme (Font scheme Styles)" (p. 2456)
Constructors
| FontSchemeMajor | This font is the major font for this theme. |
| FontSchemeMinor | This font is the minor font for this theme. |
| FontSchemeNone | This font is not a theme font. |
Instances
| NFData FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: FontScheme -> () Source # | |||||
| Generic FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: FontScheme -> FontScheme -> Bool Source # (/=) :: FontScheme -> FontScheme -> Bool Source # | |||||
| Ord FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: FontScheme -> FontScheme -> Ordering Source # (<) :: FontScheme -> FontScheme -> Bool Source # (<=) :: FontScheme -> FontScheme -> Bool Source # (>) :: FontScheme -> FontScheme -> Bool Source # (>=) :: FontScheme -> FontScheme -> Bool Source # max :: FontScheme -> FontScheme -> FontScheme Source # min :: FontScheme -> FontScheme -> FontScheme Source # | |||||
| FromAttrVal FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| FromAttrBs FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromAttrBs :: ByteString -> Either Text FontScheme Source # | |||||
| ToAttrVal FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontScheme -> Text Source # | |||||
| type Rep FontScheme Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep FontScheme = D1 ('MetaData "FontScheme" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "FontSchemeMajor" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FontSchemeMinor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FontSchemeNone" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data FontUnderline Source #
Font underline property
See 18.4.13 "u (Underline)", p 1728
Constructors
| FontUnderlineSingle | |
| FontUnderlineDouble | |
| FontUnderlineSingleAccounting | |
| FontUnderlineDoubleAccounting | |
| FontUnderlineNone |
Instances
| NFData FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: FontUnderline -> () Source # | |||||
| Generic FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: FontUnderline -> Rep FontUnderline x Source # to :: Rep FontUnderline x -> FontUnderline Source # | |||||
| Show FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: FontUnderline -> FontUnderline -> Bool Source # (/=) :: FontUnderline -> FontUnderline -> Bool Source # | |||||
| Ord FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: FontUnderline -> FontUnderline -> Ordering Source # (<) :: FontUnderline -> FontUnderline -> Bool Source # (<=) :: FontUnderline -> FontUnderline -> Bool Source # (>) :: FontUnderline -> FontUnderline -> Bool Source # (>=) :: FontUnderline -> FontUnderline -> Bool Source # max :: FontUnderline -> FontUnderline -> FontUnderline Source # min :: FontUnderline -> FontUnderline -> FontUnderline Source # | |||||
| FromAttrVal FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| FromAttrBs FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromAttrBs :: ByteString -> Either Text FontUnderline Source # | |||||
| ToAttrVal FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontUnderline -> Text Source # | |||||
| type Rep FontUnderline Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep FontUnderline = D1 ('MetaData "FontUnderline" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "FontUnderlineSingle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FontUnderlineDouble" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FontUnderlineSingleAccounting" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FontUnderlineDoubleAccounting" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FontUnderlineNone" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
data FontVerticalAlignment Source #
Vertical alignment
See 22.9.2.17 "ST_VerticalAlignRun (Vertical Positioning Location)" (p. 3794)
Constructors
| FontVerticalAlignmentBaseline | |
| FontVerticalAlignmentSubscript | |
| FontVerticalAlignmentSuperscript |
Instances
| NFData FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: FontVerticalAlignment -> () Source # | |||||
| Generic FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: FontVerticalAlignment -> Rep FontVerticalAlignment x Source # to :: Rep FontVerticalAlignment x -> FontVerticalAlignment Source # | |||||
| Show FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: FontVerticalAlignment -> FontVerticalAlignment -> Bool Source # (/=) :: FontVerticalAlignment -> FontVerticalAlignment -> Bool Source # | |||||
| Ord FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: FontVerticalAlignment -> FontVerticalAlignment -> Ordering Source # (<) :: FontVerticalAlignment -> FontVerticalAlignment -> Bool Source # (<=) :: FontVerticalAlignment -> FontVerticalAlignment -> Bool Source # (>) :: FontVerticalAlignment -> FontVerticalAlignment -> Bool Source # (>=) :: FontVerticalAlignment -> FontVerticalAlignment -> Bool Source # max :: FontVerticalAlignment -> FontVerticalAlignment -> FontVerticalAlignment Source # min :: FontVerticalAlignment -> FontVerticalAlignment -> FontVerticalAlignment Source # | |||||
| FromAttrVal FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| FromAttrBs FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods fromAttrBs :: ByteString -> Either Text FontVerticalAlignment Source # | |||||
| ToAttrVal FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| type Rep FontVerticalAlignment Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep FontVerticalAlignment = D1 ('MetaData "FontVerticalAlignment" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "FontVerticalAlignmentBaseline" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FontVerticalAlignmentSubscript" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FontVerticalAlignmentSuperscript" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Constructors
| LineStyleDashDot | |
| LineStyleDashDotDot | |
| LineStyleDashed | |
| LineStyleDotted | |
| LineStyleDouble | |
| LineStyleHair | |
| LineStyleMedium | |
| LineStyleMediumDashDot | |
| LineStyleMediumDashDotDot | |
| LineStyleMediumDashed | |
| LineStyleNone | |
| LineStyleSlantDashDot | |
| LineStyleThick | |
| LineStyleThin |
Instances
| NFData LineStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Generic LineStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
| |||||
| Show LineStyle Source # | |||||
| Eq LineStyle Source # | |||||
| Ord LineStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| FromAttrVal LineStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| ToAttrVal LineStyle Source # | |||||
| type Rep LineStyle Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep LineStyle = D1 ('MetaData "LineStyle" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (((C1 ('MetaCons "LineStyleDashDot" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LineStyleDashDotDot" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LineStyleDashed" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "LineStyleDotted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LineStyleDouble" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LineStyleHair" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LineStyleMedium" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "LineStyleMediumDashDot" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LineStyleMediumDashDotDot" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LineStyleMediumDashed" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "LineStyleNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LineStyleSlantDashDot" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LineStyleThick" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LineStyleThin" 'PrefixI 'False) (U1 :: Type -> Type))))) | |||||
data PatternType Source #
Indicates the style of fill pattern being used for a cell format.
Section 18.18.55 "ST_PatternType (Pattern Type)" (p. 2472)
Constructors
| PatternTypeDarkDown | |
| PatternTypeDarkGray | |
| PatternTypeDarkGrid | |
| PatternTypeDarkHorizontal | |
| PatternTypeDarkTrellis | |
| PatternTypeDarkUp | |
| PatternTypeDarkVertical | |
| PatternTypeGray0625 | |
| PatternTypeGray125 | |
| PatternTypeLightDown | |
| PatternTypeLightGray | |
| PatternTypeLightGrid | |
| PatternTypeLightHorizontal | |
| PatternTypeLightTrellis | |
| PatternTypeLightUp | |
| PatternTypeLightVertical | |
| PatternTypeMediumGray | |
| PatternTypeNone | |
| PatternTypeSolid |
Instances
| NFData PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: PatternType -> () Source # | |||||
| Generic PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: PatternType -> Rep PatternType x Source # to :: Rep PatternType x -> PatternType Source # | |||||
| Show PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: PatternType -> PatternType -> Bool Source # (/=) :: PatternType -> PatternType -> Bool Source # | |||||
| Ord PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: PatternType -> PatternType -> Ordering Source # (<) :: PatternType -> PatternType -> Bool Source # (<=) :: PatternType -> PatternType -> Bool Source # (>) :: PatternType -> PatternType -> Bool Source # (>=) :: PatternType -> PatternType -> Bool Source # max :: PatternType -> PatternType -> PatternType Source # min :: PatternType -> PatternType -> PatternType Source # | |||||
| FromAttrVal PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| ToAttrVal PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: PatternType -> Text Source # | |||||
| type Rep PatternType Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep PatternType = D1 ('MetaData "PatternType" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((((C1 ('MetaCons "PatternTypeDarkDown" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeDarkGray" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PatternTypeDarkGrid" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeDarkHorizontal" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PatternTypeDarkTrellis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeDarkUp" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PatternTypeDarkVertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PatternTypeGray0625" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeGray125" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "PatternTypeLightDown" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeLightGray" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PatternTypeLightGrid" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PatternTypeLightHorizontal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeLightTrellis" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PatternTypeLightUp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeLightVertical" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PatternTypeMediumGray" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PatternTypeNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PatternTypeSolid" 'PrefixI 'False) (U1 :: Type -> Type)))))) | |||||
data ReadingOrder Source #
Reading order
See 18.8.1 "alignment (Alignment)" (p. 1754, esp. p. 1755)
Instances
| NFData ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods rnf :: ReadingOrder -> () Source # | |||||
| Generic ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Associated Types
Methods from :: ReadingOrder -> Rep ReadingOrder x Source # to :: Rep ReadingOrder x -> ReadingOrder Source # | |||||
| Show ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet | |||||
| Eq ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods (==) :: ReadingOrder -> ReadingOrder -> Bool Source # (/=) :: ReadingOrder -> ReadingOrder -> Bool Source # | |||||
| Ord ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods compare :: ReadingOrder -> ReadingOrder -> Ordering Source # (<) :: ReadingOrder -> ReadingOrder -> Bool Source # (<=) :: ReadingOrder -> ReadingOrder -> Bool Source # (>) :: ReadingOrder -> ReadingOrder -> Bool Source # (>=) :: ReadingOrder -> ReadingOrder -> Bool Source # max :: ReadingOrder -> ReadingOrder -> ReadingOrder Source # min :: ReadingOrder -> ReadingOrder -> ReadingOrder Source # | |||||
| FromAttrVal ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods | |||||
| ToAttrVal ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: ReadingOrder -> Text Source # | |||||
| type Rep ReadingOrder Source # | |||||
Defined in Codec.Xlsx.Types.StyleSheet type Rep ReadingOrder = D1 ('MetaData "ReadingOrder" "Codec.Xlsx.Types.StyleSheet" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "ReadingOrderContextDependent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ReadingOrderLeftToRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReadingOrderRightToLeft" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Lenses
StyleSheet
styleSheetDxfs :: Lens' StyleSheet [Dxf] Source #
CellXf
Dxf
dxfProtection :: Lens' Dxf (Maybe Protection) Source #
Alignment
Border
borderLeft :: Lens' Border (Maybe BorderStyle) Source #
BorderStyle
Color
Fill
fillPattern :: Iso' Fill (Maybe FillPattern) Source #
FillPattern
Font
fontFamily :: Lens' Font (Maybe FontFamily) Source #
fontScheme :: Lens' Font (Maybe FontScheme) Source #
Protection
Helpers
Number formats
fmtDecimals :: Int -> NumberFormat Source #
Basic number format with predefined number of decimals as format code of number format in xlsx should be less than 255 characters number of decimals shouldn't be more than 253
fmtDecimalsZeroes :: Int -> NumberFormat Source #
Basic number format with predefined number of decimals.
Works like fmtDecimals with the only difference that extra zeroes are
displayed when number of digits after the point is less than the number
of digits specified in the format