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

Чтение и запись BaseColWidth

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47451 954022d7-b5bf-4e40-9824-e11837661b57
parent f2aa7d59
......@@ -199,8 +199,9 @@ var c_oSerHyperlinkTypes =
/** @enum */
var c_oSerSheetFormatPrTypes =
{
DefaultColWidth: 0,
DefaultRowHeight: 1
DefaultColWidth : 0,
DefaultRowHeight : 1,
BaseColWidth : 2
};
/** @enum */
var c_oSerRowTypes =
......@@ -2325,6 +2326,11 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf
this.memory.WriteByte(c_oSerPropLenType.Double);
this.memory.WriteDouble2(ws.dDefaultheight);
}
if (null !== ws.nBaseColWidth) {
this.memory.WriteByte(c_oSerSheetFormatPrTypes.BaseColWidth);
this.memory.WriteByte(c_oSerPropLenType.Long);
this.memory.WriteLong(ws.nBaseColWidth);
}
};
this.WritePageMargins = function(oMargins)
{
......@@ -4932,6 +4938,8 @@ function Binary_WorksheetTableReader(stream, wb, aSharedStrings, aCellXfs, Dxfs,
oWorksheet.dDefaultwidth = this.stream.GetDoubleLE();
else if ( c_oSerSheetFormatPrTypes.DefaultRowHeight == type )
oWorksheet.dDefaultheight = this.stream.GetDoubleLE();
else if (c_oSerSheetFormatPrTypes.BaseColWidth === type)
oWorksheet.nBaseColWidth = this.stream.GetULongLE();
else
res = c_oSerConstants.ReadUnknown;
return res;
......
......@@ -2079,6 +2079,7 @@ function Woorksheet(wb, _index, bAddUserId, sId){
this.bHidden = false;
this.dDefaultwidth = null;
this.dDefaultheight = null;
this.nBaseColWidth = null;
this.index = _index;
this.Id = null;
if(null != sId)
......
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