summaryrefslogtreecommitdiff
path: root/xmlWorkbook.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-02-17 00:09:11 +0800
committerxuri <xuri.me@gmail.com>2022-02-17 00:09:11 +0800
commitf87c39c41ddcb2fbb75a6035ba1dd28e4de8c71b (patch)
tree5f01b95e3b5c7f3b68f2164c838f17a568f247f2 /xmlWorkbook.go
parentad09698515b4f70496c950cca02ce612af8170e0 (diff)
This closes #1148, resolve limitations when adding VBA project to the workbook
Added two exported functions `SetWorkbookPrOptions` and `GetWorkbookPrOptions` to support setting and getting the code name property of the workbook Re-order fields of the workbook properties group to improve the compatibility Go Modules dependencies upgrade Put workbook related operating in new `workbook.go` source code Library introduction docs block updated
Diffstat (limited to 'xmlWorkbook.go')
-rw-r--r--xmlWorkbook.go38
1 files changed, 19 insertions, 19 deletions
diff --git a/xmlWorkbook.go b/xmlWorkbook.go
index 59e7601..f014bee 100644
--- a/xmlWorkbook.go
+++ b/xmlWorkbook.go
@@ -2,12 +2,12 @@
// this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
-// Package excelize providing a set of functions that allow you to write to
-// 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.
+// Package excelize providing a set of functions that allow you to write to and
+// read from XLAM / XLSM / XLSX / XLTM / XLTX 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.
package excelize
@@ -107,24 +107,24 @@ type xlsxFileVersion struct {
// http://schemas.openxmlformats.org/spreadsheetml/2006/main This element
// defines a collection of workbook properties.
type xlsxWorkbookPr struct {
- AllowRefreshQuery bool `xml:"allowRefreshQuery,attr,omitempty"`
- AutoCompressPictures bool `xml:"autoCompressPictures,attr,omitempty"`
- BackupFile bool `xml:"backupFile,attr,omitempty"`
- CheckCompatibility bool `xml:"checkCompatibility,attr,omitempty"`
- CodeName string `xml:"codeName,attr,omitempty"`
Date1904 bool `xml:"date1904,attr,omitempty"`
- DefaultThemeVersion string `xml:"defaultThemeVersion,attr,omitempty"`
+ ShowObjects string `xml:"showObjects,attr,omitempty"`
+ ShowBorderUnselectedTables *bool `xml:"showBorderUnselectedTables,attr"`
FilterPrivacy bool `xml:"filterPrivacy,attr,omitempty"`
- HidePivotFieldList bool `xml:"hidePivotFieldList,attr,omitempty"`
PromptedSolutions bool `xml:"promptedSolutions,attr,omitempty"`
+ ShowInkAnnotation *bool `xml:"showInkAnnotation,attr"`
+ BackupFile bool `xml:"backupFile,attr,omitempty"`
+ SaveExternalLinkValues *bool `xml:"saveExternalLinkValues,attr"`
+ UpdateLinks string `xml:"updateLinks,attr,omitempty"`
+ CodeName string `xml:"codeName,attr,omitempty"`
+ HidePivotFieldList bool `xml:"hidePivotFieldList,attr,omitempty"`
+ ShowPivotChartFilter bool `xml:"showPivotChartFilter,attr,omitempty"`
+ AllowRefreshQuery bool `xml:"allowRefreshQuery,attr,omitempty"`
PublishItems bool `xml:"publishItems,attr,omitempty"`
+ CheckCompatibility bool `xml:"checkCompatibility,attr,omitempty"`
+ AutoCompressPictures *bool `xml:"autoCompressPictures,attr"`
RefreshAllConnections bool `xml:"refreshAllConnections,attr,omitempty"`
- SaveExternalLinkValues bool `xml:"saveExternalLinkValues,attr,omitempty"`
- ShowBorderUnselectedTables bool `xml:"showBorderUnselectedTables,attr,omitempty"`
- ShowInkAnnotation bool `xml:"showInkAnnotation,attr,omitempty"`
- ShowObjects string `xml:"showObjects,attr,omitempty"`
- ShowPivotChartFilter bool `xml:"showPivotChartFilter,attr,omitempty"`
- UpdateLinks string `xml:"updateLinks,attr,omitempty"`
+ DefaultThemeVersion string `xml:"defaultThemeVersion,attr,omitempty"`
}
// xlsxBookViews directly maps the bookViews element. This element specifies the