diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-03-10 23:10:15 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-03-10 23:10:15 +0800 |
commit | 5384756d6483ba4bda294d47461c8df8b25c7a9c (patch) | |
tree | 153ffc8344e70e81d55be3268d2929179a8afd05 /xmlWorksheet.go | |
parent | 1f73f08185e664d6914c8eb849a9797b26067628 (diff) |
- 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
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r-- | xmlWorksheet.go | 10 |
1 files changed, 6 insertions, 4 deletions
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 |