瀏覽代碼

Fix zoom scale and page layout view setting of XLSX.

Ri Xu 9 年之前
父節點
當前提交
d877d9f246
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 二進制
      test/Workbook1.xlsx
  2. 6 6
      xmlWorksheet.go

二進制
test/Workbook1.xlsx


+ 6 - 6
xmlWorksheet.go

@@ -143,12 +143,12 @@ type xlsxSheetView struct {
 	// View                    string          `xml:"view,attr"`
 	// View                    string          `xml:"view,attr"`
 	TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
 	TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
 	// ColorId                 int             `xml:"colorId,attr"`
 	// ColorId                 int             `xml:"colorId,attr"`
-	// ZoomScale               float64         `xml:"zoomScale,attr"`
-	// ZoomScaleNormal         float64         `xml:"zoomScaleNormal,attr"`
-	// ZoomScalePageLayoutView float64         `xml:"zoomScalePageLayoutView,attr"`
-	WorkbookViewID int             `xml:"workbookViewId,attr"`
-	Selection      []xlsxSelection `xml:"selection"`
-	Pane           *xlsxPane       `xml:"pane,omitempty"`
+	ZoomScale               float64         `xml:"zoomScale,attr,omitempty"`
+	ZoomScaleNormal         float64         `xml:"zoomScaleNormal,attr,omitempty"`
+	ZoomScalePageLayoutView float64         `xml:"zoomScalePageLayoutView,attr,omitempty"`
+	WorkbookViewID          int             `xml:"workbookViewId,attr"`
+	Selection               []xlsxSelection `xml:"selection"`
+	Pane                    *xlsxPane       `xml:"pane,omitempty"`
 }
 }
 
 
 // xlsxSelection directly maps the selection element in the namespace
 // xlsxSelection directly maps the selection element in the namespace