@@ -6,27 +6,27 @@ import "encoding/xml"
6
6
// http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
7
7
// not checked it for completeness - it does as much as I need.
8
8
type xlsxWorksheet struct {
9
- XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
10
- SheetPr * xlsxSheetPr `xml:"sheetPr"`
11
- Dimension xlsxDimension `xml:"dimension"`
12
- SheetViews xlsxSheetViews `xml:"sheetViews,omitempty"`
13
- SheetFormatPr * xlsxSheetFormatPr `xml:"sheetFormatPr"`
14
- Cols * xlsxCols `xml:"cols,omitempty"`
15
- SheetData xlsxSheetData `xml:"sheetData"`
16
- SheetProtection * xlsxSheetProtection `xml:"sheetProtection"`
17
- MergeCells * xlsxMergeCells `xml:"mergeCells,omitempty"`
18
- ConditionalFormatting * xlsxConditionalFormatting `xml:"conditionalFormatting"`
19
- DataValidations * xlsxDataValidations `xml:"dataValidations"`
20
- Hyperlinks * xlsxHyperlinks `xml:"hyperlinks"`
21
- PrintOptions * xlsxPrintOptions `xml:"printOptions"`
22
- PageMargins * xlsxPageMargins `xml:"pageMargins"`
23
- PageSetUp * xlsxPageSetUp `xml:"pageSetup"`
24
- HeaderFooter * xlsxHeaderFooter `xml:"headerFooter"`
25
- Drawing * xlsxDrawing `xml:"drawing"`
26
- LegacyDrawing * xlsxLegacyDrawing `xml:"legacyDrawing"`
27
- Picture * xlsxPicture `xml:"picture"`
28
- TableParts * xlsxTableParts `xml:"tableParts"`
29
- ExtLst * xlsxExtLst `xml:"extLst"`
9
+ XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
10
+ SheetPr * xlsxSheetPr `xml:"sheetPr"`
11
+ Dimension xlsxDimension `xml:"dimension"`
12
+ SheetViews xlsxSheetViews `xml:"sheetViews,omitempty"`
13
+ SheetFormatPr * xlsxSheetFormatPr `xml:"sheetFormatPr"`
14
+ Cols * xlsxCols `xml:"cols,omitempty"`
15
+ SheetData xlsxSheetData `xml:"sheetData"`
16
+ SheetProtection * xlsxSheetProtection `xml:"sheetProtection"`
17
+ MergeCells * xlsxMergeCells `xml:"mergeCells,omitempty"`
18
+ ConditionalFormatting [] * xlsxConditionalFormatting `xml:"conditionalFormatting"`
19
+ DataValidations * xlsxDataValidations `xml:"dataValidations"`
20
+ Hyperlinks * xlsxHyperlinks `xml:"hyperlinks"`
21
+ PrintOptions * xlsxPrintOptions `xml:"printOptions"`
22
+ PageMargins * xlsxPageMargins `xml:"pageMargins"`
23
+ PageSetUp * xlsxPageSetUp `xml:"pageSetup"`
24
+ HeaderFooter * xlsxHeaderFooter `xml:"headerFooter"`
25
+ Drawing * xlsxDrawing `xml:"drawing"`
26
+ LegacyDrawing * xlsxLegacyDrawing `xml:"legacyDrawing"`
27
+ Picture * xlsxPicture `xml:"picture"`
28
+ TableParts * xlsxTableParts `xml:"tableParts"`
29
+ ExtLst * xlsxExtLst `xml:"extLst"`
30
30
}
31
31
32
32
// xlsxDrawing change r:id to rid in the namespace.
@@ -348,6 +348,7 @@ type xlsxSheetProtection struct {
348
348
// condition is true. This collection expresses conditional formatting rules
349
349
// applied to a particular cell or range.
350
350
type xlsxConditionalFormatting struct {
351
+ SQRef string `xml:"sqref,attr,omitempty"`
351
352
CfRule string `xml:",innerxml"`
352
353
}
353
354
0 commit comments