diff options
author | xuri <xuri.me@gmail.com> | 2019-02-22 22:17:38 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-02-22 22:17:38 +0800 |
commit | 0072bb731043f89ce978778b9d7fdc6160e29de0 (patch) | |
tree | c44726082c606dbbcf6fa5c1dfba31cd81993c84 /xmlCalcChain.go | |
parent | e780e41e0222517caa9c69030b5955ab2b458a49 (diff) |
resolve the issue corrupted xlsx after deleting formula of cell, reference #346
Diffstat (limited to 'xmlCalcChain.go')
-rw-r--r-- | xmlCalcChain.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/xmlCalcChain.go b/xmlCalcChain.go new file mode 100644 index 0000000..9c916bf --- /dev/null +++ b/xmlCalcChain.go @@ -0,0 +1,28 @@ +// Copyright 2016 - 2019 The excelize Authors. All rights reserved. Use of +// this source code is governed by a BSD-style license that can be found in +// the LICENSE file. +// +// Package excelize providing a set of functions that allow you to write to +// and read from XLSX files. Support reads and writes XLSX file generated by +// Microsoft Excelâ„¢ 2007 and later. Support save file without losing original +// charts of XLSX. This library needs Go version 1.8 or later. + +package excelize + +import "encoding/xml" + +// xlsxCalcChain directly maps the calcChain element. This element represents the root of the calculation chain. +type xlsxCalcChain struct { + XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main calcChain"` + C []xlsxCalcChainC `xml:"c"` +} + +// xlsxCalcChainC directly maps the c element. +type xlsxCalcChainC struct { + R string `xml:"r,attr"` + I int `xml:"i,attr"` + L bool `xml:"l,attr,omitempty"` + S bool `xml:"s,attr,omitempty"` + T bool `xml:"t,attr,omitempty"` + A bool `xml:"a,attr,omitempty"` +} |