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

Safe HaskellNone
LanguageHaskell2010

Codec.Xlsx.Writer.Internal

Contents

Synopsis

Rendering documents

Rendering elements

class ToElement a where #

Methods

toElement :: Name -> a -> Element #

Instances
ToElement Protection #

See CT_CellProtection, p. 4484

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement NumFmt #

See CT_NumFmt, p. 3936

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> NumFmt -> Element #

ToElement Dxf #

See CT_Dxf, p. 3937

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> Dxf -> Element #

ToElement Font #

See CT_Font, p. 4489

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> Font -> Element #

ToElement FillPattern #

See CT_PatternFill, p. 4484

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement Fill #

See CT_Fill, p. 4484

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> Fill -> Element #

ToElement Color #

See CT_Color, p. 4484

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> Color -> Element #

ToElement BorderStyle #

See CT_BorderPr, p. 4483

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement Border #

See CT_Border, p. 4483

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> Border -> Element #

ToElement Alignment #

See CT_CellAlignment, p. 4482

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> Alignment -> Element #

ToElement CellXf #

See CT_Xf, p. 4486

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toElement :: Name -> CellXf -> Element #

ToElement StyleSheet #

See CT_Stylesheet, p. 4482

Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToElement RunProperties #

See CT_RPrElt, p. 3903

Instance details

Defined in Codec.Xlsx.Types.RichText

ToElement RichTextRun #

See CT_RElt, p. 3903

Instance details

Defined in Codec.Xlsx.Types.RichText

ToElement SheetProtection # 
Instance details

Defined in Codec.Xlsx.Types.Protection

ToElement PageSetup #

See CT_PageSetup, p. 3922

Instance details

Defined in Codec.Xlsx.Types.PageSetup

Methods

toElement :: Name -> PageSetup -> Element #

ToElement CustomProperty # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CustomProperties

ToElement CustomProperties # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CustomProperties

ToElement Relationships # 
Instance details

Defined in Codec.Xlsx.Types.Internal.Relationships

ToElement Relationship # 
Instance details

Defined in Codec.Xlsx.Types.Internal.Relationships

ToElement LineProperties # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement ShapeProperties # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement Transform2D # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement PositiveSize2D # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement Point2D # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

toElement :: Name -> Point2D -> Element #

ToElement TextRun # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

toElement :: Name -> TextRun -> Element #

ToElement TextCharacterProperties # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement TextParagraph # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToElement TextBody # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

toElement :: Name -> TextBody -> Element #

ToElement Formula #

See ST_Formula, p. 3873

Instance details

Defined in Codec.Xlsx.Types.Common

Methods

toElement :: Name -> Formula -> Element #

ToElement XlsxText #

See CT_Rst, p. 3903

Instance details

Defined in Codec.Xlsx.Types.Common

Methods

toElement :: Name -> XlsxText -> Element #

ToElement Pane #

See CT_Pane, p. 3913

Instance details

Defined in Codec.Xlsx.Types.SheetViews

Methods

toElement :: Name -> Pane -> Element #

ToElement Selection #

See CT_Selection, p. 3914

Instance details

Defined in Codec.Xlsx.Types.SheetViews

Methods

toElement :: Name -> Selection -> Element #

ToElement SheetView #

See CT_SheetView, p. 3913

Instance details

Defined in Codec.Xlsx.Types.SheetViews

Methods

toElement :: Name -> SheetView -> Element #

ToElement CacheField # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable.Internal

ToElement DataLblProps # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement DataMarker # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement ScatterSeries # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement PieSeries # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

Methods

toElement :: Name -> PieSeries -> Element #

ToElement BarSeries # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

Methods

toElement :: Name -> BarSeries -> Element #

ToElement AreaSeries # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement LineSeries # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement Series # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

Methods

toElement :: Name -> Series -> Element #

ToElement Legend # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

Methods

toElement :: Name -> Legend -> Element #

ToElement ChartTitle # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement ChartSpace # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToElement UnresolvedDrawing # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement NonVisualDrawingProperties # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement GraphNonVisual # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement PicNonVisual # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement ClientData # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement Marker # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

toElement :: Name -> Marker -> Element #

ToElement DataValidation # 
Instance details

Defined in Codec.Xlsx.Types.DataValidation

ToElement DvPair # 
Instance details

Defined in Codec.Xlsx.Types.Internal.DvPair

Methods

toElement :: Name -> DvPair -> Element #

ToElement CfRule # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

Methods

toElement :: Name -> CfRule -> Element #

ToElement DataBarOptions # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement IconSetOptions # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement MaxCfValue # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement MinCfValue # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToElement CfValue # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

Methods

toElement :: Name -> CfValue -> Element #

ToElement CfPair # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CfPair

Methods

toElement :: Name -> CfPair -> Element #

ToElement CommentTable # 
Instance details

Defined in Codec.Xlsx.Types.Internal.CommentTable

ToElement CellFormula # 
Instance details

Defined in Codec.Xlsx.Types.Cell

ToElement AutoFilter # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement DynFilterOptions # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement ColorFilterOptions # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement CustomFilter # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToElement ColumnsProperties # 
Instance details

Defined in Codec.Xlsx.Types

ToElement SharedStringTable #

See CT_Sst, p. 3902.

TODO: The count and uniqCount attributes are currently unsupported.

