summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-07-30 12:40:59 +0800
committerRi Xu <xuri.me@gmail.com>2017-07-30 12:40:59 +0800
commitbbed2f6dc9d73bb6ab6e0c7923c18acdafa13cd5 (patch)
tree803acdcd8fc1e0c3e5fd97c51ca9ee135507c507 /xmlWorksheet.go
parent961996a8132eda8671d2de45fe21bfeb43866752 (diff)
- Init create or remove panes support;
- go test updated
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go17
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"`
+}