| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Xlsx.Types
Synopsis
- data Xlsx = Xlsx {}
- newtype Styles = Styles {}
- newtype DefinedNames = DefinedNames [(Text, Maybe Text, Text)]
- data ColumnsProperties = ColumnsProperties {}
- data PageSetup = PageSetup {
- _pageSetupBlackAndWhite :: Maybe Bool
- _pageSetupCellComments :: Maybe CellComments
- _pageSetupCopies :: Maybe Int
- _pageSetupDraft :: Maybe Bool
- _pageSetupErrors :: Maybe PrintErrors
- _pageSetupFirstPageNumber :: Maybe Int
- _pageSetupFitToHeight :: Maybe Int
- _pageSetupFitToWidth :: Maybe Int
- _pageSetupHorizontalDpi :: Maybe Int
- _pageSetupId :: Maybe Text
- _pageSetupOrientation :: Maybe Orientation
- _pageSetupPageOrder :: Maybe PageOrder
- _pageSetupPaperHeight :: Maybe Text
- _pageSetupPaperSize :: Maybe PaperSize
- _pageSetupPaperWidth :: Maybe Text
- _pageSetupScale :: Maybe Int
- _pageSetupUseFirstPageNumber :: Maybe Bool
- _pageSetupUsePrinterDefaults :: Maybe Bool
- _pageSetupVerticalDpi :: Maybe Int
- data Worksheet = Worksheet {
- _wsColumnsProperties :: [ColumnsProperties]
- _wsRowPropertiesMap :: Map RowIndex RowProperties
- _wsCells :: CellMap
- _wsDrawing :: Maybe Drawing
- _wsMerges :: [Range]
- _wsSheetViews :: Maybe [SheetView]
- _wsPageSetup :: Maybe PageSetup
- _wsConditionalFormattings :: Map SqRef ConditionalFormatting
- _wsDataValidations :: Map SqRef DataValidation
- _wsPivotTables :: [PivotTable]
- _wsAutoFilter :: Maybe AutoFilter
- _wsTables :: [Table]
- _wsProtection :: Maybe SheetProtection
- _wsSharedFormulas :: Map SharedFormulaIndex SharedFormulaOptions
- _wsState :: SheetState
- data SheetState
- = Visible
- | Hidden
- | VeryHidden
- type CellMap = Map (RowIndex, ColumnIndex) Cell
- data CellValue
- data CellFormula = CellFormula {}
- data FormulaExpression
- newtype SharedFormulaIndex = SharedFormulaIndex Int
- data SharedFormulaOptions = SharedFormulaOptions {}
- data Cell = Cell {}
- data RowHeight
- data RowProperties = RowProps {}
- xlSheets :: Lens' Xlsx [(Text, Worksheet)]
- xlStyles :: Lens' Xlsx Styles
- xlDefinedNames :: Lens' Xlsx DefinedNames
- xlCustomProperties :: Lens' Xlsx (Map Text Variant)
- xlDateBase :: Lens' Xlsx DateBase
- wsColumnsProperties :: Lens' Worksheet [ColumnsProperties]
- wsRowPropertiesMap :: Lens' Worksheet (Map RowIndex RowProperties)
- wsCells :: Lens' Worksheet CellMap
- wsDrawing :: Lens' Worksheet (Maybe Drawing)
- wsMerges :: Lens' Worksheet [Range]
- wsSheetViews :: Lens' Worksheet (Maybe [SheetView])
- wsPageSetup :: Lens' Worksheet (Maybe PageSetup)
- wsConditionalFormattings :: Lens' Worksheet (Map SqRef ConditionalFormatting)
- wsDataValidations :: Lens' Worksheet (Map SqRef DataValidation)
- wsPivotTables :: Lens' Worksheet [PivotTable]
- wsAutoFilter :: Lens' Worksheet (Maybe AutoFilter)
- wsTables :: Lens' Worksheet [Table]
- wsProtection :: Lens' Worksheet (Maybe SheetProtection)
- wsSharedFormulas :: Lens' Worksheet (Map SharedFormulaIndex SharedFormulaOptions)
- wsState :: Lens' Worksheet SheetState
- cellValue :: Lens' Cell (Maybe CellValue)
- cellStyle :: Lens' Cell (Maybe Int)
- cellComment :: Lens' Cell (Maybe Comment)
- cellFormula :: Lens' Cell (Maybe CellFormula)
- rowHeightLens :: Lens' RowProperties (Maybe RowHeight)
- _CustomHeight :: Prism' RowHeight Double
- _AutomaticHeight :: Prism' RowHeight Double
- emptyStyles :: Styles
- renderStyleSheet :: StyleSheet -> Styles
- parseStyleSheet :: Styles -> Either SomeException StyleSheet
- simpleCellFormula :: Text -> CellFormula
- sharedFormulaByIndex :: SharedFormulaIndex -> CellFormula
- def :: Default a => a
- toRows :: CellMap -> [(RowIndex, [(ColumnIndex, Cell)])]
- fromRows :: [(RowIndex, [(ColumnIndex, Cell)])] -> CellMap
- module Codec.Xlsx.Types.AutoFilter
- module Codec.Xlsx.Types.Comment
- module Codec.Xlsx.Types.Common
- module Codec.Xlsx.Types.ConditionalFormatting
- module Codec.Xlsx.Types.DataValidation
- module Codec.Xlsx.Types.Drawing
- module Codec.Xlsx.Types.Drawing.Chart
- module Codec.Xlsx.Types.Drawing.Common
- module Codec.Xlsx.Types.PageSetup
- module Codec.Xlsx.Types.PivotTable
- module Codec.Xlsx.Types.Protection
- module Codec.Xlsx.Types.RichText
- module Codec.Xlsx.Types.SheetViews
- module Codec.Xlsx.Types.StyleSheet
- module Codec.Xlsx.Types.Table
- module Codec.Xlsx.Types.Variant
The main types
Structured representation of Xlsx file (currently a subset of its contents)
Constructors
| Xlsx | |
Fields
| |
Instances
Raw worksheet styles, for structured implementation see StyleSheet
and functions in Codec.Xlsx.Types.StyleSheet
Constructors
| Styles | |
Fields | |
Instances
| NFData Styles Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Generic Styles Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
| |||||
| Show Styles Source # | |||||
| Eq Styles Source # | |||||
| type Rep Styles Source # | |||||
Defined in Codec.Xlsx.Types type Rep Styles = D1 ('MetaData "Styles" "Codec.Xlsx.Types" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'True) (C1 ('MetaCons "Styles" 'PrefixI 'True) (S1 ('MetaSel ('Just "unStyles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |||||
newtype DefinedNames Source #
Defined names
Each defined name consists of a name, an optional local sheet ID, and a value.
This element defines the collection of defined names for this workbook. Defined names are descriptive names to represent cells, ranges of cells, formulas, or constant values. Defined names can be used to represent a range on any worksheet.
Excel also defines a number of reserved names with a special interpretation:
_xlnm.Print_Areaspecifies the workbook's print area. Example value:SheetName!$A:$A,SheetName!$1:$4_xlnm.Print_Titlesspecifies the row(s) or column(s) to repeat at the top of each printed page._xlnm.Sheet_Title:refers to a sheet title.
and others. See Section 18.2.6, "definedNames (Defined Names)" (p. 1728) of the spec (second edition).
NOTE: Right now this is only a minimal implementation of defined names.
Constructors
| DefinedNames [(Text, Maybe Text, Text)] |
Instances
| Default DefinedNames Source # | |||||
Defined in Codec.Xlsx.Types Methods def :: DefinedNames # | |||||
| NFData DefinedNames Source # | |||||
Defined in Codec.Xlsx.Types Methods rnf :: DefinedNames -> () Source # | |||||
| Generic DefinedNames Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
Methods from :: DefinedNames -> Rep DefinedNames x Source # to :: Rep DefinedNames x -> DefinedNames Source # | |||||
| Show DefinedNames Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Eq DefinedNames Source # | |||||
Defined in Codec.Xlsx.Types Methods (==) :: DefinedNames -> DefinedNames -> Bool Source # (/=) :: DefinedNames -> DefinedNames -> Bool Source # | |||||
| type Rep DefinedNames Source # | |||||
Defined in Codec.Xlsx.Types | |||||
data ColumnsProperties Source #
Column range (from cwMin to cwMax) properties
Constructors
| ColumnsProperties | |
Fields
| |
Instances
| NFData ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods rnf :: ColumnsProperties -> () Source # | |||||
| Generic ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
Methods from :: ColumnsProperties -> Rep ColumnsProperties x Source # to :: Rep ColumnsProperties x -> ColumnsProperties Source # | |||||
| Show ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Eq ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods (==) :: ColumnsProperties -> ColumnsProperties -> Bool Source # (/=) :: ColumnsProperties -> ColumnsProperties -> Bool Source # | |||||
| FromCursor ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods fromCursor :: Cursor -> [ColumnsProperties] Source # | |||||
| FromXenoNode ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods fromXenoNode :: Node -> Either Text ColumnsProperties Source # | |||||
| ToElement ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| type Rep ColumnsProperties Source # | |||||
Defined in Codec.Xlsx.Types type Rep ColumnsProperties = D1 ('MetaData "ColumnsProperties" "Codec.Xlsx.Types" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "ColumnsProperties" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cpMin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "cpMax") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "cpWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "cpStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "cpHidden") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "cpCollapsed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "cpBestFit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) | |||||
Constructors
| PageSetup | |
Fields
| |
Instances
| Default PageSetup Source # | |||||
Defined in Codec.Xlsx.Types.PageSetup | |||||
| NFData PageSetup Source # | |||||
Defined in Codec.Xlsx.Types.PageSetup | |||||
| Generic PageSetup Source # | |||||
Defined in Codec.Xlsx.Types.PageSetup Associated Types
| |||||
| Show PageSetup Source # | |||||
| Eq PageSetup Source # | |||||
| Ord PageSetup Source # | |||||
Defined in Codec.Xlsx.Types.PageSetup | |||||
| FromCursor PageSetup Source # | See | ||||
Defined in Codec.Xlsx.Types.PageSetup Methods fromCursor :: Cursor -> [PageSetup] Source # | |||||
| FromXenoNode PageSetup Source # | |||||
Defined in Codec.Xlsx.Types.PageSetup | |||||
| ToElement PageSetup Source # | See | ||||
| type Rep PageSetup Source # | |||||
Defined in Codec.Xlsx.Types.PageSetup type Rep PageSetup = D1 ('MetaData "PageSetup" "Codec.Xlsx.Types.PageSetup" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "PageSetup" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "_pageSetupBlackAndWhite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_pageSetupCellComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CellComments))) :*: (S1 ('MetaSel ('Just "_pageSetupCopies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_pageSetupDraft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "_pageSetupErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PrintErrors)) :*: S1 ('MetaSel ('Just "_pageSetupFirstPageNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "_pageSetupFitToHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "_pageSetupFitToWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_pageSetupHorizontalDpi") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))) :*: (((S1 ('MetaSel ('Just "_pageSetupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_pageSetupOrientation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Orientation))) :*: (S1 ('MetaSel ('Just "_pageSetupPageOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PageOrder)) :*: (S1 ('MetaSel ('Just "_pageSetupPaperHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_pageSetupPaperSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PaperSize))))) :*: ((S1 ('MetaSel ('Just "_pageSetupPaperWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_pageSetupScale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "_pageSetupUseFirstPageNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "_pageSetupUsePrinterDefaults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_pageSetupVerticalDpi") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))))) | |||||
Xlsx worksheet
Constructors
| Worksheet | |
Fields
| |
Instances
| Default Worksheet Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| NFData Worksheet Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Generic Worksheet Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
| |||||
| Show Worksheet Source # | |||||
| Eq Worksheet Source # | |||||
| type Rep Worksheet Source # | |||||
Defined in Codec.Xlsx.Types type Rep Worksheet = D1 ('MetaData "Worksheet" "Codec.Xlsx.Types" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Worksheet" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_wsColumnsProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ColumnsProperties]) :*: (S1 ('MetaSel ('Just "_wsRowPropertiesMap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map RowIndex RowProperties)) :*: S1 ('MetaSel ('Just "_wsCells") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CellMap))) :*: ((S1 ('MetaSel ('Just "_wsDrawing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Drawing)) :*: S1 ('MetaSel ('Just "_wsMerges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Range])) :*: (S1 ('MetaSel ('Just "_wsSheetViews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [SheetView])) :*: S1 ('MetaSel ('Just "_wsPageSetup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PageSetup))))) :*: (((S1 ('MetaSel ('Just "_wsConditionalFormattings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SqRef ConditionalFormatting)) :*: S1 ('MetaSel ('Just "_wsDataValidations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SqRef DataValidation))) :*: (S1 ('MetaSel ('Just "_wsPivotTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PivotTable]) :*: S1 ('MetaSel ('Just "_wsAutoFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AutoFilter)))) :*: ((S1 ('MetaSel ('Just "_wsTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Table]) :*: S1 ('MetaSel ('Just "_wsProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SheetProtection))) :*: (S1 ('MetaSel ('Just "_wsSharedFormulas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SharedFormulaIndex SharedFormulaOptions)) :*: S1 ('MetaSel ('Just "_wsState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SheetState)))))) | |||||
data SheetState Source #
Sheet visibility state cf. Ecma Office Open XML Part 1: 18.18.68 ST_SheetState (Sheet Visibility Types) * "visible" Indicates the sheet is visible (default) * "hidden" Indicates the workbook window is hidden, but can be shown by the user via the user interface. * "veryHidden" Indicates the sheet is hidden and cannot be shown in the user interface (UI). This state is only available programmatically.
Constructors
| Visible | state="visible" |
| Hidden | state="hidden" |
| VeryHidden | state="veryHidden" |
Instances
| Default SheetState Source # | |||||
Defined in Codec.Xlsx.Types Methods def :: SheetState # | |||||
| NFData SheetState Source # | |||||
Defined in Codec.Xlsx.Types Methods rnf :: SheetState -> () Source # | |||||
| Generic SheetState Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
| |||||
| Show SheetState Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Eq SheetState Source # | |||||
Defined in Codec.Xlsx.Types Methods (==) :: SheetState -> SheetState -> Bool Source # (/=) :: SheetState -> SheetState -> Bool Source # | |||||
| FromAttrVal SheetState Source # | |||||
Defined in Codec.Xlsx.Types Methods | |||||
| FromAttrBs SheetState Source # | |||||
Defined in Codec.Xlsx.Types Methods fromAttrBs :: ByteString -> Either Text SheetState Source # | |||||
| ToAttrVal SheetState Source # | |||||
Defined in Codec.Xlsx.Types Methods toAttrVal :: SheetState -> Text Source # | |||||
| type Rep SheetState Source # | |||||
Defined in Codec.Xlsx.Types type Rep SheetState = D1 ('MetaData "SheetState" "Codec.Xlsx.Types" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Visible" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Hidden" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VeryHidden" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
type CellMap = Map (RowIndex, ColumnIndex) Cell Source #
Map containing cell values which are indexed by row and column
if you need to use more traditional (x,y) indexing please you could
use corresponding accessors from 'Lens'
Cell values include text, numbers and booleans, standard includes date format also but actually dates are represented by numbers with a date format assigned to a cell containing it Specification (ECMA-376): - 18.3.1.4 c (Cell) - 18.18.11 ST_CellType (Cell Type)
Constructors
| CellText Text | |
| CellDouble Double | |
| CellBool Bool | |
| CellRich [RichTextRun] | |
| CellError ErrorType |
Instances
| NFData CellValue Source # | |||||
Defined in Codec.Xlsx.Types.Common | |||||
| Generic CellValue Source # | |||||
Defined in Codec.Xlsx.Types.Common Associated Types
| |||||
| Show CellValue Source # | |||||
| Eq CellValue Source # | |||||
| Ord CellValue Source # | |||||
Defined in Codec.Xlsx.Types.Common | |||||
| type Rep CellValue Source # | |||||
Defined in Codec.Xlsx.Types.Common type Rep CellValue = D1 ('MetaData "CellValue" "Codec.Xlsx.Types.Common" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "CellText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "CellDouble" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) :+: (C1 ('MetaCons "CellBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "CellRich" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RichTextRun])) :+: C1 ('MetaCons "CellError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ErrorType))))) | |||||
data CellFormula Source #
Formula for the cell.
TODO: array, dataTable formula types support
See 18.3.1.40 "f (Formula)" (p. 1636)
Constructors
| CellFormula | |
Fields
| |
Instances
| NFData CellFormula Source # | |||||
Defined in Codec.Xlsx.Types.Cell Methods rnf :: CellFormula -> () Source # | |||||
| Generic CellFormula Source # | |||||
Defined in Codec.Xlsx.Types.Cell Associated Types
Methods from :: CellFormula -> Rep CellFormula x Source # to :: Rep CellFormula x -> CellFormula Source # | |||||
| Show CellFormula Source # | |||||
Defined in Codec.Xlsx.Types.Cell | |||||
| Eq CellFormula Source # | |||||
Defined in Codec.Xlsx.Types.Cell Methods (==) :: CellFormula -> CellFormula -> Bool Source # (/=) :: CellFormula -> CellFormula -> Bool Source # | |||||
| ToElement CellFormula Source # | |||||
Defined in Codec.Xlsx.Types.Cell | |||||
| type Rep CellFormula Source # | |||||
Defined in Codec.Xlsx.Types.Cell type Rep CellFormula = D1 ('MetaData "CellFormula" "Codec.Xlsx.Types.Cell" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "CellFormula" 'PrefixI 'True) (S1 ('MetaSel ('Just "_cellfExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormulaExpression) :*: (S1 ('MetaSel ('Just "_cellfAssignsToName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_cellfCalculate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) | |||||
data FormulaExpression Source #
formula type with type-specific options
Constructors
| NormalFormula Formula | |
| SharedFormula SharedFormulaIndex |
Instances
| NFData FormulaExpression Source # | |||||
Defined in Codec.Xlsx.Types.Cell Methods rnf :: FormulaExpression -> () Source # | |||||
| Generic FormulaExpression Source # | |||||
Defined in Codec.Xlsx.Types.Cell Associated Types
Methods from :: FormulaExpression -> Rep FormulaExpression x Source # to :: Rep FormulaExpression x -> FormulaExpression Source # | |||||
| Show FormulaExpression Source # | |||||
Defined in Codec.Xlsx.Types.Cell | |||||
| Eq FormulaExpression Source # | |||||
Defined in Codec.Xlsx.Types.Cell Methods (==) :: FormulaExpression -> FormulaExpression -> Bool Source # (/=) :: FormulaExpression -> FormulaExpression -> Bool Source # | |||||
| type Rep FormulaExpression Source # | |||||
Defined in Codec.Xlsx.Types.Cell type Rep FormulaExpression = D1 ('MetaData "FormulaExpression" "Codec.Xlsx.Types.Cell" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "NormalFormula" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formula)) :+: C1 ('MetaCons "SharedFormula" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SharedFormulaIndex))) | |||||
newtype SharedFormulaIndex Source #
index of shared formula in worksheet's wsSharedFormulas
property
Constructors
| SharedFormulaIndex Int |
Instances
data SharedFormulaOptions Source #
Constructors
| SharedFormulaOptions | |
Fields
| |
Instances
Currently cell details include cell values, style ids and cell
formulas (inline strings from <is> subelements are ignored)
Constructors
| Cell | |
Fields | |
Instances
| Default Cell Source # | |||||
Defined in Codec.Xlsx.Types.Cell | |||||
| NFData Cell Source # | |||||
Defined in Codec.Xlsx.Types.Cell | |||||
| Generic Cell Source # | |||||
Defined in Codec.Xlsx.Types.Cell Associated Types
| |||||
| Show Cell Source # | |||||
| Eq Cell Source # | |||||
| type Rep Cell Source # | |||||
Defined in Codec.Xlsx.Types.Cell type Rep Cell = D1 ('MetaData "Cell" "Codec.Xlsx.Types.Cell" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "Cell" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_cellStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_cellValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CellValue))) :*: (S1 ('MetaSel ('Just "_cellComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Comment)) :*: S1 ('MetaSel ('Just "_cellFormula") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CellFormula))))) | |||||
Height of a row in points (1/72in)
Constructors
| CustomHeight !Double | Row height is set by the user |
| AutomaticHeight !Double | Row height is set automatically by the program |
Instances
| NFData RowHeight Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Generic RowHeight Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
| |||||
| Read RowHeight Source # | |||||
| Show RowHeight Source # | |||||
| Eq RowHeight Source # | |||||
| Ord RowHeight Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| type Rep RowHeight Source # | |||||
Defined in Codec.Xlsx.Types type Rep RowHeight = D1 ('MetaData "RowHeight" "Codec.Xlsx.Types" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "CustomHeight" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: C1 ('MetaCons "AutomaticHeight" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) | |||||
data RowProperties Source #
Properties of a row. See §18.3.1.73 "row (Row)" for more details
Constructors
| RowProps | |
Instances
| Default RowProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods def :: RowProperties # | |||||
| NFData RowProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods rnf :: RowProperties -> () Source # | |||||
| Generic RowProperties Source # | |||||
Defined in Codec.Xlsx.Types Associated Types
Methods from :: RowProperties -> Rep RowProperties x Source # to :: Rep RowProperties x -> RowProperties Source # | |||||
| Read RowProperties Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Show RowProperties Source # | |||||
Defined in Codec.Xlsx.Types | |||||
| Eq RowProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods (==) :: RowProperties -> RowProperties -> Bool Source # (/=) :: RowProperties -> RowProperties -> Bool Source # | |||||
| Ord RowProperties Source # | |||||
Defined in Codec.Xlsx.Types Methods compare :: RowProperties -> RowProperties -> Ordering Source # (<) :: RowProperties -> RowProperties -> Bool Source # (<=) :: RowProperties -> RowProperties -> Bool Source # (>) :: RowProperties -> RowProperties -> Bool Source # (>=) :: RowProperties -> RowProperties -> Bool Source # max :: RowProperties -> RowProperties -> RowProperties Source # min :: RowProperties -> RowProperties -> RowProperties Source # | |||||
| type Rep RowProperties Source # | |||||
Defined in Codec.Xlsx.Types type Rep RowProperties = D1 ('MetaData "RowProperties" "Codec.Xlsx.Types" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) (C1 ('MetaCons "RowProps" 'PrefixI 'True) (S1 ('MetaSel ('Just "rowHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RowHeight)) :*: (S1 ('MetaSel ('Just "rowStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "rowHidden") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) | |||||
Lenses
Workbook
Worksheet
Cells
cellFormula :: Lens' Cell (Maybe CellFormula) Source #
Row properties
Style helpers
emptyStyles :: Styles Source #
renderStyleSheet :: StyleSheet -> Styles Source #
Render StyleSheet
This is used to render a structured StyleSheet into a raw XML Styles
document. Actually replacing Styles with StyleSheet would mean we
would need to write a parser for StyleSheet as well (and would moreover
require that we support the full style sheet specification, which is still
quite a bit of work).
parseStyleSheet :: Styles -> Either SomeException StyleSheet Source #
Parse StyleSheet
This is used to parse raw Styles into structured StyleSheet
currently not all of the style sheet specification is supported
so parser (and the data model) is to be completed
Misc
simpleCellFormula :: Text -> CellFormula Source #
toRows :: CellMap -> [(RowIndex, [(ColumnIndex, Cell)])] Source #
converts cells mapped by (row, column) into rows which contain row index and cells as pairs of column indices and cell values
module Codec.Xlsx.Types.AutoFilter
module Codec.Xlsx.Types.Comment
module Codec.Xlsx.Types.Common
module Codec.Xlsx.Types.Drawing
module Codec.Xlsx.Types.PageSetup
module Codec.Xlsx.Types.PivotTable
module Codec.Xlsx.Types.Protection
module Codec.Xlsx.Types.RichText
module Codec.Xlsx.Types.SheetViews
module Codec.Xlsx.Types.StyleSheet
module Codec.Xlsx.Types.Table
module Codec.Xlsx.Types.Variant