diff options
author | renxiaotu <35713121+renxiaotu@users.noreply.github.com> | 2022-11-16 00:02:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 00:02:35 +0800 |
commit | aa80fa417985cb8f7df77d45825c41a81206df98 (patch) | |
tree | 7b65194d37b58cfdc7864dd5a80bd7944f29ef63 /xmlWorksheet.go | |
parent | 45d168c79d2d3f3d0dd6247e2b527f3007d84793 (diff) |
This made stream writer support set the insert page break (#1393)
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r-- | xmlWorksheet.go | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 24f5e4e..263c2a3 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -44,8 +44,8 @@ type xlsxWorksheet struct { PageMargins *xlsxPageMargins `xml:"pageMargins"` PageSetUp *xlsxPageSetUp `xml:"pageSetup"` HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"` - RowBreaks *xlsxBreaks `xml:"rowBreaks"` - ColBreaks *xlsxBreaks `xml:"colBreaks"` + RowBreaks *xlsxRowBreaks `xml:"rowBreaks"` + ColBreaks *xlsxColBreaks `xml:"colBreaks"` CustomProperties *xlsxInnerXML `xml:"customProperties"` CellWatches *xlsxInnerXML `xml:"cellWatches"` IgnoredErrors *xlsxInnerXML `xml:"ignoredErrors"` @@ -358,6 +358,18 @@ type xlsxBrk struct { Pt bool `xml:"pt,attr,omitempty"` } +// xlsxRowBreaks directly maps a collection of the row breaks. +type xlsxRowBreaks struct { + XMLName xml.Name `xml:"rowBreaks"` + xlsxBreaks +} + +// xlsxRowBreaks directly maps a collection of the column breaks. +type xlsxColBreaks struct { + XMLName xml.Name `xml:"colBreaks"` + xlsxBreaks +} + // xlsxBreaks directly maps a collection of the row or column breaks. type xlsxBreaks struct { Brk []*xlsxBrk `xml:"brk"` |