elixlsx v0.0.4 Elixlsx.Writer

Contains functions to generate the individual files in the XLSX zip package.

Summary

Functions

Returns a list of tuples {filename, filecontent}. Both filename and filecontent are represented as charlists (so that they can be used with the OTP :zip module.)

Returns files in the _rels/ directory

Returns the filename '_rels/.rels' and it's content as a tuple

returns a tuple {'docProps/app.xml', "XML Data"}

Returns files in the docProps directory

Types

zip_tuple :: {char_list, String.t}

Functions

create_files(workbook, wci)

Specs

create_files(Workbook.t, Elixlsx.Compiler.WorkbookCompInfo.t) :: [zip_tuple]

Returns a list of tuples {filename, filecontent}. Both filename and filecontent are represented as charlists (so that they can be used with the OTP :zip module.)

get__rels_dir(data)

Specs

get__rels_dir(Workbook.t) :: [zip_tuple]

Returns files in the _rels/ directory.

get__rels_dotrels()

Specs

get__rels_dotrels(Workbook.t) :: zip_tuple

Returns the filename '_rels/.rels' and it's content as a tuple

get_contentTypes_xml(, wci)
get_docProps_app_xml()

Specs

get_docProps_app_xml(Workbook.t) :: zip_tuple

returns a tuple {'docProps/app.xml', "XML Data"}

get_docProps_core_xml(workbook)

Specs

get_docProps_core_xml(Workbook.t) :: zip_tuple
get_docProps_dir(data)

Specs

get_docProps_dir(Workbook.t) :: [zip_tuple]

Returns files in the docProps directory.

get_xl_dir(data, wci)
get_xl_rels_dir(, sheetCompInfos, next_rId)

Specs

get_xl_rels_dir(any, Elixlsx.Compiler.SheetCompInfo.t, non_neg_integer) :: [zip_tuple]
get_xl_sharedStrings_xml(, wci)

Specs

get_xl_sharedStrings_xml(any, Elixlsx.Compiler.WorkbookCompInfo.t) :: zip_tuple
get_xl_styles_xml(wci)

Specs

get_xl_workbook_xml(data, sheetCompInfos)

Specs

get_xl_workbook_xml(Workbook.t, SheetCompInfos.t) :: zip_tuple
get_xl_worksheets_dir(data, wci)

Specs

get_xl_worksheets_dir(Workbook.t, Elixlsx.Compiler.WorkbookCompInfo.t) :: [zip_tuple]