2017-04-08 06:55:35 +00:00
|
|
|
RELS.IMG = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
|
|
|
|
RELS.DRAW = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
|
2017-03-27 21:35:15 +00:00
|
|
|
/* 20.5 DrawingML - SpreadsheetML Drawing */
|
|
|
|
function parse_drawing(data, rels/*:any*/) {
|
|
|
|
if(!data) return "??";
|
|
|
|
/*
|
|
|
|
Chartsheet Drawing:
|
|
|
|
- 20.5.2.35 wsDr CT_Drawing
|
|
|
|
- 20.5.2.1 absoluteAnchor CT_AbsoluteAnchor
|
|
|
|
- 20.5.2.16 graphicFrame CT_GraphicalObjectFrame
|
|
|
|
- 20.1.2.2.16 graphic CT_GraphicalObject
|
|
|
|
- 20.1.2.2.17 graphicData CT_GraphicalObjectData
|
2017-03-28 04:41:01 +00:00
|
|
|
- chart reference
|
|
|
|
the actual type is based on the URI of the graphicData
|
2017-03-27 21:35:15 +00:00
|
|
|
TODO: handle embedded charts and other types of graphics
|
|
|
|
*/
|
|
|
|
var id = (data.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];
|
|
|
|
|
|
|
|
return rels['!id'][id].Target;
|
|
|
|
}
|
2017-04-08 06:55:35 +00:00
|
|
|
|