2017-03-12 18:02:43 +00:00
|
|
|
function parse_wb(data, name/*:string*/, opts)/*:WorkbookFile*/ {
|
2017-02-22 06:57:59 +00:00
|
|
|
if(name.slice(-4)===".bin") return parse_wb_bin((data/*:any*/), opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
return parse_wb_xml((data/*:any*/), opts);
|
|
|
|
}
|
|
|
|
|
2017-11-20 01:51:14 +00:00
|
|
|
function parse_ws(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Worksheet*/ {
|
|
|
|
if(name.slice(-4)===".bin") return parse_ws_bin((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
|
|
|
return parse_ws_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
2017-11-20 01:51:14 +00:00
|
|
|
function parse_cs(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Worksheet*/ {
|
|
|
|
if(name.slice(-4)===".bin") return parse_cs_bin((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
|
|
|
return parse_cs_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
2017-03-27 21:35:15 +00:00
|
|
|
}
|
|
|
|
|
2017-11-20 01:51:14 +00:00
|
|
|
function parse_ms(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Worksheet*/ {
|
|
|
|
if(name.slice(-4)===".bin") return parse_ms_bin((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
|
|
|
return parse_ms_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
2017-03-28 04:41:01 +00:00
|
|
|
}
|
|
|
|
|
2017-11-20 01:51:14 +00:00
|
|
|
function parse_ds(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Worksheet*/ {
|
|
|
|
if(name.slice(-4)===".bin") return parse_ds_bin((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
|
|
|
return parse_ds_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
|
2017-03-28 04:41:01 +00:00
|
|
|
}
|
|
|
|
|
2017-03-19 06:50:30 +00:00
|
|
|
function parse_sty(data, name/*:string*/, themes, opts) {
|
|
|
|
if(name.slice(-4)===".bin") return parse_sty_bin((data/*:any*/), themes, opts);
|
|
|
|
return parse_sty_xml((data/*:any*/), themes, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
2017-03-12 18:02:43 +00:00
|
|
|
function parse_theme(data/*:string*/, name/*:string*/, opts) {
|
2017-02-10 19:23:01 +00:00
|
|
|
return parse_theme_xml(data, opts);
|
|
|
|
}
|
|
|
|
|
|
|
|
function parse_sst(data, name/*:string*/, opts)/*:SST*/ {
|
2017-02-22 06:57:59 +00:00
|
|
|
if(name.slice(-4)===".bin") return parse_sst_bin((data/*:any*/), opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
return parse_sst_xml((data/*:any*/), opts);
|
|
|
|
}
|
|
|
|
|
2017-12-30 05:40:35 +00:00
|
|
|
function parse_cmnt(data, name/*:string*/, opts)/*:Array<RawComment>*/ {
|
2017-02-22 06:57:59 +00:00
|
|
|
if(name.slice(-4)===".bin") return parse_comments_bin((data/*:any*/), opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
return parse_comments_xml((data/*:any*/), opts);
|
|
|
|
}
|
|
|
|
|
|
|
|
function parse_cc(data, name/*:string*/, opts) {
|
2017-08-19 23:06:34 +00:00
|
|
|
if(name.slice(-4)===".bin") return parse_cc_bin((data/*:any*/), name, opts);
|
|
|
|
return parse_cc_xml((data/*:any*/), name, opts);
|
|
|
|
}
|
|
|
|
|
2019-11-01 03:09:14 +00:00
|
|
|
function parse_xlink(data, rel, name/*:string*/, opts) {
|
|
|
|
if(name.slice(-4)===".bin") return parse_xlink_bin((data/*:any*/), rel, name, opts);
|
|
|
|
return parse_xlink_xml((data/*:any*/), rel, name, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function write_wb(wb, name/*:string*/, opts) {
|
2017-02-22 06:57:59 +00:00
|
|
|
return (name.slice(-4)===".bin" ? write_wb_bin : write_wb_xml)(wb, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
2017-04-08 06:55:35 +00:00
|
|
|
function write_ws(data/*:number*/, name/*:string*/, opts, wb/*:Workbook*/, rels) {
|
2017-03-31 00:47:35 +00:00
|
|
|
return (name.slice(-4)===".bin" ? write_ws_bin : write_ws_xml)(data, opts, wb, rels);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
2018-01-23 09:07:51 +00:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
2017-04-08 06:55:35 +00:00
|
|
|
function write_cs(data/*:number*/, name/*:string*/, opts, wb/*:Workbook*/, rels) {
|
|
|
|
return (name.slice(-4)===".bin" ? write_cs_bin : write_cs_xml)(data, opts, wb, rels);
|
|
|
|
}
|
|
|
|
|
2017-02-10 19:23:01 +00:00
|
|
|
function write_sty(data, name/*:string*/, opts) {
|
2017-02-22 06:57:59 +00:00
|
|
|
return (name.slice(-4)===".bin" ? write_sty_bin : write_sty_xml)(data, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function write_sst(data/*:SST*/, name/*:string*/, opts) {
|
2017-02-22 06:57:59 +00:00
|
|
|
return (name.slice(-4)===".bin" ? write_sst_bin : write_sst_xml)(data, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
2017-04-02 06:47:25 +00:00
|
|
|
|
|
|
|
function write_cmnt(data/*:Array<any>*/, name/*:string*/, opts) {
|
2017-02-22 06:57:59 +00:00
|
|
|
return (name.slice(-4)===".bin" ? write_comments_bin : write_comments_xml)(data, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
2017-04-02 06:47:25 +00:00
|
|
|
/*
|
2017-02-10 19:23:01 +00:00
|
|
|
function write_cc(data, name:string, opts) {
|
2017-02-22 06:57:59 +00:00
|
|
|
return (name.slice(-4)===".bin" ? write_cc_bin : write_cc_xml)(data, opts);
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
*/
|