From 5384756d6483ba4bda294d47461c8df8b25c7a9c Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Fri, 10 Mar 2017 23:10:15 +0800 Subject: - Complete the element `sheetFormatPr` struct definition; - Partial logic performance optimization, use pointer reference instead of a pass the variable value; - Add comments for content types struct definition; - Update go test `TestSetBorder` section --- xmlWorksheet.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'xmlWorksheet.go') diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 831bf3d..5919edb 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -112,15 +112,17 @@ type xlsxPageMargins struct { } // xlsxSheetFormatPr directly maps the sheetFormatPr element in the namespace -// http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have -// not checked it for completeness - it does as much as I need. +// http://schemas.openxmlformats.org/spreadsheetml/2006/main. This element +// specifies the sheet formatting properties. type xlsxSheetFormatPr struct { + BaseColWidth uint8 `xml:"baseColWidth,attr,omitempty"` + CustomHeight float64 `xml:"customHeight,attr,omitempty"` DefaultColWidth float64 `xml:"defaultColWidth,attr,omitempty"` DefaultRowHeight float64 `xml:"defaultRowHeight,attr"` - CustomHeight float64 `xml:"customHeight,attr,omitempty"` - ZeroHeight float64 `xml:"zeroHeight,attr,omitempty"` + ThickTop bool `xml:"thickTop,attr,omitempty"` OutlineLevelCol uint8 `xml:"outlineLevelCol,attr,omitempty"` OutlineLevelRow uint8 `xml:"outlineLevelRow,attr,omitempty"` + ZeroHeight float64 `xml:"zeroHeight,attr,omitempty"` } // xlsxSheetViews directly maps the sheetViews element in the namespace -- cgit v1.2.1