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,
{
var res = c_oSerConstants.ReadOk;
var oThis = this;
var oBinary_TableReader;
if ( c_oSerWorksheetsTypes.WorksheetProp == type )
{
res = this.bcr.Read2Spreadsheet(length, function(t,l){
......@@ -5206,7 +5207,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
}
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();
res = this.bcr.Read1(length, function(t,l){
return oBinary_TableReader.ReadAutoFilter(t,l, oWorksheet.AutoFilter);
......@@ -5215,7 +5216,7 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
else if ( c_oSerWorksheetsTypes.TableParts == type )
{
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);
}
else if ( c_oSerWorksheetsTypes.Comments == type )
......
......@@ -656,6 +656,7 @@
asc_setText: function (val) { this.text = val; }
};
/** @constructor */
function asc_CPageMargins (obj) {
if ( !(this instanceof asc_CPageMargins) ) {
return new asc_CPageMargins(obj);
......@@ -680,6 +681,7 @@
asc_setTop: function (val) { this.top = val; },
asc_setBottom: function (val) { this.bottom = val; }
};
/** @constructor */
function asc_CPageSetup (obj) {
if ( !(this instanceof asc_CPageSetup) ) {
return new asc_CPageSetup(obj);
......@@ -701,6 +703,7 @@
asc_setWidth: function (val) { this.width = val; },
asc_setHeight: function (val) { this.height = val; }
};
/** @constructor */
function asc_CPageOptions (obj) {
if ( !(this instanceof asc_CPageOptions) ) {
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