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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Codec.Xlsx.Writer.Internal

Contents

- Rendering documents
- Rendering elements
- Rendering attributes
- Dealing with namespaces
- Misc

Synopsis

- class ToDocument a where
  - toDocument :: a -> Document
- documentFromElement :: Text -> Element -> Document
- documentFromNsElement :: Text -> Text -> Element -> Document
- documentFromNsPrefElement :: Text -> Text -> Maybe Text -> Element -> Document
- class ToElement a where
  - toElement :: Name -> a -> Element
- countedElementList :: Name -> [Element] -> Element
- nonEmptyCountedElementList :: Name -> [Element] -> Maybe Element
- elementList :: Name -> [(Name, Text)] -> [Element] -> Element
- elementListSimple :: Name -> [Element] -> Element
- nonEmptyElListSimple :: Name -> [Element] -> Maybe Element
- leafElement :: Name -> [(Name, Text)] -> Element
- emptyElement :: Name -> Element
- elementContent0 :: Name -> [(Name, Text)] -> Text -> Element
- elementContent :: Name -> Text -> Element
- elementContentPreserved :: Name -> Text -> Element
- elementValue :: ToAttrVal a => Name -> a -> Element
- elementValueDef :: (Eq a, ToAttrVal a) => Name -> a -> a -> Element
- class ToAttrVal a where
  - toAttrVal :: a -> Text
- (.=) :: ToAttrVal a => Name -> a -> (Name, Text)
- (.=?) :: ToAttrVal a => Name -> Maybe a -> Maybe (Name, Text)
- setAttr :: ToAttrVal a => Name -> a -> Element -> Element
- addNS :: Text -> Maybe Text -> Element -> Element
- mainNamespace :: Text
- txti :: Integral a => a -> Text
- txtb :: Bool -> Text
- txtd :: Double -> Text
- justNonDef :: Eq a => a -> a -> Maybe a
- justTrue :: Bool -> Maybe Bool
- justFalse :: Bool -> Maybe Bool

# Rendering documents

class ToDocument a where Source #

Methods

toDocument :: a -> Document Source #

#### Instances

Instances details

ToDocument UnresolvedDrawing Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toDocument :: UnresolvedDrawing -> Document Source #
ToDocument ChartSpace Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toDocument :: ChartSpace -> Document Source #
ToDocument CommentTable Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.CommentTable Methods toDocument :: CommentTable -> Document Source #
ToDocument CustomProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.CustomProperties Methods toDocument :: CustomProperties -> Document Source #
ToDocument Relationships Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.Relationships Methods toDocument :: Relationships -> Document Source #
ToDocument SharedStringTable Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.SharedStringTable Methods toDocument :: SharedStringTable -> Document Source #
ToDocument StyleSheet Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toDocument :: StyleSheet -> Document Source #

documentFromElement :: Text -> Element -> Document Source #

documentFromNsElement :: Text -> Text -> Element -> Document Source #

documentFromNsPrefElement :: Text -> Text -> Maybe Text -> Element -> Document Source #

# Rendering elements

class ToElement a where Source #

Methods

toElement :: Name -> a -> Element Source #

#### Instances

Instances details

