Lines Matching refs:rels

5255 	"application/vnd.openxmlformats-package.relationships+xml": "rels",
5309 rels:[], strs:[], comments:[], threadedcomments:[], links:[],
5365 ['rels', 'application/vnd.openxmlformats-package.relationships+xml']
5456 return file.slice(0,n+1) + '_rels/' + file.slice(n+1) + ".rels";
5460 var rels = {"!id":{}}; class in parse_rels
5461 if (!data) return rels;
5473 rels[canonictarget] = rel;
5477 rels["!id"] = hash;
5478 return rels;
5483 function write_rels(rels)/*:string*/ { argument
5488 keys(rels['!id']).forEach(function(rid) {
5489 o[o.length] = (writextag('Relationship', null, rels['!id'][rid]));
5495 function add_rels(rels, rId/*:number*/, f, type, relobj, targetmode/*:?string*/)/*:number*/ { argument
5497 if(!rels['!id']) rels['!id'] = {};
5498 if(!rels['!idx']) rels['!idx'] = 1;
5499 if(rId < 0) for(rId = rels['!idx']; rels['!id']['rId' + rId]; ++rId){/* empty */}
5500 rels['!idx'] = rId + 1;
5506 if(rels['!id'][relobj.Id]) throw new Error("Cannot rewrite rId " + rId);
5507 rels['!id'][relobj.Id] = relobj;
5508 rels[('/' + relobj.Target).replace("//","/")] = relobj;
12085 function parse_drawing(data, rels/*:any*/) { argument
12100 return rels['!id'][id].Target;
12501 function parse_ds_bin(/*::data:any, opts, idx:number, rels, wb, themes, styles*/)/*:Worksheet*/ { r…
12502 function parse_ds_xml(/*::data:any, opts, idx:number, rels, wb, themes, styles*/)/*:Worksheet*/ { r…
12503 function parse_ms_bin(/*::data:any, opts, idx:number, rels, wb, themes, styles*/)/*:Worksheet*/ { r…
12504 function parse_ms_xml(/*::data:any, opts, idx:number, rels, wb, themes, styles*/)/*:Worksheet*/ { r…
15257 function parse_ws_xml(data/*:?string*/, opts, idx/*:number*/, rels, wb/*:WBWBProps*/, themes, style… argument
15259 if(!rels) rels = {'!id':{}};
15312 if(hlink) parse_ws_xml_hlinks(s, hlink, rels);
15391 function parse_ws_xml_hlinks(s, data/*:Array<string>*/, rels) { argument
15396 var rel = ((rels || {})['!id']||[])[val.id];
15737 function write_ws_xml_data(ws/*:Worksheet*/, opts, idx/*:number*/, wb/*:Workbook*//*::, rels*/)/*:s…
15781 function write_ws_xml(idx/*:number*/, opts, wb/*:Workbook*/, rels)/*:string*/ { argument
15797 if(!rels) rels = {};
15819 rdata = write_ws_xml_data(ws, opts, idx, wb, rels);
15850 rId = add_rels(rels, -1, escapexml(l[1].Target).replace(/#.*$/, ""), RELS.HLINK);
15878 rId = add_rels(rels, -1, "../drawings/drawing" + (idx+1) + ".xml", RELS.DRAW);
15884 rId = add_rels(rels, -1, "../drawings/vmlDrawing" + (idx+1) + ".vml", RELS.VML);
16407 function parse_ws_bin(data, _opts, idx, rels, wb/*:WBWBProps*/, themes, styles)/*:Worksheet*/ { argument
16410 if(!rels) rels = {'!id':{}};
16542 var rel = rels['!id'][val.relId];
16809 function write_HLINKS(ba, ws/*:Worksheet*/, rels) { argument
16813 var rId = add_rels(rels, -1, l[1].Target.replace(/#.*$/, ""), RELS.HLINK);
16818 function write_LEGACYDRAWING(ba, ws/*:Worksheet*/, idx/*:number*/, rels) { argument
16821 var rId = add_rels(rels, -1, "../drawings/vmlDrawing" + (idx+1) + ".vml", RELS.VML);
16879 function write_ws_bin(idx/*:number*/, opts, wb/*:Workbook*/, rels) { argument
16911 write_HLINKS(ba, ws, rels);
16923 write_LEGACYDRAWING(ba, ws, idx, rels);
16955 function parse_chart(data/*:?string*/, name/*:string*/, opts, rels, wb, csheet) { argument
16980 function parse_cs_xml(data/*:?string*/, opts, idx/*:number*/, rels, wb/*::, themes, styles*/)/*:Wor… argument
16983 if(!rels) rels = {'!id':{}};
16994 if(rels['!id'][s['!rel']]) s['!drawel'] = rels['!id'][s['!rel']];
16997 //function write_cs_xml(idx/*:number*/, opts, wb/*:Workbook*/, rels)/*:string*/ {
17003 // add_rels(rels, -1, "../drawings/drawing" + (idx+1) + ".xml", RELS.DRAW);
17016 function parse_cs_bin(data, opts, idx/*:number*/, rels, wb/*::, themes, styles*/)/*:Worksheet*/ { argument
17018 if(!rels) rels = {'!id':{}};
17059 if(rels['!id'][s['!rel']]) s['!drawel'] = rels['!id'][s['!rel']];
17062 //function write_cs_bin(/*::idx:number, opts, wb:Workbook, rels*/) {
17844 function parse_ws(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Workshee… argument
17845 …if(name.slice(-4)===".bin") return parse_ws_bin((data/*:any*/), opts, idx, rels, wb, themes, style…
17846 return parse_ws_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
17849 function parse_cs(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Workshee… argument
17850 …if(name.slice(-4)===".bin") return parse_cs_bin((data/*:any*/), opts, idx, rels, wb, themes, style…
17851 return parse_cs_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
17854 function parse_ms(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Workshee… argument
17855 …if(name.slice(-4)===".bin") return parse_ms_bin((data/*:any*/), opts, idx, rels, wb, themes, style…
17856 return parse_ms_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
17859 function parse_ds(data, name/*:string*/, idx/*:number*/, opts, rels, wb, themes, styles)/*:Workshee… argument
17860 …if(name.slice(-4)===".bin") return parse_ds_bin((data/*:any*/), opts, idx, rels, wb, themes, style…
17861 return parse_ds_xml((data/*:any*/), opts, idx, rels, wb, themes, styles);
25106 /* scan rels for comments and threaded comments */
25191 var rels = parse_rels(getzipstr(zip, get_rels_path(strip_front_slash(link))), link);
25192 return parse_xlink(getzipdata(zip, strip_front_slash(link)), rels, link, opts);
25245 …0].slice(0, wbrelsi+1) + "_rels/" + dir.workbooks[0].slice(wbrelsi+1) + ".rels").replace(/^\//,"");
25246 if(!safegetzipfile(zip, wbrelsfile)) wbrelsfile = 'xl/_rels/workbook.' + wbext + '.rels';
25273 relsPath = path.replace(/^(.*)(\/)([^\/]*)$/, "$1/_rels/$3.rels");
25381 opts.rels = {}; opts.wbrels = {};
25400 add_rels(opts.rels, 2, f, RELS.CORE_PROPS);
25415 add_rels(opts.rels, 3, f, RELS.EXT_PROPS);
25421 add_rels(opts.rels, 4, f, RELS.CUST_PROPS);
25469 add_rels(opts.rels, 1, f, RELS.WB);
25499 zip_add_file(zip, '_rels/.rels', write_rels(opts.rels));
25500 zip_add_file(zip, 'xl/_rels/workbook.' + wbext + '.rels', write_rels(opts.wbrels));
25516 opts.rels = {}; opts.wbrels = {};
25535 add_rels(opts.rels, 2, f, RELS.CORE_PROPS);
25550 add_rels(opts.rels, 3, f, RELS.EXT_PROPS);
25556 add_rels(opts.rels, 4, f, RELS.CUST_PROPS);
25618 add_rels(opts.rels, 1, f, RELS.WB);
25654 zip_add_file(zip, '_rels/.rels', write_rels(opts.rels));
25655 zip_add_file(zip, 'xl/_rels/workbook.' + wbext + '.rels', write_rels(opts.wbrels));