elixlsx v0.3.1 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()
zip_tuple :: {charlist, String.t}

Functions

create_files(workbook, wci)

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)
get__rels_dir(Elixlsx.Workbook.t) :: [zip_tuple]

Returns files in the _rels/ directory.

get__rels_dotrels()
get__rels_dotrels(Elixlsx.Workbook.t) :: zip_tuple

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

get_contentTypes_xml(, wci)
get_docProps_app_xml()
get_docProps_app_xml(Elixlsx.Workbook.t) :: zip_tuple

returns a tuple {‘docProps/app.xml’, “XML Data”}

get_docProps_core_xml(workbook)
get_docProps_core_xml(Elixlsx.Workbook.t) :: zip_tuple
get_docProps_dir(data)
get_docProps_dir(Elixlsx.Workbook.t) :: [zip_tuple]

Returns files in the docProps directory.

get_xl_dir(data, wci)
get_xl_rels_dir(, sheetCompInfos, next_rId)
get_xl_rels_dir(any, [Elixlsx.Compiler.SheetCompInfo.t], non_neg_integer) :: [zip_tuple]
get_xl_sharedStrings_xml(, wci)
get_xl_sharedStrings_xml(any, Elixlsx.Compiler.WorkbookCompInfo.t) :: zip_tuple
get_xl_styles_xml(wci)
get_xl_workbook_xml(data, sheetCompInfos)
get_xl_worksheets_dir(data, wci)