You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.9KB

  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.10 or later.
  9. package excelize
  10. import "encoding/xml"
  11. // xlsxProperties specifies to an OOXML document properties such as the
  12. // template used, the number of pages and words, and the application name and
  13. // version.
  14. type xlsxProperties struct {
  15. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties Properties"`
  16. Template string
  17. Manager string
  18. Company string
  19. Pages int
  20. Words int
  21. Characters int
  22. PresentationFormat string
  23. Lines int
  24. Paragraphs int
  25. Slides int
  26. Notes int
  27. TotalTime int
  28. HiddenSlides int
  29. MMClips int
  30. ScaleCrop bool
  31. HeadingPairs *xlsxVectorVariant
  32. TitlesOfParts *xlsxVectorLpstr
  33. LinksUpToDate bool
  34. CharactersWithSpaces int
  35. SharedDoc bool
  36. HyperlinkBase string
  37. HLinks *xlsxVectorVariant
  38. HyperlinksChanged bool
  39. DigSig *xlsxDigSig
  40. Application string
  41. AppVersion string
  42. DocSecurity int
  43. }
  44. // xlsxVectorVariant specifies the set of hyperlinks that were in this
  45. // document when last saved.
  46. type xlsxVectorVariant struct {
  47. Content string `xml:",innerxml"`
  48. }
  49. type xlsxVectorLpstr struct {
  50. Content string `xml:",innerxml"`
  51. }
  52. // xlsxDigSig contains the signature of a digitally signed document.
  53. type xlsxDigSig struct {
  54. Content string `xml:",innerxml"`
  55. }