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

Safe HaskellNone
LanguageHaskell2010

Codec.Xlsx.Types.Drawing

Synopsis

Documentation

data FileInfo #

information about image file as a par of a drawing

Constructors

FileInfo 

Fields

Instances

Eq FileInfo # 
Show FileInfo # 
Generic FileInfo # 

Associated Types

type Rep FileInfo :: * -> * #

Methods

from :: FileInfo -> Rep FileInfo x #

to :: Rep FileInfo x -> FileInfo #

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

data Marker #

Constructors

Marker 

Instances

unqMarker :: (Int, Int) -> (Int, Int) -> Marker #

data EditAs #

Instances

Eq EditAs # 

Methods

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

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

Show EditAs # 
Generic EditAs # 

Associated Types

type Rep EditAs :: * -> * #

Methods

from :: EditAs -> Rep EditAs x #

to :: Rep EditAs x -> EditAs #

ToAttrVal EditAs # 

Methods

toAttrVal :: EditAs -> Text #

FromAttrVal EditAs # 
type Rep EditAs # 
type Rep EditAs = D1 (MetaData "EditAs" "Codec.Xlsx.Types.Drawing" "xlsx-0.6.0-9Et6tz40HhX7mNeKNADElD" False) ((:+:) (C1 (MetaCons "EditAsTwoCell" PrefixI False) U1) ((:+:) (C1 (MetaCons "EditAsOneCell" PrefixI False) U1) (C1 (MetaCons "EditAsAbsolute" PrefixI False) U1)))

data Anchoring #

Instances

Eq Anchoring # 
Show Anchoring # 
Generic Anchoring # 

Associated Types

type Rep Anchoring :: * -> * #

FromCursor Anchoring # 

Methods

fromCursor :: Cursor -> [Anchoring] #

type Rep Anchoring # 

data DrawingObject p g #

Instances

(Eq g, Eq p) => Eq (DrawingObject p g) # 

Methods

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

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

(Show g, Show p) => Show (DrawingObject p g) # 
Generic (DrawingObject p g) # 

Associated Types

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

Methods

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

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

FromCursor (DrawingObject RefId RefId) # 
type Rep (DrawingObject p g) # 

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

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)] #

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

data ClientData #

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

Eq ClientData # 
Show ClientData # 
Generic ClientData # 

Associated Types

type Rep ClientData :: * -> * #

Default ClientData # 

Methods

def :: ClientData #

ToElement ClientData # 
FromCursor ClientData # 

Methods

fromCursor :: Cursor -> [ClientData] #

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

data NonVisualDrawingProperties #

Constructors

NonVisualDrawingProperties 

Fields

Instances

Eq NonVisualDrawingProperties # 
Show NonVisualDrawingProperties # 
Generic NonVisualDrawingProperties # 
ToElement NonVisualDrawingProperties # 
FromCursor NonVisualDrawingProperties # 
type Rep NonVisualDrawingProperties # 

data FillMode #

Constructors

FillTile 
FillStretch 

Instances

Eq FillMode # 
Show FillMode # 
Generic FillMode # 

Associated Types

type Rep FillMode :: * -> * #

Methods

from :: FillMode -> Rep FillMode x #

to :: Rep FillMode x -> FillMode #

FromCursor FillMode # 

Methods

fromCursor :: Cursor -> [FillMode] #

type Rep FillMode # 
type Rep FillMode = D1 (MetaData "FillMode" "Codec.Xlsx.Types.Drawing" "xlsx-0.6.0-9Et6tz40HhX7mNeKNADElD" False) ((:+:) (C1 (MetaCons "FillTile" PrefixI False) U1) (C1 (MetaCons "FillStretch" PrefixI False) U1))

data Anchor p g #

Instances

(Eq p, Eq g) => Eq (Anchor p g) # 

Methods

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

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

(Show p, Show g) => Show (Anchor p g) # 

Methods

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

show :: Anchor p g -> String #

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

Generic (Anchor p g) # 

Associated Types

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

Methods

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

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

FromCursor (Anchor RefId RefId) # 
type Rep (Anchor p g) # 
type Rep (Anchor p g) = D1 (MetaData "Anchor" "Codec.Xlsx.Types.Drawing" "xlsx-0.6.0-9Et6tz40HhX7mNeKNADElD" False) (C1 (MetaCons "Anchor" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_anchAnchoring") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Anchoring)) ((:*:) (S1 (MetaSel (Just Symbol "_anchObject") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (DrawingObject p g))) (S1 (MetaSel (Just Symbol "_anchClientData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ClientData)))))

simpleAnchorXY #

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

data GenericDrawing p g #

Constructors

Drawing 

Fields

Instances

ToElement UnresolvedDrawing # 
ToDocument UnresolvedDrawing # 
FromCursor UnresolvedDrawing # 
(Eq g, Eq p) => Eq (GenericDrawing p g) # 
(Show g, Show p) => Show (GenericDrawing p g) # 
Generic (GenericDrawing p g) # 

Associated Types

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

Methods

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

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

type Rep (GenericDrawing p g) # 
type Rep (GenericDrawing p g) = D1 (MetaData "GenericDrawing" "Codec.Xlsx.Types.Drawing" "xlsx-0.6.0-9Et6tz40HhX7mNeKNADElD" False) (C1 (MetaCons "Drawing" PrefixI True) (S1 (MetaSel (Just Symbol "_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) #

anchClientData :: forall p g. Lens' (Anchor p g) ClientData #

anchAnchoring :: forall p g. Lens' (Anchor p g) Anchoring #

picMacro :: forall p g. Traversal' (DrawingObject p g) (Maybe Text) #

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

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

xdr :: Text -> Name #

Add Spreadsheet DrawingML namespace to name