ToElement ColumnsProperties Source # |
Instance details Defined in Codec.Xlsx.Types Methods toElement :: Name -> ColumnsProperties -> Element Source #
ToElement AutoFilter Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toElement :: Name -> AutoFilter -> Element Source #
ToElement ColorFilterOptions Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toElement :: Name -> ColorFilterOptions -> Element Source #
ToElement CustomFilter Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toElement :: Name -> CustomFilter -> Element Source #
ToElement DynFilterOptions Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toElement :: Name -> DynFilterOptions -> Element Source #
ToElement CellFormula Source # |
Instance details Defined in Codec.Xlsx.Types.Cell Methods toElement :: Name -> CellFormula -> Element Source #
ToElement Formula Source # | See `ST_Formula`, p. 3873
Instance details Defined in Codec.Xlsx.Types.Common Methods toElement :: Name -> Formula -> Element Source #
ToElement XlsxText Source # | See `CT_Rst`, p. 3903
Instance details Defined in Codec.Xlsx.Types.Common Methods toElement :: Name -> XlsxText -> Element Source #
ToElement CfRule Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toElement :: Name -> CfRule -> Element Source #
ToElement CfValue Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toElement :: Name -> CfValue -> Element Source #
ToElement DataBarOptions Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toElement :: Name -> DataBarOptions -> Element Source #
ToElement IconSetOptions Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toElement :: Name -> IconSetOptions -> Element Source #
ToElement MaxCfValue Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toElement :: Name -> MaxCfValue -> Element Source #
ToElement MinCfValue Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toElement :: Name -> MinCfValue -> Element Source #
ToElement DataValidation Source # |
Instance details Defined in Codec.Xlsx.Types.DataValidation Methods toElement :: Name -> DataValidation -> Element Source #
ToElement ClientData Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> ClientData -> Element Source #
ToElement GraphNonVisual Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> GraphNonVisual -> Element Source #
ToElement Marker Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> Marker -> Element Source #
ToElement NonVisualDrawingProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> NonVisualDrawingProperties -> Element Source #
ToElement PicNonVisual Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> PicNonVisual -> Element Source #
ToElement UnresolvedDrawing Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> UnresolvedDrawing -> Element Source #
ToElement AreaSeries Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> AreaSeries -> Element Source #
ToElement BarSeries Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> BarSeries -> Element Source #
ToElement ChartSpace Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> ChartSpace -> Element Source #
ToElement ChartTitle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> ChartTitle -> Element Source #
ToElement DataLblProps Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> DataLblProps -> Element Source #
ToElement DataMarker Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> DataMarker -> Element Source #
ToElement Legend Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> Legend -> Element Source #
ToElement LineSeries Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> LineSeries -> Element Source #
ToElement PieSeries Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> PieSeries -> Element Source #
ToElement ScatterSeries Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> ScatterSeries -> Element Source #
ToElement Series Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toElement :: Name -> Series -> Element Source #
ToElement LineProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> LineProperties -> Element Source #
ToElement Point2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> Point2D -> Element Source #
ToElement PositiveSize2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> PositiveSize2D -> Element Source #
ToElement ShapeProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> ShapeProperties -> Element Source #
ToElement TextBody Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextBody -> Element Source #
ToElement TextCharacterProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextCharacterProperties -> Element Source #
ToElement TextParagraph Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextParagraph -> Element Source #
ToElement TextRun Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> TextRun -> Element Source #
ToElement Transform2D Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toElement :: Name -> Transform2D -> Element Source #
ToElement CfPair Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.CfPair Methods toElement :: Name -> CfPair -> Element Source #
ToElement CommentTable Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.CommentTable Methods toElement :: Name -> CommentTable -> Element Source #
ToElement CustomProperties Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.CustomProperties Methods toElement :: Name -> CustomProperties -> Element Source #
ToElement CustomProperty Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.CustomProperties Methods toElement :: Name -> CustomProperty -> Element Source #
ToElement DvPair Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.DvPair Methods toElement :: Name -> DvPair -> Element Source #
ToElement Relationship Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.Relationships Methods toElement :: Name -> Relationship -> Element Source #
ToElement Relationships Source # |
Instance details Defined in Codec.Xlsx.Types.Internal.Relationships Methods toElement :: Name -> Relationships -> Element Source #
ToElement SharedStringTable Source # | See `CT_Sst`, p. 3902. TODO: The `count` and `uniqCount` attributes are currently unsupported.
Instance details Defined in Codec.Xlsx.Types.Internal.SharedStringTable Methods toElement :: Name -> SharedStringTable -> Element Source #
ToElement PageSetup Source # | See `CT_PageSetup`, p. 3922
Instance details Defined in Codec.Xlsx.Types.PageSetup Methods toElement :: Name -> PageSetup -> Element Source #
ToElement CacheField Source # |
Instance details Defined in Codec.Xlsx.Types.PivotTable.Internal Methods toElement :: Name -> CacheField -> Element Source #
ToElement SheetProtection Source # |
Instance details Defined in Codec.Xlsx.Types.Protection Methods toElement :: Name -> SheetProtection -> Element Source #
ToElement RichTextRun Source # | See `CT_RElt`, p. 3903
Instance details Defined in Codec.Xlsx.Types.RichText Methods toElement :: Name -> RichTextRun -> Element Source #
ToElement RunProperties Source # | See `CT_RPrElt`, p. 3903
Instance details Defined in Codec.Xlsx.Types.RichText Methods toElement :: Name -> RunProperties -> Element Source #
ToElement Pane Source # | See `CT_Pane`, p. 3913
Instance details Defined in Codec.Xlsx.Types.SheetViews Methods toElement :: Name -> Pane -> Element Source #
ToElement Selection Source # | See `CT_Selection`, p. 3914
Instance details Defined in Codec.Xlsx.Types.SheetViews Methods toElement :: Name -> Selection -> Element Source #
ToElement SheetView Source # | See `CT_SheetView`, p. 3913
Instance details Defined in Codec.Xlsx.Types.SheetViews Methods toElement :: Name -> SheetView -> Element Source #
ToElement Alignment Source # | See `CT_CellAlignment`, p. 4482
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Alignment -> Element Source #
ToElement Border Source # | See `CT_Border`, p. 4483
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Border -> Element Source #
ToElement BorderStyle Source # | See `CT_BorderPr`, p. 4483
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> BorderStyle -> Element Source #
ToElement CellXf Source # | See `CT_Xf`, p. 4486
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> CellXf -> Element Source #
ToElement Color Source # | See `CT_Color`, p. 4484
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Color -> Element Source #
ToElement Dxf Source # | See `CT_Dxf`, p. 3937
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Dxf -> Element Source #
ToElement Fill Source # | See `CT_Fill`, p. 4484
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Fill -> Element Source #
ToElement FillPattern Source # | See `CT_PatternFill`, p. 4484
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> FillPattern -> Element Source #
ToElement Font Source # | See `CT_Font`, p. 4489
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Font -> Element Source #
ToElement NumFmt Source # | See `CT_NumFmt`, p. 3936
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> NumFmt -> Element Source #
ToElement Protection Source # | See `CT_CellProtection`, p. 4484
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> Protection -> Element Source #
ToElement StyleSheet Source # | See `CT_Stylesheet`, p. 4482
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toElement :: Name -> StyleSheet -> Element Source #
ToElement (BlipFillProperties RefId) Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toElement :: Name -> BlipFillProperties RefId -> Element Source #

