diff options
author | xuri <xuri.me@gmail.com> | 2017-11-17 09:33:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 09:33:50 +0800 |
commit | 90998bfb4daac6e38346c03f41cb3c4e78b1ef7a (patch) | |
tree | d8ce92311d0a52772e1cfba5c869775e8857c6bf /xmlWorksheet.go | |
parent | eb54510cadaa66649ddf6caf22d1b723c5a4b17a (diff) | |
parent | 88e48e079a91191e05f32a232f8dec4454b25238 (diff) |
Merge pull request #149 from dolmen-go/feature/SheetView-options
Add SetSheetViewOptions()
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r-- | xmlWorksheet.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go index d0f4f5d..9b46a28 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -145,17 +145,18 @@ type xlsxSheetViews struct { // last sheetView definition is loaded, and the others are discarded. When // multiple windows are viewing the same sheet, multiple sheetView elements // (with corresponding workbookView entries) are saved. +// See https://msdn.microsoft.com/en-us/library/office/documentformat.openxml.spreadsheet.sheetview.aspx type xlsxSheetView struct { WindowProtection bool `xml:"windowProtection,attr,omitempty"` ShowFormulas bool `xml:"showFormulas,attr,omitempty"` - ShowGridLines string `xml:"showGridLines,attr,omitempty"` - ShowRowColHeaders bool `xml:"showRowColHeaders,attr,omitempty"` + ShowGridLines *bool `xml:"showGridLines,attr"` + ShowRowColHeaders *bool `xml:"showRowColHeaders,attr"` ShowZeros bool `xml:"showZeros,attr,omitempty"` RightToLeft bool `xml:"rightToLeft,attr,omitempty"` TabSelected bool `xml:"tabSelected,attr,omitempty"` ShowWhiteSpace *bool `xml:"showWhiteSpace,attr"` ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr,omitempty"` - DefaultGridColor bool `xml:"defaultGridColor,attr"` + DefaultGridColor *bool `xml:"defaultGridColor,attr"` View string `xml:"view,attr,omitempty"` TopLeftCell string `xml:"topLeftCell,attr,omitempty"` ColorID int `xml:"colorId,attr,omitempty"` |