Commit f9a11365 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

refactoring

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53248 954022d7-b5bf-4e40-9824-e11837661b57
parent e876ca05
...@@ -5077,6 +5077,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs, ...@@ -5077,6 +5077,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
{ {
var res = c_oSerConstants.ReadOk; var res = c_oSerConstants.ReadOk;
var oThis = this; var oThis = this;
var oBinary_TableReader;
if ( c_oSerWorksheetsTypes.WorksheetProp == type ) if ( c_oSerWorksheetsTypes.WorksheetProp == type )
{ {
res = this.bcr.Read2Spreadsheet(length, function(t,l){ res = this.bcr.Read2Spreadsheet(length, function(t,l){
...@@ -5206,7 +5207,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs, ...@@ -5206,7 +5207,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
} }
else if ( c_oSerWorksheetsTypes.Autofilter == type ) else if ( c_oSerWorksheetsTypes.Autofilter == type )
{ {
var oBinary_TableReader = new Binary_TableReader(this.stream, oWorksheet, this.Dxfs); oBinary_TableReader = new Binary_TableReader(this.stream, oWorksheet, this.Dxfs);
oWorksheet.AutoFilter = new AutoFilter(); oWorksheet.AutoFilter = new AutoFilter();
res = this.bcr.Read1(length, function(t,l){ res = this.bcr.Read1(length, function(t,l){
return oBinary_TableReader.ReadAutoFilter(t,l, oWorksheet.AutoFilter); return oBinary_TableReader.ReadAutoFilter(t,l, oWorksheet.AutoFilter);
...@@ -5215,7 +5216,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs, ...@@ -5215,7 +5216,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
else if ( c_oSerWorksheetsTypes.TableParts == type ) else if ( c_oSerWorksheetsTypes.TableParts == type )
{ {
oWorksheet.TableParts = []; oWorksheet.TableParts = [];
var oBinary_TableReader = new Binary_TableReader(this.stream, oWorksheet, this.Dxfs); oBinary_TableReader = new Binary_TableReader(this.stream, oWorksheet, this.Dxfs);
oBinary_TableReader.Read(length, oWorksheet.TableParts); oBinary_TableReader.Read(length, oWorksheet.TableParts);
} }
else if ( c_oSerWorksheetsTypes.Comments == type ) else if ( c_oSerWorksheetsTypes.Comments == type )
......
...@@ -656,6 +656,7 @@ ...@@ -656,6 +656,7 @@
asc_setText: function (val) { this.text = val; } asc_setText: function (val) { this.text = val; }
}; };
/** @constructor */
function asc_CPageMargins (obj) { function asc_CPageMargins (obj) {
if ( !(this instanceof asc_CPageMargins) ) { if ( !(this instanceof asc_CPageMargins) ) {
return new asc_CPageMargins(obj); return new asc_CPageMargins(obj);
...@@ -680,6 +681,7 @@ ...@@ -680,6 +681,7 @@
asc_setTop: function (val) { this.top = val; }, asc_setTop: function (val) { this.top = val; },
asc_setBottom: function (val) { this.bottom = val; } asc_setBottom: function (val) { this.bottom = val; }
}; };
/** @constructor */
function asc_CPageSetup (obj) { function asc_CPageSetup (obj) {
if ( !(this instanceof asc_CPageSetup) ) { if ( !(this instanceof asc_CPageSetup) ) {
return new asc_CPageSetup(obj); return new asc_CPageSetup(obj);
...@@ -701,6 +703,7 @@ ...@@ -701,6 +703,7 @@
asc_setWidth: function (val) { this.width = val; }, asc_setWidth: function (val) { this.width = val; },
asc_setHeight: function (val) { this.height = val; } asc_setHeight: function (val) { this.height = val; }
}; };
/** @constructor */
function asc_CPageOptions (obj) { function asc_CPageOptions (obj) {
if ( !(this instanceof asc_CPageOptions) ) { if ( !(this instanceof asc_CPageOptions) ) {
return new asc_CPageOptions(obj); return new asc_CPageOptions(obj);
......
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