Skip to content

Commit 319a5da

Browse files
committed
moved ShowRuler after TabSelected to follow OOXML Spec, updated description for View
1 parent 351e4a1 commit 319a5da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sheetview.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type (
6060
ShowZeros bool
6161
// View is a SheetViewOption. It specifies a flag indicating
6262
// how sheet is displayed, by default it uses empty string
63-
// available options: pageLayout, pageBreakPreview
63+
// available options: normal, pageLayout, pageBreakPreview
6464
View string
6565
// ShowRuler is a SheetViewOption. It specifies a flag indicating
6666
// this sheet should display ruler.

xmlWorksheet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ type xlsxSheetView struct {
191191
ShowZeros *bool `xml:"showZeros,attr,omitempty"`
192192
RightToLeft bool `xml:"rightToLeft,attr,omitempty"`
193193
TabSelected bool `xml:"tabSelected,attr,omitempty"`
194+
ShowRuler *bool `xml:"showRuler,attr,omitempty"`
194195
ShowWhiteSpace *bool `xml:"showWhiteSpace,attr"`
195196
ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr,omitempty"`
196197
DefaultGridColor *bool `xml:"defaultGridColor,attr"`
@@ -204,7 +205,6 @@ type xlsxSheetView struct {
204205
WorkbookViewID int `xml:"workbookViewId,attr"`
205206
Pane *xlsxPane `xml:"pane,omitempty"`
206207
Selection []*xlsxSelection `xml:"selection"`
207-
ShowRuler *bool `xml:"showRuler,attr,omitempty"`
208208
}
209209

210210
// xlsxSelection directly maps the selection element in the namespace

0 commit comments

Comments
 (0)