diff options
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r-- | xmlWorksheet.go | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go index f31d16c..ca757fd 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -172,7 +172,7 @@ type xlsxSheetView struct { // selection. type xlsxSelection struct { ActiveCell string `xml:"activeCell,attr,omitempty"` - ActiveCellID int `xml:"activeCellId,attr"` + ActiveCellID *int `xml:"activeCellId,attr"` Pane string `xml:"pane,attr,omitempty"` SQRef string `xml:"sqref,attr,omitempty"` } @@ -450,3 +450,18 @@ type xlsxPicture struct { type xlsxLegacyDrawing struct { RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"` } + +// formatPanes directly maps the settings of the panes. +type formatPanes struct { + Freeze bool `json:"freeze"` + Split bool `json:"split"` + XSplit int `json:"x_split"` + YSplit int `json:"y_split"` + TopLeftCell string `json:"top_left_cell"` + ActivePane string `json:"active_pane"` + Panes []struct { + SQRef string `json:"sqref"` + ActiveCell string `json:"active_cell"` + Pane string `json:"pane"` + } `json:"panes"` +} |