xmlChartSheet.go 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // Copyright 2016 - 2021 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
  8. // and read from XLSX files. Support reads and writes XLSX file generated by
  9. // Microsoft Excel™ 2007 and later. Support save file without losing original
  10. // charts of XLSX. This library needs Go version 1.15 or later.
  11. package excelize
  12. import "encoding/xml"
  13. // xlsxChartsheet directly maps the chartsheet element of Chartsheet Parts in
  14. // a SpreadsheetML document.
  15. type xlsxChartsheet struct {
  16. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main chartsheet"`
  17. SheetPr *xlsxChartsheetPr `xml:"sheetPr"`
  18. SheetViews *xlsxChartsheetViews `xml:"sheetViews"`
  19. SheetProtection *xlsxChartsheetProtection `xml:"sheetProtection"`
  20. CustomSheetViews *xlsxCustomChartsheetViews `xml:"customSheetViews"`
  21. PageMargins *xlsxPageMargins `xml:"pageMargins"`
  22. PageSetup *xlsxPageSetUp `xml:"pageSetup"`
  23. HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
  24. Drawing *xlsxDrawing `xml:"drawing"`
  25. DrawingHF *xlsxDrawingHF `xml:"drawingHF"`
  26. Picture *xlsxPicture `xml:"picture"`
  27. WebPublishItems *xlsxInnerXML `xml:"webPublishItems"`
  28. ExtLst *xlsxExtLst `xml:"extLst"`
  29. }
  30. // xlsxChartsheetPr specifies chart sheet properties.
  31. type xlsxChartsheetPr struct {
  32. XMLName xml.Name `xml:"sheetPr"`
  33. PublishedAttr bool `xml:"published,attr,omitempty"`
  34. CodeNameAttr string `xml:"codeName,attr,omitempty"`
  35. TabColor *xlsxTabColor `xml:"tabColor"`
  36. }
  37. // xlsxChartsheetViews specifies chart sheet views.
  38. type xlsxChartsheetViews struct {
  39. XMLName xml.Name `xml:"sheetViews"`
  40. SheetView []*xlsxChartsheetView `xml:"sheetView"`
  41. ExtLst []*xlsxExtLst `xml:"extLst"`
  42. }
  43. // xlsxChartsheetView defines custom view properties for chart sheets.
  44. type xlsxChartsheetView struct {
  45. XMLName xml.Name `xml:"sheetView"`
  46. TabSelectedAttr bool `xml:"tabSelected,attr,omitempty"`
  47. ZoomScaleAttr uint32 `xml:"zoomScale,attr,omitempty"`
  48. WorkbookViewIDAttr uint32 `xml:"workbookViewId,attr"`
  49. ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
  50. ExtLst []*xlsxExtLst `xml:"extLst"`
  51. }
  52. // xlsxChartsheetProtection collection expresses the chart sheet protection
  53. // options to enforce when the chart sheet is protected.
  54. type xlsxChartsheetProtection struct {
  55. XMLName xml.Name `xml:"sheetProtection"`
  56. AlgorithmNameAttr string `xml:"algorithmName,attr,omitempty"`
  57. HashValueAttr []byte `xml:"hashValue,attr,omitempty"`
  58. SaltValueAttr []byte `xml:"saltValue,attr,omitempty"`
  59. SpinCountAttr uint32 `xml:"spinCount,attr,omitempty"`
  60. ContentAttr bool `xml:"content,attr,omitempty"`
  61. ObjectsAttr bool `xml:"objects,attr,omitempty"`
  62. }
  63. // xlsxCustomChartsheetViews collection of custom Chart Sheet View
  64. // information.
  65. type xlsxCustomChartsheetViews struct {
  66. XMLName xml.Name `xml:"customSheetViews"`
  67. CustomSheetView []*xlsxCustomChartsheetView `xml:"customSheetView"`
  68. }
  69. // xlsxCustomChartsheetView defines custom view properties for chart sheets.
  70. type xlsxCustomChartsheetView struct {
  71. XMLName xml.Name `xml:"customSheetView"`
  72. GUIDAttr string `xml:"guid,attr"`
  73. ScaleAttr uint32 `xml:"scale,attr,omitempty"`
  74. StateAttr string `xml:"state,attr,omitempty"`
  75. ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
  76. PageMargins []*xlsxPageMargins `xml:"pageMargins"`
  77. PageSetup []*xlsxPageSetUp `xml:"pageSetup"`
  78. HeaderFooter []*xlsxHeaderFooter `xml:"headerFooter"`
  79. }