forked from tealeg/xlsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmlTable.go
39 lines (32 loc) · 1.02 KB
/
xmlTable.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package xlsx
type xlsxTable struct {
Ref string `xml:"ref,attr"`
TotalsRowCount int `xml:"totalsRowCount,attr,omitempty"`
TableStyleInfo xlsxTableStyleInfo `xml:"tableStyleInfo"`
}
type xlsxTableStyleInfo struct {
Name string `xml:"name,attr"`
ShowFirstColumn int `xml:"showFirstColumn,attr"`
ShowLastColumn int `xml:"showLastColumn,attr"`
ShowRowStripes int `xml:"showRowStripes,attr"`
ShowColumnStripes int `xml:"showColumnStripes,attr"`
}
type xlsxPivotTableDefinition struct {
Location xlsxLocation `xml:"location"`
RowItems xlsxRowItems `xml:"rowItems"`
PivotTableStyleInfo xlsxPivotTableStyleInfo `xml:"pivotTableStyleInfo"`
}
type xlsxLocation struct {
Ref string `xml:"ref,attr"`
}
type xlsxRowItems struct {
Items []xlsxRowItem `xml:"i"`
}
type xlsxRowItem struct {
T string `xml:"t,attr,omitempty"`
}
type xlsxPivotTableStyleInfo struct {
Name string `xml:"name,attr"`
ShowRowStripes int `xml:"showRowStripes,attr"`
ShowColStripes int `xml:"showColStripes,attr"`
}