2021-03-07 15:02:04 +08:00
|
|
|
// Copyright 2016 - 2021 The excelize Authors. All rights reserved. Use of
|
2020-03-25 00:13:29 +08:00
|
|
|
// this source code is governed by a BSD-style license that can be found in
|
|
|
|
// the LICENSE file.
|
|
|
|
//
|
|
|
|
// struct code generated by github.com/xuri/xgen
|
|
|
|
//
|
|
|
|
// Package excelize providing a set of functions that allow you to write to
|
2021-08-15 00:06:40 +08:00
|
|
|
// and read from XLSX / XLSM / XLTM files. Supports reading and writing
|
|
|
|
// spreadsheet documents generated by Microsoft Excel™ 2007 and later. Supports
|
|
|
|
// complex components by high compatibility, and provided streaming API for
|
|
|
|
// generating or reading data from a worksheet with huge amounts of data. This
|
|
|
|
// library needs Go version 1.15 or later.
|
2020-03-25 00:13:29 +08:00
|
|
|
|
|
|
|
package excelize
|
|
|
|
|
|
|
|
import "encoding/xml"
|
|
|
|
|
|
|
|
// xlsxChartsheet directly maps the chartsheet element of Chartsheet Parts in
|
|
|
|
// a SpreadsheetML document.
|
|
|
|
type xlsxChartsheet struct {
|
2021-03-07 15:02:04 +08:00
|
|
|
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main chartsheet"`
|
|
|
|
SheetPr *xlsxChartsheetPr `xml:"sheetPr"`
|
|
|
|
SheetViews *xlsxChartsheetViews `xml:"sheetViews"`
|
|
|
|
SheetProtection *xlsxChartsheetProtection `xml:"sheetProtection"`
|
|
|
|
CustomSheetViews *xlsxCustomChartsheetViews `xml:"customSheetViews"`
|
|
|
|
PageMargins *xlsxPageMargins `xml:"pageMargins"`
|
|
|
|
PageSetup *xlsxPageSetUp `xml:"pageSetup"`
|
|
|
|
HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
|
|
|
|
Drawing *xlsxDrawing `xml:"drawing"`
|
|
|
|
DrawingHF *xlsxDrawingHF `xml:"drawingHF"`
|
|
|
|
Picture *xlsxPicture `xml:"picture"`
|
|
|
|
WebPublishItems *xlsxInnerXML `xml:"webPublishItems"`
|
|
|
|
ExtLst *xlsxExtLst `xml:"extLst"`
|
2020-03-25 00:13:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// xlsxChartsheetPr specifies chart sheet properties.
|
|
|
|
type xlsxChartsheetPr struct {
|
2021-03-07 15:02:04 +08:00
|
|
|
XMLName xml.Name `xml:"sheetPr"`
|
|
|
|
PublishedAttr bool `xml:"published,attr,omitempty"`
|
|
|
|
CodeNameAttr string `xml:"codeName,attr,omitempty"`
|
|
|
|
TabColor *xlsxTabColor `xml:"tabColor"`
|
2020-03-25 00:13:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// xlsxChartsheetViews specifies chart sheet views.
|
|
|
|
type xlsxChartsheetViews struct {
|
|
|
|
XMLName xml.Name `xml:"sheetViews"`
|
|
|
|
SheetView []*xlsxChartsheetView `xml:"sheetView"`
|
|
|
|
ExtLst []*xlsxExtLst `xml:"extLst"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// xlsxChartsheetView defines custom view properties for chart sheets.
|
|
|
|
type xlsxChartsheetView struct {
|
|
|
|
XMLName xml.Name `xml:"sheetView"`
|
|
|
|
TabSelectedAttr bool `xml:"tabSelected,attr,omitempty"`
|
|
|
|
ZoomScaleAttr uint32 `xml:"zoomScale,attr,omitempty"`
|
2020-05-03 18:44:43 +08:00
|
|
|
WorkbookViewIDAttr uint32 `xml:"workbookViewId,attr"`
|
2020-03-25 00:13:29 +08:00
|
|
|
ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
|
|
|
|
ExtLst []*xlsxExtLst `xml:"extLst"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// xlsxChartsheetProtection collection expresses the chart sheet protection
|
|
|
|
// options to enforce when the chart sheet is protected.
|
|
|
|
type xlsxChartsheetProtection struct {
|
|
|
|
XMLName xml.Name `xml:"sheetProtection"`
|
|
|
|
AlgorithmNameAttr string `xml:"algorithmName,attr,omitempty"`
|
|
|
|
HashValueAttr []byte `xml:"hashValue,attr,omitempty"`
|
|
|
|
SaltValueAttr []byte `xml:"saltValue,attr,omitempty"`
|
|
|
|
SpinCountAttr uint32 `xml:"spinCount,attr,omitempty"`
|
|
|
|
ContentAttr bool `xml:"content,attr,omitempty"`
|
|
|
|
ObjectsAttr bool `xml:"objects,attr,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// xlsxCustomChartsheetViews collection of custom Chart Sheet View
|
|
|
|
// information.
|
|
|
|
type xlsxCustomChartsheetViews struct {
|
2021-03-07 15:02:04 +08:00
|
|
|
XMLName xml.Name `xml:"customSheetViews"`
|
2020-03-25 00:13:29 +08:00
|
|
|
CustomSheetView []*xlsxCustomChartsheetView `xml:"customSheetView"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// xlsxCustomChartsheetView defines custom view properties for chart sheets.
|
|
|
|
type xlsxCustomChartsheetView struct {
|
2021-03-07 15:02:04 +08:00
|
|
|
XMLName xml.Name `xml:"customSheetView"`
|
2020-05-03 18:44:43 +08:00
|
|
|
GUIDAttr string `xml:"guid,attr"`
|
2020-03-25 00:13:29 +08:00
|
|
|
ScaleAttr uint32 `xml:"scale,attr,omitempty"`
|
|
|
|
StateAttr string `xml:"state,attr,omitempty"`
|
|
|
|
ZoomToFitAttr bool `xml:"zoomToFit,attr,omitempty"`
|
|
|
|
PageMargins []*xlsxPageMargins `xml:"pageMargins"`
|
|
|
|
PageSetup []*xlsxPageSetUp `xml:"pageSetup"`
|
|
|
|
HeaderFooter []*xlsxHeaderFooter `xml:"headerFooter"`
|
|
|
|
}
|