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

Codec.Xlsx.Types.Drawing

Synopsis

Documentation

data FileInfo Source #

information about image file as a par of a drawing

Constructors

FileInfo 

Fields

Instances

Instances details
Generic FileInfo Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep FileInfo :: Type -> Type #

Methods

from :: FileInfo -> Rep FileInfo x #

to :: Rep FileInfo x -> FileInfo #

Show FileInfo Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData FileInfo Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: FileInfo -> () #

Eq FileInfo Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep FileInfo Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep FileInfo = D1 ('MetaData "FileInfo" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "FileInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "_fiFilename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "_fiContentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_fiContents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))

data Marker Source #

Constructors

Marker 

Instances

Instances details
Generic Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep Marker :: Type -> Type #

Methods

from :: Marker -> Rep Marker x #

to :: Rep Marker x -> Marker #

Show Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: Marker -> () #

Eq Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

(==) :: Marker -> Marker -> Bool #

(/=) :: Marker -> Marker -> Bool #

FromCursor Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep Marker Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep Marker = D1 ('MetaData "Marker" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "Marker" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_mrkCol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "_mrkColOff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coordinate)) :*: (S1 ('MetaSel ('Just "_mrkRow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "_mrkRowOff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coordinate))))

data EditAs Source #

Instances

Instances details
Generic EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep EditAs :: Type -> Type #

Methods

from :: EditAs -> Rep EditAs x #

to :: Rep EditAs x -> EditAs #

Show EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: EditAs -> () #

Eq EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

(==) :: EditAs -> EditAs -> Bool #

(/=) :: EditAs -> EditAs -> Bool #

FromAttrVal EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToAttrVal EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep EditAs Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep EditAs = D1 ('MetaData "EditAs" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "EditAsTwoCell" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EditAsOneCell" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EditAsAbsolute" 'PrefixI 'False) (U1 :: Type -> Type)))

data Anchoring Source #

Instances

Instances details
Generic Anchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep Anchoring :: Type -> Type #

Show Anchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData Anchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: Anchoring -> () #

Eq Anchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor Anchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep Anchoring Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

data DrawingObject p g Source #

Instances

Instances details
Generic (DrawingObject p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep (DrawingObject p g) :: Type -> Type #

Methods

from :: DrawingObject p g -> Rep (DrawingObject p g) x #

to :: Rep (DrawingObject p g) x -> DrawingObject p g #

(Show p, Show g) => Show (DrawingObject p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

(NFData p, NFData g) => NFData (DrawingObject p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: DrawingObject p g -> () #

(Eq p, Eq g) => Eq (DrawingObject p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

(==) :: DrawingObject p g -> DrawingObject p g -> Bool #

(/=) :: DrawingObject p g -> DrawingObject p g -> Bool #

FromCursor (DrawingObject RefId RefId) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (DrawingObject p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

picture :: DrawingElementId -> FileInfo -> DrawingObject FileInfo c Source #

basic function to create picture drawing object

Note: specification says that drawing element ids need to be unique within 1 document, otherwise /...document shall be considered non-conformant/.

extractPictures :: Drawing -> [(Anchoring, FileInfo)] Source #

helper to retrive information about all picture files in particular drawing alongside with their anchorings (i.e. sizes and positions)

data ClientData Source #

This element is used to set certain properties related to a drawing element on the client spreadsheet application.

see 20.5.2.3 "clientData (Client Data)" (p. 3156)

Constructors

ClientData 

Fields

  • _cldLcksWithSheet :: Bool

    This attribute indicates whether to disable selection on drawing elements when the sheet is protected.

  • _cldPrintsWithSheet :: Bool

    This attribute indicates whether to print drawing elements when printing the sheet.

Instances

Instances details
Generic ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep ClientData :: Type -> Type #

Show ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Default ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

def :: ClientData #

NFData ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: ClientData -> () #

Eq ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep ClientData Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep ClientData = D1 ('MetaData "ClientData" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "ClientData" 'PrefixI 'True) (S1 ('MetaSel ('Just "_cldLcksWithSheet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_cldPrintsWithSheet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

data PicNonVisual Source #

Instances

Instances details
Generic PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep PicNonVisual :: Type -> Type #

Show PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: PicNonVisual -> () #

Eq PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep PicNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep PicNonVisual = D1 ('MetaData "PicNonVisual" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "PicNonVisual" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pnvDrawingProps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonVisualDrawingProperties)))

data GraphNonVisual Source #

Instances

Instances details
Generic GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep GraphNonVisual :: Type -> Type #

Show GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: GraphNonVisual -> () #

Eq GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep GraphNonVisual Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep GraphNonVisual = D1 ('MetaData "GraphNonVisual" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "GraphNonVisual" 'PrefixI 'True) (S1 ('MetaSel ('Just "_gnvDrawingProps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonVisualDrawingProperties)))

newtype DrawingElementId Source #

Constructors

DrawingElementId 

Instances

Instances details
Generic DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep DrawingElementId :: Type -> Type #

Show DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: DrawingElementId -> () #

Eq DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromAttrVal DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToAttrVal DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep DrawingElementId Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep DrawingElementId = D1 ('MetaData "DrawingElementId" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'True) (C1 ('MetaCons "DrawingElementId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unDrawingElementId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data NonVisualDrawingProperties Source #

Constructors

NonVisualDrawingProperties 

Fields

Instances

Instances details
Generic NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep NonVisualDrawingProperties :: Type -> Type #

Show NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Eq NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep NonVisualDrawingProperties Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep NonVisualDrawingProperties = D1 ('MetaData "NonVisualDrawingProperties" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "NonVisualDrawingProperties" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_nvdpId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DrawingElementId) :*: S1 ('MetaSel ('Just "_nvdpName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "_nvdpDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "_nvdpHidden") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_nvdpTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

data BlipFillProperties a Source #

Instances

Instances details
Generic (BlipFillProperties a) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep (BlipFillProperties a) :: Type -> Type #

Show a => Show (BlipFillProperties a) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData a => NFData (BlipFillProperties a) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: BlipFillProperties a -> () #

Eq a => Eq (BlipFillProperties a) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor (BlipFillProperties RefId) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement (BlipFillProperties RefId) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (BlipFillProperties a) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (BlipFillProperties a) = D1 ('MetaData "BlipFillProperties" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "BlipFillProperties" 'PrefixI 'True) (S1 ('MetaSel ('Just "_bfpImageInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a)) :*: S1 ('MetaSel ('Just "_bfpFillMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FillMode))))

data FillMode Source #

Constructors

FillTile 
FillStretch 

Instances

Instances details
Generic FillMode Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep FillMode :: Type -> Type #

Methods

from :: FillMode -> Rep FillMode x #

to :: Rep FillMode x -> FillMode #

Show FillMode Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

NFData FillMode Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: FillMode -> () #

Eq FillMode Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

FromCursor FillMode Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep FillMode Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep FillMode = D1 ('MetaData "FillMode" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "FillTile" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FillStretch" 'PrefixI 'False) (U1 :: Type -> Type))

data Anchor p g Source #

Instances

Instances details
Generic (Anchor p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep (Anchor p g) :: Type -> Type #

Methods

from :: Anchor p g -> Rep (Anchor p g) x #

to :: Rep (Anchor p g) x -> Anchor p g #

(Show p, Show g) => Show (Anchor p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

showsPrec :: Int -> Anchor p g -> ShowS #

show :: Anchor p g -> String #

showList :: [Anchor p g] -> ShowS #

(NFData p, NFData g) => NFData (Anchor p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: Anchor p g -> () #

(Eq p, Eq g) => Eq (Anchor p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

(==) :: Anchor p g -> Anchor p g -> Bool #

(/=) :: Anchor p g -> Anchor p g -> Bool #

FromCursor (Anchor RefId RefId) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (Anchor p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (Anchor p g) = D1 ('MetaData "Anchor" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "Anchor" 'PrefixI 'True) (S1 ('MetaSel ('Just "_anchAnchoring") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Anchoring) :*: (S1 ('MetaSel ('Just "_anchObject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DrawingObject p g)) :*: S1 ('MetaSel ('Just "_anchClientData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ClientData))))

data GenericDrawing p g Source #

Constructors

Drawing 

Fields

Instances

Instances details
FromCursor UnresolvedDrawing Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToDocument UnresolvedDrawing Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

ToElement UnresolvedDrawing Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Generic (GenericDrawing p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Associated Types

type Rep (GenericDrawing p g) :: Type -> Type #

Methods

from :: GenericDrawing p g -> Rep (GenericDrawing p g) x #

to :: Rep (GenericDrawing p g) x -> GenericDrawing p g #

(Show p, Show g) => Show (GenericDrawing p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

(NFData p, NFData g) => NFData (GenericDrawing p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

Methods

rnf :: GenericDrawing p g -> () #

(Eq p, Eq g) => Eq (GenericDrawing p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (GenericDrawing p g) Source # 
Instance details

Defined in Codec.Xlsx.Types.Drawing

type Rep (GenericDrawing p g) = D1 ('MetaData "GenericDrawing" "Codec.Xlsx.Types.Drawing" "xlsx-1.1.0.1-FKUF1Jx3xuq9irRu3xJWCs" 'False) (C1 ('MetaCons "Drawing" 'PrefixI 'True) (S1 ('MetaSel ('Just "_xdrAnchors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Anchor p g])))

anchObject :: forall p g p g. Lens (Anchor p g) (Anchor p g) (DrawingObject p g) (DrawingObject p g) Source #

grChartSpace :: forall p g g. Traversal (DrawingObject p g) (DrawingObject p g) g g Source #

xdrAnchors :: forall p g p g. Iso (GenericDrawing p g) (GenericDrawing p g) [Anchor p g] [Anchor p g] Source #

simpleAnchorXY Source #

Arguments

:: (Int, Int)

x+y coordinates of a cell used as top left anchoring corner

-> PositiveSize2D

size of drawing object to be anchored

-> DrawingObject p g 
-> Anchor p g 

simple drawing object anchoring using one cell as a top lelft corner and dimensions of that object

xdr :: Text -> Name Source #

Add Spreadsheet DrawingML namespace to name