summaryrefslogtreecommitdiff
path: root/xmlDecodeDrawing.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-03-05 14:48:34 +0800
committerxuri <xuri.me@gmail.com>2022-03-05 14:48:34 +0800
commitf0cb29cf6668ab96992b1e48278d9f5b1f9e4976 (patch)
tree3bcc69e973d070edf0d3a0f7764bb7e91d7774ca /xmlDecodeDrawing.go
parent129052ae7db0fd2c59b1ea9158df0e75450cad42 (diff)
This closes #1162, improve the compatibility with alternate content
Preserve alternate content in the workbook, worksheet, and drawingML
Diffstat (limited to 'xmlDecodeDrawing.go')
-rw-r--r--xmlDecodeDrawing.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/xmlDecodeDrawing.go b/xmlDecodeDrawing.go
index 9091440..fb920be 100644
--- a/xmlDecodeDrawing.go
+++ b/xmlDecodeDrawing.go
@@ -63,12 +63,13 @@ type decodeCNvSpPr struct {
// changed after serialization and deserialization, two different structures
// are defined. decodeWsDr just for deserialization.
type decodeWsDr struct {
- A string `xml:"xmlns a,attr"`
- Xdr string `xml:"xmlns xdr,attr"`
- R string `xml:"xmlns r,attr"`
- OneCellAnchor []*decodeCellAnchor `xml:"oneCellAnchor,omitempty"`
- TwoCellAnchor []*decodeCellAnchor `xml:"twoCellAnchor,omitempty"`
- XMLName xml.Name `xml:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing wsDr,omitempty"`
+ XMLName xml.Name `xml:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing wsDr,omitempty"`
+ A string `xml:"xmlns a,attr"`
+ Xdr string `xml:"xmlns xdr,attr"`
+ R string `xml:"xmlns r,attr"`
+ AlternateContent []*xlsxInnerXML `xml:"http://schemas.openxmlformats.org/markup-compatibility/2006 AlternateContent"`
+ OneCellAnchor []*decodeCellAnchor `xml:"oneCellAnchor,omitempty"`
+ TwoCellAnchor []*decodeCellAnchor `xml:"twoCellAnchor,omitempty"`
}
// decodeTwoCellAnchor directly maps the oneCellAnchor (One Cell Anchor Shape