From 1111de2fdb7da9aa9f039f5173a6dafa6d98029c Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 3 Sep 2020 23:44:43 +0800 Subject: improve compatibility for phonetic hint and sheet tab color --- xmlWorksheet.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'xmlWorksheet.go') diff --git a/xmlWorksheet.go b/xmlWorksheet.go index bc81b03..0eaa8ee 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -234,11 +234,11 @@ type xlsxSheetPr struct { SyncVertical bool `xml:"syncVertical,attr,omitempty"` SyncRef string `xml:"syncRef,attr,omitempty"` TransitionEvaluation bool `xml:"transitionEvaluation,attr,omitempty"` + TransitionEntry bool `xml:"transitionEntry,attr,omitempty"` Published *bool `xml:"published,attr"` CodeName string `xml:"codeName,attr,omitempty"` FilterMode bool `xml:"filterMode,attr,omitempty"` EnableFormatConditionsCalculation *bool `xml:"enableFormatConditionsCalculation,attr"` - TransitionEntry bool `xml:"transitionEntry,attr,omitempty"` TabColor *xlsxTabColor `xml:"tabColor,omitempty"` OutlinePr *xlsxOutlinePr `xml:"outlinePr,omitempty"` PageSetUpPr *xlsxPageSetUpPr `xml:"pageSetUpPr,omitempty"` @@ -247,7 +247,10 @@ type xlsxSheetPr struct { // xlsxOutlinePr maps to the outlinePr element. SummaryBelow allows you to // adjust the direction of grouper controls. type xlsxOutlinePr struct { - SummaryBelow bool `xml:"summaryBelow,attr"` + ApplyStyles *bool `xml:"applyStyles,attr"` + SummaryBelow bool `xml:"summaryBelow,attr,omitempty"` + SummaryRight bool `xml:"summaryRight,attr,omitempty"` + ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr,omitempty"` } // xlsxPageSetUpPr expresses page setup properties of the worksheet. @@ -258,9 +261,11 @@ type xlsxPageSetUpPr struct { // xlsxTabColor represents background color of the sheet tab. type xlsxTabColor struct { - RGB string `xml:"rgb,attr,omitempty"` - Theme int `xml:"theme,attr,omitempty"` - Tint float64 `xml:"tint,attr,omitempty"` + Auto bool `xml:"auto,attr,omitempty"` + Indexed int `xml:"indexed,attr,omitempty"` + RGB string `xml:"rgb,attr,omitempty"` + Theme int `xml:"theme,attr,omitempty"` + Tint float64 `xml:"tint,attr,omitempty"` } // xlsxCols defines column width and column formatting for one or more columns -- cgit v1.2.1