countedElementList :: Name -> [Element] -> Element Source #

nonEmptyCountedElementList :: Name -> [Element] -> Maybe Element Source #

elementList :: Name -> [(Name, Text)] -> [Element] -> Element Source #

elementListSimple :: Name -> [Element] -> Element Source #

nonEmptyElListSimple :: Name -> [Element] -> Maybe Element Source #

leafElement :: Name -> [(Name, Text)] -> Element Source #

emptyElement :: Name -> Element Source #

elementContent0 :: Name -> [(Name, Text)] -> Text -> Element Source #

elementContent :: Name -> Text -> Element Source #

elementContentPreserved :: Name -> Text -> Element Source #

elementValue :: ToAttrVal a => Name -> a -> Element Source #

elementValueDef :: (Eq a, ToAttrVal a) => Name -> a -> a -> Element Source #

# Rendering attributes

class ToAttrVal a where Source #

Methods

toAttrVal :: a -> Text Source #

#### Instances

Instances details

ToAttrVal Text Source # |
Instance details Defined in Codec.Xlsx.Writer.Internal Methods toAttrVal :: Text -> Text Source #
ToAttrVal SheetState Source # |
Instance details Defined in Codec.Xlsx.Types Methods toAttrVal :: SheetState -> Text Source #
ToAttrVal CustomFilterOperator Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toAttrVal :: CustomFilterOperator -> Text Source #
ToAttrVal DynFilterType Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toAttrVal :: DynFilterType -> Text Source #
ToAttrVal FilterByBlank Source # |
Instance details Defined in Codec.Xlsx.Types.AutoFilter Methods toAttrVal :: FilterByBlank -> Text Source #
ToAttrVal SharedFormulaIndex Source # |
Instance details Defined in Codec.Xlsx.Types.Cell Methods toAttrVal :: SharedFormulaIndex -> Text Source #
ToAttrVal CellRef Source # |
Instance details Defined in Codec.Xlsx.Types.Common Methods toAttrVal :: CellRef -> Text Source #
ToAttrVal ErrorType Source # |
Instance details Defined in Codec.Xlsx.Types.Common Methods toAttrVal :: ErrorType -> Text Source #
ToAttrVal RowIndex Source # |
Instance details Defined in Codec.Xlsx.Types.Common Methods toAttrVal :: RowIndex -> Text Source #
ToAttrVal SqRef Source # |
Instance details Defined in Codec.Xlsx.Types.Common Methods toAttrVal :: SqRef -> Text Source #
ToAttrVal IconSetType Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toAttrVal :: IconSetType -> Text Source #
ToAttrVal Inclusion Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toAttrVal :: Inclusion -> Text Source #
ToAttrVal NStdDev Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toAttrVal :: NStdDev -> Text Source #
ToAttrVal TimePeriod Source # |
Instance details Defined in Codec.Xlsx.Types.ConditionalFormatting Methods toAttrVal :: TimePeriod -> Text Source #
ToAttrVal ErrorStyle Source # |
Instance details Defined in Codec.Xlsx.Types.DataValidation Methods toAttrVal :: ErrorStyle -> Text Source #
ToAttrVal ValidationType Source # |
Instance details Defined in Codec.Xlsx.Types.DataValidation Methods toAttrVal :: ValidationType -> Text Source #
ToAttrVal DrawingElementId Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toAttrVal :: DrawingElementId -> Text Source #
ToAttrVal EditAs Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing Methods toAttrVal :: EditAs -> Text Source #
ToAttrVal BarChartGrouping Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: BarChartGrouping -> Text Source #
ToAttrVal BarDirection Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: BarDirection -> Text Source #
ToAttrVal ChartGrouping Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: ChartGrouping -> Text Source #
ToAttrVal DataMarkerSymbol Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: DataMarkerSymbol -> Text Source #
ToAttrVal DispBlanksAs Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: DispBlanksAs -> Text Source #
ToAttrVal LegendPos Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: LegendPos -> Text Source #
ToAttrVal ScatterStyle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: ScatterStyle -> Text Source #
ToAttrVal TickMark Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Chart Methods toAttrVal :: TickMark -> Text Source #
ToAttrVal Angle Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: Angle -> Text Source #
ToAttrVal Coordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: Coordinate -> Text Source #
ToAttrVal PositiveCoordinate Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: PositiveCoordinate -> Text Source #
ToAttrVal TextAnchoring Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextAnchoring -> Text Source #
ToAttrVal TextVertOverflow Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextVertOverflow -> Text Source #
ToAttrVal TextVertical Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextVertical -> Text Source #
ToAttrVal TextWrap Source # |
Instance details Defined in Codec.Xlsx.Types.Drawing.Common Methods toAttrVal :: TextWrap -> Text Source #
ToAttrVal RefId Source # |
Instance details Defined in Codec.Xlsx.Types.Internal Methods toAttrVal :: RefId -> Text Source #
ToAttrVal CellComments Source # | See `ST_CellComments`, p. 3923
Instance details Defined in Codec.Xlsx.Types.PageSetup Methods toAttrVal :: CellComments -> Text Source #
ToAttrVal Orientation Source # | See `ST_Orientation`, p. 3923
Instance details Defined in Codec.Xlsx.Types.PageSetup Methods toAttrVal :: Orientation -> Text Source #
ToAttrVal PageOrder Source # | See `ST_PageOrder`, p. 3923
Instance details Defined in Codec.Xlsx.Types.PageSetup Methods toAttrVal :: PageOrder -> Text Source #
ToAttrVal PaperSize Source # | See `paperSize` (attribute of `pageSetup`), p. 1659
Instance details Defined in Codec.Xlsx.Types.PageSetup Methods toAttrVal :: PaperSize -> Text Source #
ToAttrVal PrintErrors Source # | See `ST_PrintError`, p. 3923
Instance details Defined in Codec.Xlsx.Types.PageSetup Methods toAttrVal :: PrintErrors -> Text Source #
ToAttrVal ConsolidateFunction Source # |
Instance details Defined in Codec.Xlsx.Types.PivotTable Methods toAttrVal :: ConsolidateFunction -> Text Source #
ToAttrVal FieldSortType Source # |
Instance details Defined in Codec.Xlsx.Types.PivotTable Methods toAttrVal :: FieldSortType -> Text Source #
ToAttrVal PivotFieldName Source # |
Instance details Defined in Codec.Xlsx.Types.PivotTable Methods toAttrVal :: PivotFieldName -> Text Source #
ToAttrVal LegacyPassword Source # |
Instance details Defined in Codec.Xlsx.Types.Protection Methods toAttrVal :: LegacyPassword -> Text Source #
ToAttrVal PaneState Source # | See `ST_PaneState`, p. 3929
Instance details Defined in Codec.Xlsx.Types.SheetViews Methods toAttrVal :: PaneState -> Text Source #
ToAttrVal PaneType Source # | See `ST_Pane`, p. 3914
Instance details Defined in Codec.Xlsx.Types.SheetViews Methods toAttrVal :: PaneType -> Text Source #
ToAttrVal SheetViewType Source # | See `ST_SheetViewType`, p. 3913
Instance details Defined in Codec.Xlsx.Types.SheetViews Methods toAttrVal :: SheetViewType -> Text Source #
ToAttrVal CellHorizontalAlignment Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: CellHorizontalAlignment -> Text Source #
ToAttrVal CellVerticalAlignment Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: CellVerticalAlignment -> Text Source #
ToAttrVal FontFamily Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontFamily -> Text Source #
ToAttrVal FontScheme Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontScheme -> Text Source #
ToAttrVal FontUnderline Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontUnderline -> Text Source #
ToAttrVal FontVerticalAlignment Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: FontVerticalAlignment -> Text Source #
ToAttrVal LineStyle Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: LineStyle -> Text Source #
ToAttrVal PatternType Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: PatternType -> Text Source #
ToAttrVal ReadingOrder Source # |
Instance details Defined in Codec.Xlsx.Types.StyleSheet Methods toAttrVal :: ReadingOrder -> Text Source #
ToAttrVal String Source # |
Instance details Defined in Codec.Xlsx.Writer.Internal Methods toAttrVal :: String -> Text Source #
ToAttrVal Integer Source # |
Instance details Defined in Codec.Xlsx.Writer.Internal Methods toAttrVal :: Integer -> Text Source #
ToAttrVal Bool Source # |
Instance details Defined in Codec.Xlsx.Writer.Internal Methods toAttrVal :: Bool -> Text Source #
ToAttrVal Double Source # |
Instance details Defined in Codec.Xlsx.Writer.Internal Methods toAttrVal :: Double -> Text Source #
ToAttrVal Int Source # |
Instance details Defined in Codec.Xlsx.Writer.Internal Methods toAttrVal :: Int -> Text Source #

(.=) :: ToAttrVal a => Name -> a -> (Name, Text) Source #

(.=?) :: ToAttrVal a => Name -> Maybe a -> Maybe (Name, Text) Source #

setAttr :: ToAttrVal a => Name -> a -> Element -> Element Source #

# Dealing with namespaces

addNS :: Text -> Maybe Text -> Element -> Element Source #

Set the namespace for the entire document

This follows the same policy that the rest of the xlsx package uses.

mainNamespace :: Text Source #

The main namespace for Excel

# Misc

txti :: Integral a => a -> Text Source #

txtb :: Bool -> Text Source #

txtd :: Double -> Text Source #

justNonDef :: Eq a => a -> a -> Maybe a Source #

justTrue :: Bool -> Maybe Bool Source #

justFalse :: Bool -> Maybe Bool Source #