Commit 4c1ad3c7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

read pane from binary

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53034 954022d7-b5bf-4e40-9824-e11837661b57
parent f7f95ee6
...@@ -566,7 +566,17 @@ var c_oSer_SheetView = { ...@@ -566,7 +566,17 @@ var c_oSer_SheetView = {
ZoomScale : 15, ZoomScale : 15,
ZoomScaleNormal : 16, ZoomScaleNormal : 16,
ZoomScalePageLayoutView : 17, ZoomScalePageLayoutView : 17,
ZoomScaleSheetLayoutView : 18 ZoomScaleSheetLayoutView : 18,
Pane : 19
};
/** @enum */
var c_oSer_Pane = {
ActivePane : 0,
State : 1,
TopLeftCell : 2,
XSplit : 3,
YSplit : 4
}; };
/** @enum */ /** @enum */
var c_oSer_CellStyle = { var c_oSer_CellStyle = {
...@@ -6067,11 +6077,27 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs, ...@@ -6067,11 +6077,27 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
return res; return res;
}; };
this.ReadSheetView = function (type, length, oSheetView) { this.ReadSheetView = function (type, length, oSheetView) {
var oThis = this;
var res = c_oSerConstants.ReadOk; var res = c_oSerConstants.ReadOk;
if (c_oSer_SheetView.ShowGridLines === type) { if (c_oSer_SheetView.ShowGridLines === type) {
oSheetView.showGridLines = this.stream.GetBool(); oSheetView.showGridLines = this.stream.GetBool();
} else if (c_oSer_SheetView.ShowRowColHeaders === type) { } else if (c_oSer_SheetView.ShowRowColHeaders === type) {
oSheetView.showRowColHeaders = this.stream.GetBool(); oSheetView.showRowColHeaders = this.stream.GetBool();
} else if (c_oSer_SheetView.Pane === type) {
oSheetView.pane = new Asc.asc_CPane();
res = this.bcr.Read1(length, function (t, l) {
return oThis.ReadPane(t, l, oSheetView.pane);
});
} else
res = c_oSerConstants.ReadUnknown;
return res;
};
this.ReadPane = function (type, length, oPane) {
var res = c_oSerConstants.ReadOk;
if (c_oSer_Pane.State === type) {
oPane.state = this.stream.GetString2LE(length);
} else if (c_oSer_Pane.TopLeftCell === type) {
oPane.topLeftCell = this.stream.GetString2LE(length);
} else } else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
return res; return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment