2014-03-29 22:53:15 +00:00
|
|
|
/* 18.6 Calculation Chain */
|
|
|
|
function parse_cc_xml(data, opts) {
|
|
|
|
var d = [];
|
|
|
|
var l = 0, i = 1;
|
2014-06-29 18:29:45 +00:00
|
|
|
(data.match(tagregex)||[]).forEach(function(x) {
|
2014-03-29 22:53:15 +00:00
|
|
|
var y = parsexmltag(x);
|
|
|
|
switch(y[0]) {
|
|
|
|
case '<?xml': break;
|
|
|
|
/* 18.6.2 calcChain CT_CalcChain 1 */
|
|
|
|
case '<calcChain': case '<calcChain>': case '</calcChain>': break;
|
|
|
|
/* 18.6.1 c CT_CalcCell 1 */
|
|
|
|
case '<c': delete y[0]; if(y.i) i = y.i; else y.i = i; d.push(y); break;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return d;
|
|
|
|
}
|
|
|
|
|
2014-05-29 22:30:03 +00:00
|
|
|
function write_cc_xml(data, opts) { }
|