xmlWorksheet.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. package excelize
  2. import "encoding/xml"
  3. // xlsxWorksheet directly maps the worksheet element in the namespace
  4. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  5. // not checked it for completeness - it does as much as I need.
  6. type xlsxWorksheet struct {
  7. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
  8. SheetPr *xlsxSheetPr `xml:"sheetPr"`
  9. Dimension xlsxDimension `xml:"dimension"`
  10. SheetViews xlsxSheetViews `xml:"sheetViews"`
  11. SheetFormatPr *xlsxSheetFormatPr `xml:"sheetFormatPr"`
  12. Cols *xlsxCols `xml:"cols,omitempty"`
  13. SheetData xlsxSheetData `xml:"sheetData"`
  14. SheetProtection *xlsxSheetProtection `xml:"sheetProtection"`
  15. MergeCells *xlsxMergeCells `xml:"mergeCells,omitempty"`
  16. ConditionalFormatting *xlsxConditionalFormatting `xml:"conditionalFormatting"`
  17. DataValidations *xlsxDataValidations `xml:"dataValidations"`
  18. Hyperlinks *xlsxHyperlinks `xml:"hyperlinks"`
  19. PrintOptions *xlsxPrintOptions `xml:"printOptions"`
  20. PageMargins *xlsxPageMargins `xml:"pageMargins"`
  21. PageSetUp *xlsxPageSetUp `xml:"pageSetup"`
  22. HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
  23. Drawing *xlsxDrawing `xml:"drawing"`
  24. LegacyDrawing *xlsxLegacyDrawing `xml:"legacyDrawing"`
  25. Picture *xlsxPicture `xml:"picture"`
  26. TableParts *xlsxTableParts `xml:"tableParts"`
  27. ExtLst *xlsxExtLst `xml:"extLst"`
  28. }
  29. // xlsxDrawing change r:id to rid in the namespace.
  30. type xlsxDrawing struct {
  31. RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
  32. }
  33. // xlsxHeaderFooter directly maps the headerFooter element in the namespace
  34. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - When printed or
  35. // viewed in page layout view (§18.18.69), each page of a worksheet can have a
  36. // page header, a page footer, or both. The headers and footers on odd-numbered
  37. // pages can differ from those on even-numbered pages, and the headers and
  38. // footers on the first page can differ from those on odd- and even-numbered
  39. // pages. In the latter case, the first page is not considered an odd page.
  40. type xlsxHeaderFooter struct {
  41. DifferentFirst bool `xml:"differentFirst,attr,omitempty"`
  42. DifferentOddEven bool `xml:"differentOddEven,attr,omitempty"`
  43. OddHeader []*xlsxOddHeader `xml:"oddHeader"`
  44. OddFooter []*xlsxOddFooter `xml:"oddFooter"`
  45. }
  46. // xlsxOddHeader directly maps the oddHeader element in the namespace
  47. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  48. // not checked it for completeness - it does as much as I need.
  49. type xlsxOddHeader struct {
  50. Content string `xml:",chardata"`
  51. }
  52. // xlsxOddFooter directly maps the oddFooter element in the namespace
  53. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  54. // not checked it for completeness - it does as much as I need.
  55. type xlsxOddFooter struct {
  56. Content string `xml:",chardata"`
  57. }
  58. // xlsxPageSetUp directly maps the pageSetup element in the namespace
  59. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Page setup
  60. // settings for the worksheet.
  61. type xlsxPageSetUp struct {
  62. BlackAndWhite bool `xml:"blackAndWhite,attr,omitempty"`
  63. CellComments string `xml:"cellComments,attr,omitempty"`
  64. Copies int `xml:"copies,attr,omitempty"`
  65. Draft bool `xml:"draft,attr,omitempty"`
  66. Errors string `xml:"errors,attr,omitempty"`
  67. FirstPageNumber int `xml:"firstPageNumber,attr,omitempty"`
  68. FitToHeight int `xml:"fitToHeight,attr,omitempty"`
  69. FitToWidth int `xml:"fitToWidth,attr,omitempty"`
  70. HorizontalDPI float32 `xml:"horizontalDpi,attr,omitempty"`
  71. RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
  72. Orientation string `xml:"orientation,attr,omitempty"`
  73. PageOrder string `xml:"pageOrder,attr,omitempty"`
  74. PaperHeight string `xml:"paperHeight,attr,omitempty"`
  75. PaperSize string `xml:"paperSize,attr,omitempty"`
  76. PaperWidth string `xml:"paperWidth,attr,omitempty"`
  77. Scale int `xml:"scale,attr,omitempty"`
  78. UseFirstPageNumber bool `xml:"useFirstPageNumber,attr,omitempty"`
  79. UsePrinterDefaults bool `xml:"usePrinterDefaults,attr,omitempty"`
  80. VerticalDPI float32 `xml:"verticalDpi,attr,omitempty"`
  81. }
  82. // xlsxPrintOptions directly maps the printOptions element in the namespace
  83. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Print options for
  84. // the sheet. Printer-specific settings are stored separately in the Printer
  85. // Settings part.
  86. type xlsxPrintOptions struct {
  87. GridLines bool `xml:"gridLines,attr,omitempty"`
  88. GridLinesSet bool `xml:"gridLinesSet,attr,omitempty"`
  89. Headings bool `xml:"headings,attr,omitempty"`
  90. HorizontalCentered bool `xml:"horizontalCentered,attr,omitempty"`
  91. VerticalCentered bool `xml:"verticalCentered,attr,omitempty"`
  92. }
  93. // xlsxPageMargins directly maps the pageMargins element in the namespace
  94. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Page margins for
  95. // a sheet or a custom sheet view.
  96. type xlsxPageMargins struct {
  97. Bottom float64 `xml:"bottom,attr"`
  98. Footer float64 `xml:"footer,attr"`
  99. Header float64 `xml:"header,attr"`
  100. Left float64 `xml:"left,attr"`
  101. Right float64 `xml:"right,attr"`
  102. Top float64 `xml:"top,attr"`
  103. }
  104. // xlsxSheetFormatPr directly maps the sheetFormatPr element in the namespace
  105. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  106. // not checked it for completeness - it does as much as I need.
  107. type xlsxSheetFormatPr struct {
  108. DefaultColWidth float64 `xml:"defaultColWidth,attr,omitempty"`
  109. DefaultRowHeight float64 `xml:"defaultRowHeight,attr"`
  110. CustomHeight float64 `xml:"customHeight,attr,omitempty"`
  111. ZeroHeight float64 `xml:"zeroHeight,attr,omitempty"`
  112. OutlineLevelCol uint8 `xml:"outlineLevelCol,attr,omitempty"`
  113. OutlineLevelRow uint8 `xml:"outlineLevelRow,attr,omitempty"`
  114. }
  115. // xlsxSheetViews directly maps the sheetViews element in the namespace
  116. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Worksheet views
  117. // collection.
  118. type xlsxSheetViews struct {
  119. SheetView []xlsxSheetView `xml:"sheetView"`
  120. }
  121. // xlsxSheetView directly maps the sheetView element in the namespace
  122. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  123. // not checked it for completeness - it does as much as I need. A single sheet
  124. // view definition. When more than one sheet view is defined in the file, it
  125. // means that when opening the workbook, each sheet view corresponds to a
  126. // separate window within the spreadsheet application, where each window is
  127. // showing the particular sheet containing the same workbookViewId value, the
  128. // last sheetView definition is loaded, and the others are discarded. When
  129. // multiple windows are viewing the same sheet, multiple sheetView elements
  130. // (with corresponding workbookView entries) are saved.
  131. type xlsxSheetView struct {
  132. WindowProtection bool `xml:"windowProtection,attr,omitempty"`
  133. ShowFormulas bool `xml:"showFormulas,attr,omitempty"`
  134. ShowGridLines string `xml:"showGridLines,attr,omitempty"`
  135. ShowRowColHeaders bool `xml:"showRowColHeaders,attr,omitempty"`
  136. ShowZeros bool `xml:"showZeros,attr,omitempty"`
  137. RightToLeft bool `xml:"rightToLeft,attr,omitempty"`
  138. TabSelected bool `xml:"tabSelected,attr,omitempty"`
  139. ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr,omitempty"`
  140. DefaultGridColor bool `xml:"defaultGridColor,attr"`
  141. View string `xml:"view,attr,omitempty"`
  142. TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
  143. ColorID int `xml:"colorId,attr,omitempty"`
  144. ZoomScale float64 `xml:"zoomScale,attr,omitempty"`
  145. ZoomScaleNormal float64 `xml:"zoomScaleNormal,attr,omitempty"`
  146. ZoomScalePageLayoutView float64 `xml:"zoomScalePageLayoutView,attr,omitempty"`
  147. WorkbookViewID int `xml:"workbookViewId,attr"`
  148. Pane *xlsxPane `xml:"pane,omitempty"`
  149. Selection []*xlsxSelection `xml:"selection"`
  150. }
  151. // xlsxSelection directly maps the selection element in the namespace
  152. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Worksheet view
  153. // selection.
  154. type xlsxSelection struct {
  155. ActiveCell string `xml:"activeCell,attr,omitempty"`
  156. ActiveCellID int `xml:"activeCellId,attr"`
  157. Pane string `xml:"pane,attr,omitempty"`
  158. SQRef string `xml:"sqref,attr,omitempty"`
  159. }
  160. // xlsxSelection directly maps the selection element. Worksheet view pane.
  161. type xlsxPane struct {
  162. ActivePane string `xml:"activePane,attr,omitempty"`
  163. State string `xml:"state,attr,omitempty"` // Either "split" or "frozen"
  164. TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
  165. XSplit float64 `xml:"xSplit,attr,omitempty"`
  166. YSplit float64 `xml:"ySplit,attr,omitempty"`
  167. }
  168. // xlsxSheetPr directly maps the sheetPr element in the namespace
  169. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Sheet-level
  170. // properties.
  171. type xlsxSheetPr struct {
  172. XMLName xml.Name `xml:"sheetPr"`
  173. CodeName string `xml:"codeName,attr,omitempty"`
  174. EnableFormatConditionsCalculation bool `xml:"enableFormatConditionsCalculation,attr,omitempty"`
  175. FilterMode bool `xml:"filterMode,attr,omitempty"`
  176. Published bool `xml:"published,attr,omitempty"`
  177. SyncHorizontal bool `xml:"syncHorizontal,attr,omitempty"`
  178. SyncVertical bool `xml:"syncVertical,attr,omitempty"`
  179. TransitionEntry bool `xml:"transitionEntry,attr,omitempty"`
  180. TabColor *xlsxTabColor `xml:"tabColor,omitempty"`
  181. PageSetUpPr *xlsxPageSetUpPr `xml:"pageSetUpPr,omitempty"`
  182. }
  183. // xlsxPageSetUpPr directly maps the pageSetupPr element in the namespace
  184. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Page setup
  185. // properties of the worksheet.
  186. type xlsxPageSetUpPr struct {
  187. AutoPageBreaks bool `xml:"autoPageBreaks,attr,omitempty"`
  188. FitToPage bool `xml:"fitToPage,attr,omitempty"` // Flag indicating whether the Fit to Page print option is enabled.
  189. }
  190. // xlsxTabColor directly maps the tabColor element in the namespace currently I
  191. // have not checked it for completeness - it does as much as I need.
  192. type xlsxTabColor struct {
  193. Theme int `xml:"theme,attr,omitempty"`
  194. Tint uint8 `xml:"tint,attr,omitempty"`
  195. }
  196. // xlsxCols directly maps the cols element in the namespace
  197. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  198. // not checked it for completeness - it does as much as I need.
  199. type xlsxCols struct {
  200. Col []xlsxCol `xml:"col"`
  201. }
  202. // xlsxCol directly maps the col (Column Width & Formatting). Defines column
  203. // width and column formatting for one or more columns of the worksheet.
  204. type xlsxCol struct {
  205. BestFit bool `xml:"bestFit,attr,omitempty"`
  206. Collapsed bool `xml:"collapsed,attr"`
  207. CustomWidth bool `xml:"customWidth,attr,omitempty"`
  208. Hidden bool `xml:"hidden,attr"`
  209. Max int `xml:"max,attr"`
  210. Min int `xml:"min,attr"`
  211. OutlineLevel uint8 `xml:"outlineLevel,attr,omitempty"`
  212. Phonetic bool `xml:"phonetic,attr,omitempty"`
  213. Style int `xml:"style,attr"`
  214. Width float64 `xml:"width,attr"`
  215. }
  216. // xlsxDimension directly maps the dimension element in the namespace
  217. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - This element
  218. // specifies the used range of the worksheet. It specifies the row and column
  219. // bounds of used cells in the worksheet. This is optional and is not required.
  220. // Used cells include cells with formulas, text content, and cell formatting.
  221. // When an entire column is formatted, only the first cell in that column is
  222. // considered used.
  223. type xlsxDimension struct {
  224. Ref string `xml:"ref,attr"`
  225. }
  226. // xlsxSheetData directly maps the sheetData element in the namespace
  227. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  228. // not checked it for completeness - it does as much as I need.
  229. type xlsxSheetData struct {
  230. XMLName xml.Name `xml:"sheetData"`
  231. Row []xlsxRow `xml:"row"`
  232. }
  233. // xlsxRow directly maps the row element. The element expresses information
  234. // about an entire row of a worksheet, and contains all cell definitions for a
  235. // particular row in the worksheet.
  236. type xlsxRow struct {
  237. Collapsed bool `xml:"collapsed,attr,omitempty"`
  238. CustomFormat bool `xml:"customFormat,attr,omitempty"`
  239. CustomHeight bool `xml:"customHeight,attr,omitempty"`
  240. Hidden bool `xml:"hidden,attr,omitempty"`
  241. Ht string `xml:"ht,attr,omitempty"`
  242. OutlineLevel uint8 `xml:"outlineLevel,attr,omitempty"`
  243. Ph bool `xml:"ph,attr,omitempty"`
  244. R int `xml:"r,attr,omitempty"`
  245. S int `xml:"s,attr,omitempty"`
  246. Spans string `xml:"spans,attr,omitempty"`
  247. ThickBot bool `xml:"thickBot,attr,omitempty"`
  248. ThickTop bool `xml:"thickTop,attr,omitempty"`
  249. C []xlsxC `xml:"c"`
  250. }
  251. // xlsxMergeCell directly maps the mergeCell element. A single merged cell.
  252. type xlsxMergeCell struct {
  253. Ref string `xml:"ref,attr,omitempty"`
  254. }
  255. // xlsxMergeCells directly maps the mergeCells element. This collection
  256. // expresses all the merged cells in the sheet.
  257. type xlsxMergeCells struct {
  258. Count int `xml:"count,attr,omitempty"`
  259. Cells []*xlsxMergeCell `xml:"mergeCell,omitempty"`
  260. }
  261. // xlsxDataValidations expresses all data validation information for cells in a
  262. // sheet which have data validation features applied.
  263. type xlsxDataValidations struct {
  264. Count int `xml:"count,attr,omitempty"`
  265. DisablePrompts bool `xml:"disablePrompts,attr,omitempty"`
  266. XWindow int `xml:"xWindow,attr,omitempty"`
  267. YWindow int `xml:"yWindow,attr,omitempty"`
  268. DataValidation string `xml:",innerxml"`
  269. }
  270. // xlsxC directly maps the c element in the namespace
  271. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  272. // not checked it for completeness - it does as much as I need.
  273. type xlsxC struct {
  274. R string `xml:"r,attr"` // Cell ID, e.g. A1
  275. S int `xml:"s,attr,omitempty"` // Style reference.
  276. // Str string `xml:"str,attr,omitempty"` // Style reference.
  277. T string `xml:"t,attr,omitempty"` // Type.
  278. F *xlsxF `xml:"f,omitempty"` // Formula
  279. V string `xml:"v,omitempty"` // Value
  280. }
  281. // xlsxF directly maps the f element in the namespace
  282. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
  283. // not checked it for completeness - it does as much as I need.
  284. type xlsxF struct {
  285. Content string `xml:",chardata"`
  286. T string `xml:"t,attr,omitempty"` // Formula type
  287. Ref string `xml:"ref,attr,omitempty"` // Shared formula ref
  288. Si string `xml:"si,attr,omitempty"` // Shared formula index
  289. }
  290. // xlsxSheetProtection collection expresses the sheet protection options to
  291. // enforce when the sheet is protected.
  292. type xlsxSheetProtection struct {
  293. AlgorithmName string `xml:"algorithmName,attr,omitempty"`
  294. AutoFilter int `xml:"autoFilter,attr,omitempty"`
  295. DeleteColumns int `xml:"deleteColumns,attr,omitempty"`
  296. DeleteRows int `xml:"deleteRows,attr,omitempty"`
  297. FormatCells int `xml:"formatCells,attr,omitempty"`
  298. FormatColumns int `xml:"formatColumns,attr,omitempty"`
  299. FormatRows int `xml:"formatRows,attr,omitempty"`
  300. HashValue string `xml:"hashValue,attr,omitempty"`
  301. InsertColumns int `xml:"insertColumns,attr,omitempty"`
  302. InsertHyperlinks int `xml:"insertHyperlinks,attr,omitempty"`
  303. InsertRows int `xml:"insertRows,attr,omitempty"`
  304. Objects int `xml:"objects,attr,omitempty"`
  305. PivotTables int `xml:"pivotTables,attr,omitempty"`
  306. SaltValue string `xml:"saltValue,attr,omitempty"`
  307. Scenarios int `xml:"scenarios,attr,omitempty"`
  308. SelectLockedCells int `xml:"selectLockedCells,attr,omitempty"`
  309. SelectUnlockedCell int `xml:"selectUnlockedCell,attr,omitempty"`
  310. Sheet int `xml:"sheet,attr,omitempty"`
  311. Sort int `xml:"sort,attr,omitempty"`
  312. SpinCount int `xml:"spinCount,attr,omitempty"`
  313. }
  314. // A Conditional Format is a format, such as cell shading or font color, that a
  315. // spreadsheet application can automatically apply to cells if a specified
  316. // condition is true. This collection expresses conditional formatting rules
  317. // applied to a particular cell or range.
  318. type xlsxConditionalFormatting struct {
  319. CfRule string `xml:",innerxml"`
  320. }
  321. // xlsxHyperlinks directly maps the hyperlinks element in the namespace
  322. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - A hyperlink can
  323. // be stored in a package as a relationship. Hyperlinks shall be identified by
  324. // containing a target which specifies the destination of the given hyperlink.
  325. type xlsxHyperlinks struct {
  326. Hyperlink []xlsxHyperlink `xml:"hyperlink"`
  327. }
  328. // xlsxHyperlink directly maps the hyperlink element in the namespace
  329. // http://schemas.openxmlformats.org/spreadsheetml/2006/main
  330. type xlsxHyperlink struct {
  331. Ref string `xml:"ref,attr"`
  332. Location string `xml:"location,attr,omitempty"`
  333. Display string `xml:"display,attr,omitempty"`
  334. RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
  335. }
  336. // xlsxTableParts directly maps the tableParts element in the namespace
  337. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - The table element
  338. // has several attributes applied to identify the table and the data range it
  339. // covers. The table id attribute needs to be unique across all table parts, the
  340. // same goes for the name and displayName. The displayName has the further
  341. // restriction that it must be unique across all defined names in the workbook.
  342. // Later on we will see that you can define names for many elements, such as
  343. // cells or formulas. The name value is used for the object model in Microsoft
  344. // Office Excel. The displayName is used for references in formulas. The ref
  345. // attribute is used to identify the cell range that the table covers. This
  346. // includes not only the table data, but also the table header containing column
  347. // names.
  348. // To add columns to your table you add new tableColumn elements to the
  349. // tableColumns container. Similar to the shared string table the collection
  350. // keeps a count attribute identifying the number of columns. Besides the table
  351. // definition in the table part there is also the need to identify which tables
  352. // are displayed in the worksheet. The worksheet part has a separate element
  353. // tableParts to store this information. Each table part is referenced through
  354. // the relationship ID and again a count of the number of table parts is
  355. // maintained. The following markup sample is taken from the documents
  356. // accompanying this book. The sheet data element has been removed to reduce the
  357. // size of the sample. To reference the table, just add the tableParts element,
  358. // of course after having created and stored the table part. For example:
  359. //
  360. // <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
  361. // ...
  362. // <tableParts count="1">
  363. // <tablePart r:id="rId1" />
  364. // </tableParts>
  365. // </worksheet>
  366. //
  367. type xlsxTableParts struct {
  368. Count int `xml:"count,attr,omitempty"`
  369. TableParts []*xlsxTablePart `xml:"tablePart"`
  370. }
  371. // xlsxTablePart directly maps the tablePart element in the namespace
  372. // http://schemas.openxmlformats.org/spreadsheetml/2006/main
  373. type xlsxTablePart struct {
  374. RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
  375. }
  376. // xlsxPicture directly maps the picture element in the namespace
  377. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Background sheet
  378. // image. For example:
  379. //
  380. // <picture r:id="rId1"/>
  381. //
  382. type xlsxPicture struct {
  383. RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
  384. }
  385. // xlsxLegacyDrawing directly maps the legacyDrawing element in the namespace
  386. // http://schemas.openxmlformats.org/spreadsheetml/2006/main - A comment is a
  387. // rich text note that is attached to, and associated with, a cell, separate
  388. // from other cell content. Comment content is stored separate from the cell,
  389. // and is displayed in a drawing object (like a text box) that is separate from,
  390. // but associated with, a cell. Comments are used as reminders, such as noting
  391. // how a complex formula works, or to provide feedback to other users. Comments
  392. // can also be used to explain assumptions made in a formula or to call out
  393. // something special about the cell.
  394. type xlsxLegacyDrawing struct {
  395. RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
  396. }