xmlCalcChain.go 1.0 KB

12345678910111213141516171819202122232425262728
  1. // Copyright 2016 - 2019 The excelize Authors. All rights reserved. Use of
  2. // this source code is governed by a BSD-style license that can be found in
  3. // the LICENSE file.
  4. //
  5. // Package excelize providing a set of functions that allow you to write to
  6. // and read from XLSX files. Support reads and writes XLSX file generated by
  7. // Microsoft Excel™ 2007 and later. Support save file without losing original
  8. // charts of XLSX. This library needs Go version 1.8 or later.
  9. package excelize
  10. import "encoding/xml"
  11. // xlsxCalcChain directly maps the calcChain element. This element represents the root of the calculation chain.
  12. type xlsxCalcChain struct {
  13. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main calcChain"`
  14. C []xlsxCalcChainC `xml:"c"`
  15. }
  16. // xlsxCalcChainC directly maps the c element.
  17. type xlsxCalcChainC struct {
  18. R string `xml:"r,attr"`
  19. I int `xml:"i,attr"`
  20. L bool `xml:"l,attr,omitempty"`
  21. S bool `xml:"s,attr,omitempty"`
  22. T bool `xml:"t,attr,omitempty"`
  23. A bool `xml:"a,attr,omitempty"`
  24. }