Instance details

Defined in Codec.Xlsx.Types.Internal.SharedStringTable

ToElement (BlipFillProperties RefId) # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Rendering attributes

class ToAttrVal a where #

Methods

toAttrVal :: a -> Text #

Instances
ToAttrVal Bool # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: Bool -> Text #

ToAttrVal Double # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: Double -> Text #

ToAttrVal Int # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: Int -> Text #

ToAttrVal Integer # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: Integer -> Text #

ToAttrVal String # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: String -> Text #

ToAttrVal Text # 
Instance details

Defined in Codec.Xlsx.Writer.Internal

Methods

toAttrVal :: Text -> Text #

ToAttrVal ReadingOrder # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal PatternType # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal LineStyle # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toAttrVal :: LineStyle -> Text #

ToAttrVal FontVerticalAlignment # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal FontUnderline # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal FontScheme # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toAttrVal :: FontScheme -> Text #

ToAttrVal FontFamily # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

Methods

toAttrVal :: FontFamily -> Text #

ToAttrVal CellVerticalAlignment # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal CellHorizontalAlignment # 
Instance details

Defined in Codec.Xlsx.Types.StyleSheet

ToAttrVal LegacyPassword # 
Instance details

Defined in Codec.Xlsx.Types.Protection

ToAttrVal PaperSize #

See paperSize (attribute of pageSetup), p. 1659

Instance details

Defined in Codec.Xlsx.Types.PageSetup

Methods

toAttrVal :: PaperSize -> Text #

ToAttrVal PageOrder #

See ST_PageOrder, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

Methods

toAttrVal :: PageOrder -> Text #

ToAttrVal Orientation #

See ST_Orientation, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal PrintErrors #

See ST_PrintError, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal CellComments #

See ST_CellComments, p. 3923

Instance details

Defined in Codec.Xlsx.Types.PageSetup

ToAttrVal RefId # 
Instance details

Defined in Codec.Xlsx.Types.Internal

Methods

toAttrVal :: RefId -> Text #

ToAttrVal PositiveCoordinate # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal Coordinate # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

toAttrVal :: Coordinate -> Text #

ToAttrVal TextAnchoring # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal TextWrap # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

toAttrVal :: TextWrap -> Text #

ToAttrVal TextVertical # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal TextVertOverflow # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

ToAttrVal Angle # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Common

Methods

toAttrVal :: Angle -> Text #

ToAttrVal ErrorType # 
Instance details

Defined in Codec.Xlsx.Types.Common

Methods

toAttrVal :: ErrorType -> Text #

ToAttrVal SqRef # 
Instance details

Defined in Codec.Xlsx.Types.Common

Methods

toAttrVal :: SqRef -> Text #

ToAttrVal CellRef # 
Instance details

Defined in Codec.Xlsx.Types.Common

Methods

toAttrVal :: CellRef -> Text #

ToAttrVal PaneState #

See ST_PaneState, p. 3929

Instance details

Defined in Codec.Xlsx.Types.SheetViews

Methods

toAttrVal :: PaneState -> Text #

ToAttrVal PaneType #

See ST_Pane, p. 3914

Instance details

Defined in Codec.Xlsx.Types.SheetViews

Methods

toAttrVal :: PaneType -> Text #

ToAttrVal SheetViewType #

See ST_SheetViewType, p. 3913

Instance details

Defined in Codec.Xlsx.Types.SheetViews

ToAttrVal ConsolidateFunction # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable

ToAttrVal PivotFieldName # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable

ToAttrVal FieldSortType # 
Instance details

Defined in Codec.Xlsx.Types.PivotTable

ToAttrVal TickMark # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

Methods

toAttrVal :: TickMark -> Text #

ToAttrVal DataMarkerSymbol # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal ScatterStyle # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal BarDirection # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal BarChartGrouping # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal ChartGrouping # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal LegendPos # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

Methods

toAttrVal :: LegendPos -> Text #

ToAttrVal DispBlanksAs # 
Instance details

Defined in Codec.Xlsx.Types.Drawing.Chart

ToAttrVal DrawingElementId # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToAttrVal EditAs # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

toAttrVal :: EditAs -> Text #

ToAttrVal ErrorStyle # 
Instance details

Defined in Codec.Xlsx.Types.DataValidation

Methods

toAttrVal :: ErrorStyle -> Text #

ToAttrVal ValidationType # 
Instance details

Defined in Codec.Xlsx.Types.DataValidation

ToAttrVal IconSetType # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

ToAttrVal NStdDev # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

Methods

toAttrVal :: NStdDev -> Text #

ToAttrVal Inclusion # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

Methods

toAttrVal :: Inclusion -> Text #

ToAttrVal TimePeriod # 
Instance details

Defined in Codec.Xlsx.Types.ConditionalFormatting

Methods

toAttrVal :: TimePeriod -> Text #

ToAttrVal SharedFormulaIndex # 
Instance details

Defined in Codec.Xlsx.Types.Cell

ToAttrVal DynFilterType # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToAttrVal CustomFilterOperator # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

ToAttrVal FilterByBlank # 
Instance details

Defined in Codec.Xlsx.Types.AutoFilter

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

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

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

Dealing with namespaces

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

Set the namespace for the entire document

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

mainNamespace :: Text #

The main namespace for Excel

Misc

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

txtb :: Bool -> Text #

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