xlsx-1.1.0.1: Simple and incomplete Excel file parser/writer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Xlsx.Writer.Internal

Synopsis

Rendering documents

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

ToElement AutoFilter Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement ColorFilterOptions Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement CustomFilter Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement DynFilterOptions Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement CellFormula Source # 
Instance details

Defined in Codec.Xlsx.Types.Cell

ToElement Formula Source #

See ST_Formula, p. 3873

Instance details

Defined in Codec.Xlsx.Types.Common

ToElement XlsxText Source #

See CT_Rst, p. 3903

Instance details

Defined in Codec.Xlsx.Types.Common

ToElement CfRule Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement CfValue Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement DataBarOptions Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement IconSetOptions Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement MaxCfValue Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement MinCfValue Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement DataValidation Source # 
Instance details

Defined in Codec.Xlsx.Types.DataValidation

ToElement ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement UnresolvedDrawing Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement AreaSeries Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement BarSeries Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement ChartSpace Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement ChartTitle Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement DataLblProps Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement DataMarker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement Legend Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement LineSeries Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement PieSeries Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement ScatterSeries Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement Series Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement LineProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement Point2D Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement PositiveSize2D Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement ShapeProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement TextBody Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement TextCharacterProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement TextParagraph Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement TextRun Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement Transform2D Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement CfPair Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CfPair

ToElement CommentTable Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CommentTable

ToElement CustomProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CustomProperties

ToElement CustomProperty Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CustomProperties

ToElement DvPair Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.DvPair

ToElement Relationship Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.Relationships

ToElement Relationships Source # 
Instance details

Defined in Codec.Xlsx.Types.Internal.Relationships

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

ToElement PageSetup Source #

See CT_PageSetup, p. 3922

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToElement CacheField Source # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable.Internal

ToElement SheetProtection Source # 
Instance details

Defined in Codec.Xlsx.Types.Protection

ToElement RichTextRun Source #

See CT_RElt, p. 3903

Instance details

Defined in Codec.Xlsx.Types.RichText

ToElement RunProperties Source #

See CT_RPrElt, p. 3903

Instance details

Defined in Codec.Xlsx.Types.RichText

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

ToElement SheetView Source #

See CT_SheetView, p. 3913

Instance details

Defined in Codec.Xlsx.Types.SheetViews

ToElement Alignment Source #

See CT_CellAlignment, p. 4482

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement Border Source #

See CT_Border, p. 4483

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement BorderStyle Source #

See CT_BorderPr, p. 4483

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement CellXf Source #

See CT_Xf, p. 4486

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement Color Source #

See CT_Color, p. 4484

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

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

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

ToElement Protection Source #

See CT_CellProtection, p. 4484

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement StyleSheet Source #

See CT_Stylesheet, p. 4482

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement (BlipFillProperties RefId) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

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

ToAttrVal CustomFilterOperator Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToAttrVal DynFilterType Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToAttrVal FilterByBlank Source # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToAttrVal SharedFormulaIndex Source # 
Instance details

Defined in Codec.Xlsx.Types.Cell

ToAttrVal CellRef Source # 
Instance details

Defined in Codec.Xlsx.Types.Common

ToAttrVal ErrorType Source # 
Instance details

Defined in Codec.Xlsx.Types.Common

ToAttrVal RowIndex Source # 
Instance details

Defined in Codec.Xlsx.Types.Common

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

ToAttrVal Inclusion Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToAttrVal NStdDev Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToAttrVal TimePeriod Source # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToAttrVal ErrorStyle Source # 
Instance details

Defined in Codec.Xlsx.Types.DataValidation

ToAttrVal ValidationType Source # 
Instance details

Defined in Codec.Xlsx.Types.DataValidation

ToAttrVal DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToAttrVal EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToAttrVal BarChartGrouping Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal BarDirection Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal ChartGrouping Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal DataMarkerSymbol Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal DispBlanksAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal LegendPos Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal ScatterStyle Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal TickMark Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

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

ToAttrVal PositiveCoordinate Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal TextAnchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal TextVertOverflow Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal TextVertical Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal TextWrap Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

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

ToAttrVal Orientation Source #

See ST_Orientation, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal PageOrder Source #

See ST_PageOrder, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal PaperSize Source #

See paperSize (attribute of pageSetup), p. 1659

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal PrintErrors Source #

See ST_PrintError, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal ConsolidateFunction Source # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable

ToAttrVal FieldSortType Source # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable

ToAttrVal PivotFieldName Source # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable

ToAttrVal LegacyPassword Source # 
Instance details

Defined in Codec.Xlsx.Types.Protection

ToAttrVal PaneState Source #

See ST_PaneState, p. 3929

Instance details

Defined in Codec.Xlsx.Types.SheetViews

ToAttrVal PaneType Source #

See ST_Pane, p. 3914

Instance details

Defined in Codec.Xlsx.Types.SheetViews

ToAttrVal SheetViewType Source #

See ST_SheetViewType, p. 3913

Instance details

Defined in Codec.Xlsx.Types.SheetViews

ToAttrVal CellHorizontalAlignment Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal CellVerticalAlignment Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal FontFamily Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal FontScheme Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal FontUnderline Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal FontVerticalAlignment Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal LineStyle Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal PatternType Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal ReadingOrder Source # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal String Source # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

ToAttrVal Integer Source # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

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

ToAttrVal Int Source # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: Int -> Text Source #

(.=) :: ToAttrVal a => Name -> a -> (Name, Text) 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 #

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