diff options
author | xuri <xuri.me@gmail.com> | 2019-05-17 22:58:12 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-05-17 22:58:12 +0800 |
commit | f91f548614a7182ce66d55d10ed311e9b7e08a2a (patch) | |
tree | a50c4397c12f10d57967f49ffa373d9e5f6f4a27 /xmlStyles.go | |
parent | 7e77e14814658486267e3f237f484fa8e63a0cd4 (diff) |
Resolve #404, get sheet map by target rels.
Diffstat (limited to 'xmlStyles.go')
-rw-r--r-- | xmlStyles.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/xmlStyles.go b/xmlStyles.go index fc53f77..5c198e7 100644 --- a/xmlStyles.go +++ b/xmlStyles.go @@ -82,8 +82,9 @@ type xlsxFonts struct { Font []*xlsxFont `xml:"font"` } -// font directly maps the font element. -type font struct { +// xlsxFont directly maps the font element. This element defines the +// properties for one of the fonts used in this workbook. +type xlsxFont struct { Name *attrValString `xml:"name"` Charset *attrValInt `xml:"charset"` Family *attrValInt `xml:"family"` @@ -100,12 +101,6 @@ type font struct { Scheme *attrValString `xml:"scheme"` } -// xlsxFont directly maps the font element. This element defines the properties -// for one of the fonts used in this workbook. -type xlsxFont struct { - Font string `xml:",innerxml"` -} - // xlsxFills directly maps the fills element. This element defines the cell // fills portion of the Styles part, consisting of a sequence of fill records. A // cell fill consists of a background color, foreground color, and pattern to be @@ -262,7 +257,7 @@ type xlsxDxf struct { // dxf directly maps the dxf element. type dxf struct { - Font *font `xml:"font"` + Font *xlsxFont `xml:"font"` NumFmt *xlsxNumFmt `xml:"numFmt"` Fill *xlsxFill `xml:"fill"` Alignment *xlsxAlignment `xml:"alignment"` |