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

Safe HaskellNone
LanguageHaskell2010

Codec.Xlsx.Writer.Internal

Contents

Synopsis

Rendering documents

Rendering elements

class ToElement a where Source #

Minimal complete definition

toElement

Methods

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

Instances

ToElement NumFmtPair Source # 
ToElement Relationships Source # 
ToElement Relationship Source # 
ToElement UnresolvedDrawing Source # 
ToElement LineProperties Source # 
ToElement Transform2D Source # 
ToElement ShapeProperties Source # 
ToElement PicDrawingNonVisual Source # 
ToElement PicNonVisual Source # 
ToElement ClientData Source # 
ToElement Marker Source # 
ToElement PositiveSize2D Source # 
ToElement Point2D Source # 
ToElement PageSetup Source #

See CT_PageSetup, p. 3922

ToElement Protection Source #

See CT_CellProtection, p. 4484

ToElement Dxf Source #

See CT_Dxf, p. 3937

Methods

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

ToElement Font Source #

See CT_Font, p. 4489

Methods

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

ToElement FillPattern Source #

See CT_PatternFill, p. 4484

ToElement Fill Source #

See CT_Fill, p. 4484

Methods

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

ToElement Color Source #

See CT_Color, p. 4484

ToElement BorderStyle Source #

See CT_BorderPr, p. 4483

ToElement Border Source #

See CT_Border, p. 4483

ToElement Alignment Source #

See CT_CellAlignment, p. 4482

ToElement CellXf Source #

See CT_Xf, p. 4486

ToElement StyleSheet Source #

See CT_Stylesheet, p. 4482

ToElement RunProperties Source #

See CT_RPrElt, p. 3903

ToElement RichTextRun Source #

See CT_RElt, p. 3903

ToElement Formula Source #

See ST_Formula, p. 3873

ToElement XlsxText Source #

See CT_Rst, p. 3903

ToElement CfRule Source # 
ToElement CfPair Source # 
ToElement CommentTable Source # 
ToElement Pane Source #

See CT_Pane, p. 3913

Methods

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

ToElement Selection Source #

See CT_Selection, p. 3914

ToElement SheetView Source #

See CT_SheetView, p. 3913

ToElement CellFormula Source # 
ToElement SharedStringTable Source #

See CT_Sst, p. 3902.

TODO: The count and uniqCount attributes are currently unsupported.

ToElement CustomProperty Source # 
ToElement CustomProperties Source # 
ToElement (BlipFillProperties RefId) Source # 

Rendering attributes

class ToAttrVal a where Source #

Minimal complete definition

toAttrVal

Methods

toAttrVal :: a -> Text Source #

Instances

ToAttrVal Bool Source # 

Methods

toAttrVal :: Bool -> Text Source #

ToAttrVal Double Source # 
ToAttrVal Int Source # 

Methods

toAttrVal :: Int -> Text Source #

ToAttrVal Integer Source # 
ToAttrVal Text Source # 

Methods

toAttrVal :: Text -> Text Source #

ToAttrVal String Source # 
ToAttrVal RefId Source # 

Methods

toAttrVal :: RefId -> Text Source #

ToAttrVal EditAs Source # 
ToAttrVal Angle Source # 

Methods

toAttrVal :: Angle -> Text Source #

ToAttrVal PositiveCoordinate Source # 
ToAttrVal Coordinate Source # 
ToAttrVal PaperSize Source #

See paperSize (attribute of pageSetup), p. 1659

ToAttrVal PageOrder Source #

See ST_PageOrder, p. 3923

ToAttrVal Orientation Source #

See ST_Orientation, p. 3923

ToAttrVal PrintErrors Source #

See ST_PrintError, p. 3923

ToAttrVal CellComments Source #

See ST_CellComments, p. 3923

ToAttrVal ReadingOrder Source # 
ToAttrVal PatternType Source # 
ToAttrVal LineStyle Source # 
ToAttrVal FontVerticalAlignment Source # 
ToAttrVal FontUnderline Source # 
ToAttrVal FontScheme Source # 
ToAttrVal FontFamily Source # 
ToAttrVal CellVerticalAlignment Source # 
ToAttrVal CellHorizontalAlignment Source # 
ToAttrVal SqRef Source #

A sequence of cell references, space delimited. See 18.18.76, "ST_Sqref (Reference Sequence)", p. 2488.

Methods

toAttrVal :: SqRef -> Text Source #

ToAttrVal TimePeriod Source # 
ToAttrVal PaneState Source #

See ST_PaneState, p. 3929

ToAttrVal PaneType Source #

See ST_Pane, p. 3914

ToAttrVal SheetViewType Source #

See ST_SheetViewType, p. 3913

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

Dealing with namespaces

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