workbook.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package xlsx
  2. // XLSXWorkbook directly maps the workbook element from the namespace
  3. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  4. // currently I have not checked it for completeness - it does as much
  5. // as I need.
  6. type XLSXWorkbook struct {
  7. FileVersion XLSXFileVersion
  8. WorkbookPr XLSXWorkbookPr
  9. BookViews XLSXBookViews
  10. Sheets XLSXSheets
  11. DefinedNames XLSXDefinedNames
  12. CalcPr XLSXCalcPr
  13. }
  14. // XLSXFileVersion directly maps the fileVersion element from the
  15. // namespace http://schemas.openxmlformats.org/spreadsheetml/2006/main
  16. // - currently I have not checked it for completeness - it does as
  17. // much as I need.
  18. type XLSXFileVersion struct {
  19. AppName string "attr"
  20. LastEdited string "attr"
  21. LowestEdited string "attr"
  22. RupBuild string "attr"
  23. }
  24. // XLSXWorkbookPr directly maps the workbookPr element from the
  25. // namespace http://schemas.openxmlformats.org/spreadsheetml/2006/main
  26. // - currently I have not checked it for completeness - it does as
  27. // much as I need.
  28. type XLSXWorkbookPr struct {
  29. DefaultThemeVersion string "attr"
  30. }
  31. // XLSXBookViews directly maps the bookViews element from the
  32. // namespace http://schemas.openxmlformats.org/spreadsheetml/2006/main
  33. // - currently I have not checked it for completeness - it does as
  34. // much as I need.
  35. type XLSXBookViews struct {
  36. WorkBookView []XLSXWorkBookView
  37. }
  38. // XLSXWorkBookView directly maps the workbookView element from the
  39. // namespace http://schemas.openxmlformats.org/spreadsheetml/2006/main
  40. // - currently I have not checked it for completeness - it does as
  41. // much as I need.
  42. type XLSXWorkBookView struct {
  43. XWindow string "attr"
  44. YWindow string "attr"
  45. WindowWidth string "attr"
  46. WindowHeight string "attr"
  47. }
  48. // XLSXSheets directly maps the sheets element from the namespace
  49. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  50. // currently I have not checked it for completeness - it does as much
  51. // as I need.
  52. type XLSXSheets struct {
  53. Sheet []XLSXSheet
  54. }
  55. // XLSXSheet directly maps the sheet element from the namespace
  56. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  57. // currently I have not checked it for completeness - it does as much
  58. // as I need.
  59. type XLSXSheet struct {
  60. Name string "attr"
  61. SheetId string "attr"
  62. Id string "attr"
  63. }
  64. // XLSXDefinedNames directly maps the definedNames element from the
  65. // namespace http://schemas.openxmlformats.org/spreadsheetml/2006/main
  66. // - currently I have not checked it for completeness - it does as
  67. // much as I need.
  68. type XLSXDefinedNames struct {
  69. DefinedName []XLSXDefinedName
  70. }
  71. // XLSXDefinedName directly maps the definedName element from the
  72. // namespace http://schemas.openxmlformats.org/spreadsheetml/2006/main
  73. // - currently I have not checked it for completeness - it does as
  74. // much as I need.
  75. type XLSXDefinedName struct {
  76. Data string "chardata"
  77. Name string "attr"
  78. LocalSheetID string "attr"
  79. }
  80. // XLSXCalcPr directly maps the calcPr element from the namespace
  81. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  82. // currently I have not checked it for completeness - it does as much
  83. // as I need.
  84. type XLSXCalcPr struct {
  85. CalcId string "attr"
  86. }