Skip to content

Commit e998c37

Browse files
committed
This closes #1767, change struct field tabRatio date type to float64
1 parent 37e2d94 commit e998c37

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

xmlWorkbook.go

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,19 @@ type xlsxBookViews struct {
142142
// http://schemas.openxmlformats.org/spreadsheetml/2006/main This element
143143
// specifies a single Workbook view.
144144
type xlsxWorkBookView struct {
145-
Visibility string `xml:"visibility,attr,omitempty"`
146-
Minimized bool `xml:"minimized,attr,omitempty"`
147-
ShowHorizontalScroll *bool `xml:"showHorizontalScroll,attr"`
148-
ShowVerticalScroll *bool `xml:"showVerticalScroll,attr"`
149-
ShowSheetTabs *bool `xml:"showSheetTabs,attr"`
150-
XWindow string `xml:"xWindow,attr,omitempty"`
151-
YWindow string `xml:"yWindow,attr,omitempty"`
152-
WindowWidth int `xml:"windowWidth,attr,omitempty"`
153-
WindowHeight int `xml:"windowHeight,attr,omitempty"`
154-
TabRatio int `xml:"tabRatio,attr,omitempty"`
155-
FirstSheet int `xml:"firstSheet,attr,omitempty"`
156-
ActiveTab int `xml:"activeTab,attr,omitempty"`
157-
AutoFilterDateGrouping *bool `xml:"autoFilterDateGrouping,attr"`
145+
Visibility string `xml:"visibility,attr,omitempty"`
146+
Minimized bool `xml:"minimized,attr,omitempty"`
147+
ShowHorizontalScroll *bool `xml:"showHorizontalScroll,attr"`
148+
ShowVerticalScroll *bool `xml:"showVerticalScroll,attr"`
149+
ShowSheetTabs *bool `xml:"showSheetTabs,attr"`
150+
XWindow string `xml:"xWindow,attr,omitempty"`
151+
YWindow string `xml:"yWindow,attr,omitempty"`
152+
WindowWidth int `xml:"windowWidth,attr,omitempty"`
153+
WindowHeight int `xml:"windowHeight,attr,omitempty"`
154+
TabRatio float64 `xml:"tabRatio,attr,omitempty"`
155+
FirstSheet int `xml:"firstSheet,attr,omitempty"`
156+
ActiveTab int `xml:"activeTab,attr,omitempty"`
157+
AutoFilterDateGrouping *bool `xml:"autoFilterDateGrouping,attr"`
158158
}
159159

160160
// xlsxSheets directly maps the sheets element from the namespace
@@ -349,30 +349,30 @@ type xlsxCustomWorkbookViews struct {
349349
// to implement configurable display modes, the customWorkbookView element
350350
// should be used to persist the settings for those display modes.
351351
type xlsxCustomWorkbookView struct {
352-
ActiveSheetID *int `xml:"activeSheetId,attr"`
353-
AutoUpdate *bool `xml:"autoUpdate,attr"`
354-
ChangesSavedWin *bool `xml:"changesSavedWin,attr"`
355-
GUID *string `xml:"guid,attr"`
356-
IncludeHiddenRowCol *bool `xml:"includeHiddenRowCol,attr"`
357-
IncludePrintSettings *bool `xml:"includePrintSettings,attr"`
358-
Maximized *bool `xml:"maximized,attr"`
359-
MergeInterval int `xml:"mergeInterval,attr"`
360-
Minimized *bool `xml:"minimized,attr"`
361-
Name *string `xml:"name,attr"`
362-
OnlySync *bool `xml:"onlySync,attr"`
363-
PersonalView *bool `xml:"personalView,attr"`
364-
ShowComments *string `xml:"showComments,attr"`
365-
ShowFormulaBar *bool `xml:"showFormulaBar,attr"`
366-
ShowHorizontalScroll *bool `xml:"showHorizontalScroll,attr"`
367-
ShowObjects *string `xml:"showObjects,attr"`
368-
ShowSheetTabs *bool `xml:"showSheetTabs,attr"`
369-
ShowStatusbar *bool `xml:"showStatusbar,attr"`
370-
ShowVerticalScroll *bool `xml:"showVerticalScroll,attr"`
371-
TabRatio *int `xml:"tabRatio,attr"`
372-
WindowHeight *int `xml:"windowHeight,attr"`
373-
WindowWidth *int `xml:"windowWidth,attr"`
374-
XWindow *int `xml:"xWindow,attr"`
375-
YWindow *int `xml:"yWindow,attr"`
352+
ActiveSheetID *int `xml:"activeSheetId,attr"`
353+
AutoUpdate *bool `xml:"autoUpdate,attr"`
354+
ChangesSavedWin *bool `xml:"changesSavedWin,attr"`
355+
GUID *string `xml:"guid,attr"`
356+
IncludeHiddenRowCol *bool `xml:"includeHiddenRowCol,attr"`
357+
IncludePrintSettings *bool `xml:"includePrintSettings,attr"`
358+
Maximized *bool `xml:"maximized,attr"`
359+
MergeInterval int `xml:"mergeInterval,attr"`
360+
Minimized *bool `xml:"minimized,attr"`
361+
Name *string `xml:"name,attr"`
362+
OnlySync *bool `xml:"onlySync,attr"`
363+
PersonalView *bool `xml:"personalView,attr"`
364+
ShowComments *string `xml:"showComments,attr"`
365+
ShowFormulaBar *bool `xml:"showFormulaBar,attr"`
366+
ShowHorizontalScroll *bool `xml:"showHorizontalScroll,attr"`
367+
ShowObjects *string `xml:"showObjects,attr"`
368+
ShowSheetTabs *bool `xml:"showSheetTabs,attr"`
369+
ShowStatusbar *bool `xml:"showStatusbar,attr"`
370+
ShowVerticalScroll *bool `xml:"showVerticalScroll,attr"`
371+
TabRatio *float64 `xml:"tabRatio,attr"`
372+
WindowHeight *int `xml:"windowHeight,attr"`
373+
WindowWidth *int `xml:"windowWidth,attr"`
374+
XWindow *int `xml:"xWindow,attr"`
375+
YWindow *int `xml:"yWindow,attr"`
376376
}
377377

378378
// DefinedName directly maps the name for a cell or cell range on a

0 commit comments

Comments
 (0)