From a08c8eb1aecea4a7d82fc70eb2aa4f886a6ed632 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Thu, 22 Dec 2016 10:10:40 +0800 Subject: - Fix issue comments missing after save; - Update import PKG syntax in struct; - Update test XLSX file (include table, charts, functions, comments and hyperlink on Sheet1) --- xmlWorksheet.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'xmlWorksheet.go') diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 02794e4..2847c39 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -23,6 +23,7 @@ type xlsxWorksheet struct { PageSetUp xlsxPageSetUp `xml:"pageSetup"` HeaderFooter xlsxHeaderFooter `xml:"headerFooter"` Drawing xlsxDrawing `xml:"drawing"` + LegacyDrawing xlsxLegacyDrawing `xml:"legacyDrawing"` Picture xlsxPicture `xml:"picture"` TableParts xlsxTableParts `xml:"tableParts"` } @@ -350,3 +351,16 @@ type xlsxTablePart struct { type xlsxPicture struct { RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"` // Relationship Id pointing to the image part. } + +// xlsxLegacyDrawing directly maps the legacyDrawing element in the namespace +// http://schemas.openxmlformats.org/spreadsheetml/2006/main - +// A comment is a rich text note that is attached to, and associated with, +// a cell, separate from other cell content. Comment content is stored +// separate from the cell, and is displayed in a drawing object (like a +// text box) that is separate from, but associated with, a cell. Comments +// are used as reminders, such as noting how a complex formula works, or +// to provide feedback to other users. Comments can also be used to explain +// assumptions made in a formula or to call out something special about the cell. +type xlsxLegacyDrawing struct { + RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"` +} -- cgit v1.2.1