xmlApp.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright 2016 - 2021 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 / XLSM / XLTM files. Supports reading and writing
  7. // spreadsheet documents generated by Microsoft Excel™ 2007 and later. Supports
  8. // complex components by high compatibility, and provided streaming API for
  9. // generating or reading data from a worksheet with huge amounts of data. This
  10. // library needs Go version 1.15 or later.
  11. package excelize
  12. import "encoding/xml"
  13. // xlsxProperties specifies to an OOXML document properties such as the
  14. // template used, the number of pages and words, and the application name and
  15. // version.
  16. type xlsxProperties struct {
  17. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties Properties"`
  18. Template string
  19. Manager string
  20. Company string
  21. Pages int
  22. Words int
  23. Characters int
  24. PresentationFormat string
  25. Lines int
  26. Paragraphs int
  27. Slides int
  28. Notes int
  29. TotalTime int
  30. HiddenSlides int
  31. MMClips int
  32. ScaleCrop bool
  33. HeadingPairs *xlsxVectorVariant
  34. TitlesOfParts *xlsxVectorLpstr
  35. LinksUpToDate bool
  36. CharactersWithSpaces int
  37. SharedDoc bool
  38. HyperlinkBase string
  39. HLinks *xlsxVectorVariant
  40. HyperlinksChanged bool
  41. DigSig *xlsxDigSig
  42. Application string
  43. AppVersion string
  44. DocSecurity int
  45. }
  46. // xlsxVectorVariant specifies the set of hyperlinks that were in this
  47. // document when last saved.
  48. type xlsxVectorVariant struct {
  49. Content string `xml:",innerxml"`
  50. }
  51. type xlsxVectorLpstr struct {
  52. Content string `xml:",innerxml"`
  53. }
  54. // xlsxDigSig contains the signature of a digitally signed document.
  55. type xlsxDigSig struct {
  56. Content string `xml:",innerxml"`
  57. }