xmlWorksheet.go 21 KB

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