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