|
|
@@ -10,7 +10,7 @@ import (
|
|
|
// xmlxWorkbookRels contains xmlxWorkbookRelations
|
|
|
// which maps sheet id and sheet XML
|
|
|
type xlsxWorkbookRels struct {
|
|
|
- XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/relationships Relationships"`
|
|
|
+ XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/relationships Relationships"`
|
|
|
Relationships []xlsxWorkbookRelation `xml:"Relationship"`
|
|
|
}
|
|
|
|
|
|
@@ -26,7 +26,7 @@ type xlsxWorkbookRelation struct {
|
|
|
// currently I have not checked it for completeness - it does as much
|
|
|
// as I need.
|
|
|
type xlsxWorkbook struct {
|
|
|
- XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main workbook"`
|
|
|
+ XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main workbook"`
|
|
|
FileVersion xlsxFileVersion `xml:"fileVersion"`
|
|
|
WorkbookPr xlsxWorkbookPr `xml:"workbookPr"`
|
|
|
BookViews xlsxBookViews `xml:"bookViews"`
|
|
|
@@ -52,9 +52,9 @@ type xlsxFileVersion struct {
|
|
|
// much as I need.
|
|
|
type xlsxWorkbookPr struct {
|
|
|
DefaultThemeVersion string `xml:"defaultThemeVersion,attr,omitempty"`
|
|
|
- BackupFile bool `xml:"backupFile,attr,omitempty"`
|
|
|
- ShowObjects string `xml:"showObjects,attr,omitempty"`
|
|
|
- Date1904 bool `xml:"date1904,attr"`
|
|
|
+ BackupFile bool `xml:"backupFile,attr,omitempty"`
|
|
|
+ ShowObjects string `xml:"showObjects,attr,omitempty"`
|
|
|
+ Date1904 bool `xml:"date1904,attr"`
|
|
|
}
|
|
|
|
|
|
// xlsxBookViews directly maps the bookViews element from the
|
|
|
@@ -70,16 +70,16 @@ type xlsxBookViews struct {
|
|
|
// - currently I have not checked it for completeness - it does as
|
|
|
// much as I need.
|
|
|
type xlsxWorkBookView struct {
|
|
|
- ActiveTab int `xml:"activeTab,attr,omitempty"`
|
|
|
- FirstSheet int `xml:"firstSheet,attr,omitempty"`
|
|
|
- ShowHorizontalScroll bool `xml:"showHorizontalScroll,attr,omitempty"`
|
|
|
- ShowVerticalScroll bool `xml:"showVerticalScroll,attr,omitempty"`
|
|
|
- ShowSheetTabs bool `xml:"showSheetTabs,attr,omitempty"`
|
|
|
- TabRatio int `xml:"tabRatio,attr,omitempty"`
|
|
|
- WindowHeight int `xml:"windowHeight,attr,omitempty"`
|
|
|
- WindowWidth int `xml:"windowWidth,attr,omitempty"`
|
|
|
- XWindow string `xml:"xWindow,attr,omitempty"`
|
|
|
- YWindow string `xml:"yWindow,attr,omitempty"`
|
|
|
+ ActiveTab int `xml:"activeTab,attr,omitempty"`
|
|
|
+ FirstSheet int `xml:"firstSheet,attr,omitempty"`
|
|
|
+ ShowHorizontalScroll bool `xml:"showHorizontalScroll,attr,omitempty"`
|
|
|
+ ShowVerticalScroll bool `xml:"showVerticalScroll,attr,omitempty"`
|
|
|
+ ShowSheetTabs bool `xml:"showSheetTabs,attr,omitempty"`
|
|
|
+ TabRatio int `xml:"tabRatio,attr,omitempty"`
|
|
|
+ WindowHeight int `xml:"windowHeight,attr,omitempty"`
|
|
|
+ WindowWidth int `xml:"windowWidth,attr,omitempty"`
|
|
|
+ XWindow string `xml:"xWindow,attr,omitempty"`
|
|
|
+ YWindow string `xml:"yWindow,attr,omitempty"`
|
|
|
}
|
|
|
|
|
|
// xlsxSheets directly maps the sheets element from the namespace
|
|
|
@@ -123,10 +123,10 @@ type xlsxDefinedName struct {
|
|
|
// currently I have not checked it for completeness - it does as much
|
|
|
// as I need.
|
|
|
type xlsxCalcPr struct {
|
|
|
- CalcId string `xml:"calcId,attr,omitempty"`
|
|
|
- IterateCount int `xml:"iterateCount,attr,omitempty"`
|
|
|
- RefMode string `xml:"refMode,attr,omitempty"`
|
|
|
- Iterate bool `xml:"iterate,attr,omitempty"`
|
|
|
+ CalcId string `xml:"calcId,attr,omitempty"`
|
|
|
+ IterateCount int `xml:"iterateCount,attr,omitempty"`
|
|
|
+ RefMode string `xml:"refMode,attr,omitempty"`
|
|
|
+ Iterate bool `xml:"iterate,attr,omitempty"`
|
|
|
IterateDelta float64 `xml:"iterateDelta,attr,omitempty"`
|
|
|
}
|
|
|
|