sheetjs-clone/bits/79_xmlbin.js
SheetJS d15b81e0e9 version bump 0.7.0: Basic write support
- very basic XLSX / XLSM write support with roundtrip tests (XLSB stubs)
- reorganized source tree
- new XLSB range check ensures that A1 is not emitted for empty sheets
- SSF table emitted in output (consistent with js-xls)
- CLI supports writing

Backwards-incompatible changes:
o new Property aliases (see CORE_PROPS and EXT_PROPS)
o FILETIME custom properties parsed as JS Dates
o `xlsx2csv` -> `xlsx` (and `bin/xlsx{2csv,}.njs`)
2014-05-15 17:33:34 -07:00

49 lines
1.5 KiB
JavaScript

function parse_wb(data, name, opts) {
return (name.substr(-4)===".bin" ? parse_wb_bin : parse_wb_xml)(data, opts);
}
function parse_ws(data, name, opts, rels) {
return (name.substr(-4)===".bin" ? parse_ws_bin : parse_ws_xml)(data, opts, rels);
}
function parse_sty(data, name, opts) {
return (name.substr(-4)===".bin" ? parse_sty_bin : parse_sty_xml)(data, opts);
}
function parse_sst(data, name, opts) {
return (name.substr(-4)===".bin" ? parse_sst_bin : parse_sst_xml)(data, opts);
}
function parse_cmnt(data, name, opts) {
return (name.substr(-4)===".bin" ? parse_comments_bin : parse_comments_xml)(data, opts);
}
function parse_cc(data, name, opts) {
return (name.substr(-4)===".bin" ? parse_cc_bin : parse_cc_xml)(data, opts);
}
function write_wb(wb, name, opts) {
return (name.substr(-4)===".bin" ? write_wb_bin : write_wb_xml)(wb, opts);
}
function write_ws(data, name, opts, wb) {
return (name.substr(-4)===".bin" ? write_ws_bin : write_ws_xml)(data, opts, wb);
}
function write_sty(data, name, opts) {
return (name.substr(-4)===".bin" ? write_sty_bin : write_sty_xml)(data, opts);
}
function write_sst(data, name, opts) {
return (name.substr(-4)===".bin" ? write_sst_bin : write_sst_xml)(data, opts);
}
/*
function write_cmnt(data, name, opts) {
return (name.substr(-4)===".bin" ? write_comments_bin : write_comments_xml)(data, opts);
}
function write_cc(data, name, opts) {
return (name.substr(-4)===".bin" ? write_cc_bin : write_cc_xml)(data, opts);
}
*/