xmlChartSheet.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // Copyright 2016 - 2023 The excelize Authors. All rights reserved. Use of
  2. // this source code is governed by a BSD-style license that can be found in
  3. // the LICENSE file.
  4. //
  5. // struct code generated by github.com/xuri/xgen
  6. //
  7. // Package excelize providing a set of functions that allow you to write to and
  8. // read from XLAM / XLSM / XLSX / XLTM / XLTX files. Supports reading and
  9. // writing spreadsheet documents generated by Microsoft Excel™ 2007 and later.
  10. // Supports complex components by high compatibility, and provided streaming
  11. // API for generating or reading data from a worksheet with huge amounts of
  12. // data. This library needs Go version 1.16 or later.
  13. package excelize
  14. import "encoding/xml"
  15. // xlsxChartsheet directly maps the chartsheet element of Chartsheet Parts in
  16. // a SpreadsheetML document.
  17. type xlsxChartsheet struct {
  18. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main chartsheet"`
  19. SheetPr *xlsxChartsheetPr `xml:"sheetPr"`
  20. SheetViews *xlsxChartsheetViews `xml:"sheetViews"`
  21. SheetProtection *xlsxChartsheetProtection `xml:"sheetProtection"`
  22. CustomSheetViews *xlsxCustomChartsheetViews `xml:"customSheetViews"`
  23. PageMargins *xlsxPageMargins `xml:"pageMargins"`
  24. PageSetup *xlsxPageSetUp `xml:"pageSetup"`
  25. HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
  26. Drawing *xlsxDrawing `xml:"drawing"`
  27. DrawingHF *xlsxDrawingHF `xml:"drawingHF"`
  28. Picture *xlsxPicture `xml:"picture"`
  29. WebPublishItems *xlsxInnerXML `xml:"webPublishItems"`
  30. ExtLst *xlsxExtLst `xml:"extLst"`
  31. }
  32. // xlsxChartsheetPr specifies chart sheet properties.
  33. type xlsxChartsheetPr struct {
  34. XMLName xml.Name `xml:"sheetPr"`
  35. PublishedAttr bool `xml:"published,attr,omitempty"`
  36. CodeNameAttr string `xml:"codeName,attr,omitempty"`
  37. TabColor *xlsxTabColor `xml:"tabColor"`
  38. }
  39. // xlsxChartsheetViews specifies chart sheet views.
  40. type xlsxChartsheetViews struct {
  41. XMLName xml.Name `xml:"sheetViews"`
  42. SheetView []*xlsxChartsheetView `xml:"sheetView"`
  43. ExtLst []*xlsxExtLst `xml:"extLst"`
  44. }
  45. // xlsxChartsheetView defines custom view properties for chart sheets.
  46. type xlsxChartsheetView struct {
  47. XMLName xml.Name `xml:"sheetView"`
  48. TabSelectedAttr bool `xml:"tabSelected,attr,omitempty"`
  49. ZoomScaleAttr uint32 `xml:"zoomScale,attr,omitempty"`
  50. WorkbookViewIDAttr uint32 `xml:"workbookViewId,attr"`
  51. ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
  52. ExtLst []*xlsxExtLst `xml:"extLst"`
  53. }
  54. // xlsxChartsheetProtection collection expresses the chart sheet protection
  55. // options to enforce when the chart sheet is protected.
  56. type xlsxChartsheetProtection struct {
  57. XMLName xml.Name `xml:"sheetProtection"`
  58. AlgorithmNameAttr string `xml:"algorithmName,attr,omitempty"`
  59. HashValueAttr []byte `xml:"hashValue,attr,omitempty"`
  60. SaltValueAttr []byte `xml:"saltValue,attr,omitempty"`
  61. SpinCountAttr uint32 `xml:"spinCount,attr,omitempty"`
  62. ContentAttr bool `xml:"content,attr,omitempty"`
  63. ObjectsAttr bool `xml:"objects,attr,omitempty"`
  64. }
  65. // xlsxCustomChartsheetViews collection of custom Chart Sheet View
  66. // information.
  67. type xlsxCustomChartsheetViews struct {
  68. XMLName xml.Name `xml:"customSheetViews"`
  69. CustomSheetView []*xlsxCustomChartsheetView `xml:"customSheetView"`
  70. }
  71. // xlsxCustomChartsheetView defines custom view properties for chart sheets.
  72. type xlsxCustomChartsheetView struct {
  73. XMLName xml.Name `xml:"customSheetView"`
  74. GUIDAttr string `xml:"guid,attr"`
  75. ScaleAttr uint32 `xml:"scale,attr,omitempty"`
  76. StateAttr string `xml:"state,attr,omitempty"`
  77. ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
  78. PageMargins []*xlsxPageMargins `xml:"pageMargins"`
  79. PageSetup []*xlsxPageSetUp `xml:"pageSetup"`
  80. HeaderFooter []*xlsxHeaderFooter `xml:"headerFooter"`
  81. }