-
Notifications
You must be signed in to change notification settings - Fork 819
/
xmlTheme.go
55 lines (48 loc) · 1.83 KB
/
xmlTheme.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package xlsx
import "encoding/xml"
// xlsxTheme directly maps the theme element in the namespace
// http://schemas.openxmlformats.org/drawingml/2006/main -
// currently I have not checked it for completeness - it does as much
// as I need.
type xlsxTheme struct {
ThemeElements xlsxThemeElements `xml:"themeElements"`
}
// xlsxThemeElements directly maps the themeElements element in the namespace
// http://schemas.openxmlformats.org/drawingml/2006/main -
// currently I have not checked it for completeness - it does as much
// as I need.
type xlsxThemeElements struct {
ClrScheme xlsxClrScheme `xml:"clrScheme"`
}
// xlsxClrScheme directly maps the clrScheme element in the namespace
// http://schemas.openxmlformats.org/drawingml/2006/main -
// currently I have not checked it for completeness - it does as much
// as I need.
type xlsxClrScheme struct {
Name string `xml:"name,attr"`
Children []xlsxClrSchemeEl `xml:",any"`
}
// xlsxClrScheme maps to children of the clrScheme element in the namespace
// http://schemas.openxmlformats.org/drawingml/2006/main -
// currently I have not checked it for completeness - it does as much
// as I need.
type xlsxClrSchemeEl struct {
XMLName xml.Name
SysClr *xlsxSysClr `xml:"sysClr"`
SrgbClr *xlsxSrgbClr `xml:"srgbClr"`
}
// xlsxSysClr directly maps the sysClr element in the namespace
// http://schemas.openxmlformats.org/drawingml/2006/main -
// currently I have not checked it for completeness - it does as much
// as I need.
type xlsxSysClr struct {
Val string `xml:"val,attr"`
LastClr string `xml:"lastClr,attr"`
}
// xlsxSrgbClr directly maps the srgbClr element in the namespace
// http://schemas.openxmlformats.org/drawingml/2006/main -
// currently I have not checked it for completeness - it does as much
// as I need.
type xlsxSrgbClr struct {
Val string `xml:"val,attr"`
}