Skip to content

Commit a75c6f6

Browse files
committed
qax-os#451, init struct for chart sheet
1 parent cea3d80 commit a75c6f6

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

xmlChartSheet.go

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
// Copyright 2016 - 2020 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.10 or later.
11+
12+
package excelize
13+
14+
import "encoding/xml"
15+
16+
// xlsxChartsheet directly maps the chartsheet element of Chartsheet Parts in
17+
// a SpreadsheetML document.
18+
type xlsxChartsheet struct {
19+
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main chartsheet"`
20+
SheetPr []*xlsxChartsheetPr `xml:"sheetPr"`
21+
SheetViews []*xlsxChartsheetViews `xml:"sheetViews"`
22+
SheetProtection []*xlsxChartsheetProtection `xml:"sheetProtection"`
23+
CustomSheetViews []*xlsxCustomChartsheetViews `xml:"customSheetViews"`
24+
PageMargins *xlsxPageMargins `xml:"pageMargins"`
25+
PageSetup []*xlsxPageSetUp `xml:"pageSetup"`
26+
HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
27+
Drawing []*xlsxDrawing `xml:"drawing"`
28+
DrawingHF []*xlsxDrawingHF `xml:"drawingHF"`
29+
Picture []*xlsxPicture `xml:"picture"`
30+
WebPublishItems []*xlsxInnerXML `xml:"webPublishItems"`
31+
ExtLst []*xlsxExtLst `xml:"extLst"`
32+
}
33+
34+
// xlsxChartsheetPr specifies chart sheet properties.
35+
type xlsxChartsheetPr struct {
36+
XMLName xml.Name `xml:"sheetPr"`
37+
PublishedAttr bool `xml:"published,attr,omitempty"`
38+
CodeNameAttr string `xml:"codeName,attr,omitempty"`
39+
TabColor []*xlsxTabColor `xml:"tabColor"`
40+
}
41+
42+
// xlsxChartsheetViews specifies chart sheet views.
43+
type xlsxChartsheetViews struct {
44+
XMLName xml.Name `xml:"sheetViews"`
45+
SheetView []*xlsxChartsheetView `xml:"sheetView"`
46+
ExtLst []*xlsxExtLst `xml:"extLst"`
47+
}
48+
49+
// xlsxChartsheetView defines custom view properties for chart sheets.
50+
type xlsxChartsheetView struct {
51+
XMLName xml.Name `xml:"sheetView"`
52+
TabSelectedAttr bool `xml:"tabSelected,attr,omitempty"`
53+
ZoomScaleAttr uint32 `xml:"zoomScale,attr,omitempty"`
54+
WorkbookViewIdAttr uint32 `xml:"workbookViewId,attr"`
55+
ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
56+
ExtLst []*xlsxExtLst `xml:"extLst"`
57+
}
58+
59+
// xlsxChartsheetProtection collection expresses the chart sheet protection
60+
// options to enforce when the chart sheet is protected.
61+
type xlsxChartsheetProtection struct {
62+
XMLName xml.Name `xml:"sheetProtection"`
63+
AlgorithmNameAttr string `xml:"algorithmName,attr,omitempty"`
64+
HashValueAttr []byte `xml:"hashValue,attr,omitempty"`
65+
SaltValueAttr []byte `xml:"saltValue,attr,omitempty"`
66+
SpinCountAttr uint32 `xml:"spinCount,attr,omitempty"`
67+
ContentAttr bool `xml:"content,attr,omitempty"`
68+
ObjectsAttr bool `xml:"objects,attr,omitempty"`
69+
}
70+
71+
// xlsxCustomChartsheetViews collection of custom Chart Sheet View
72+
// information.
73+
type xlsxCustomChartsheetViews struct {
74+
XMLName xml.Name `xml:"customChartsheetViews"`
75+
CustomSheetView []*xlsxCustomChartsheetView `xml:"customSheetView"`
76+
}
77+
78+
// xlsxCustomChartsheetView defines custom view properties for chart sheets.
79+
type xlsxCustomChartsheetView struct {
80+
XMLName xml.Name `xml:"customChartsheetView"`
81+
GuidAttr string `xml:"guid,attr"`
82+
ScaleAttr uint32 `xml:"scale,attr,omitempty"`
83+
StateAttr string `xml:"state,attr,omitempty"`
84+
ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
85+
PageMargins []*xlsxPageMargins `xml:"pageMargins"`
86+
PageSetup []*xlsxPageSetUp `xml:"pageSetup"`
87+
HeaderFooter []*xlsxHeaderFooter `xml:"headerFooter"`
88+
}

0 commit comments

Comments
 (0)