OSDN Git Service

This closes #1148, resolve limitations when adding VBA project to the workbook
[excelize/excelize.git] / xmlChartSheet.go
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
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.15 or later.
13
14 package excelize
15
16 import "encoding/xml"
17
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"`
34 }
35
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"`
42 }
43
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"`
49 }
50
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"`
59 }
60
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"`
71 }
72
73 // xlsxCustomChartsheetViews collection of custom Chart Sheet View
74 // information.
75 type xlsxCustomChartsheetViews struct {
76         XMLName         xml.Name                    `xml:"customSheetViews"`
77         CustomSheetView []*xlsxCustomChartsheetView `xml:"customSheetView"`
78 }
79
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"`
90 }