Commit 6c2da4df authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

(1.0.0.84): XlsxSerializerCom

поправлено запись в js и чтение в .dll записей c_oSerWorksheetsTypes::SheetPr, SheetView

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51193 954022d7-b5bf-4e40-9824-e11837661b57
parent 2d99b1e8
...@@ -2413,67 +2413,33 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, aDxfs, aXfs, aF ...@@ -2413,67 +2413,33 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, aDxfs, aXfs, aF
} }
}; };
this.WriteSheetView = function (oSheetView) { this.WriteSheetView = function (oSheetView) {
if (null !== oSheetView.showGridLines) { if (null !== oSheetView.showGridLines)
this.memory.WriteByte(c_oSer_SheetView.ShowGridLines); this.bs.WriteItem(c_oSer_SheetView.ShowGridLines, function(){oThis.memory.WriteBool(oSheetView.showGridLines);});
this.memory.WriteByte(c_oSerPropLenType.Byte); if (null !== oSheetView.showRowColHeaders)
this.memory.WriteBool(oSheetView.showGridLines); this.bs.WriteItem(c_oSer_SheetView.ShowRowColHeaders, function(){oThis.memory.WriteBool(oSheetView.showRowColHeaders);});
}
if (null !== oSheetView.showRowColHeaders) {
this.memory.WriteByte(c_oSer_SheetView.ShowRowColHeaders);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(oSheetView.showRowColHeaders);
}
}; };
this.WriteSheetPr = function (sheetPr) { this.WriteSheetPr = function (sheetPr) {
var oThis = this; var oThis = this;
if (null !== sheetPr.CodeName) { if (null !== sheetPr.CodeName)
this.memory.WriteByte(c_oSer_SheetPr.CodeName); this.bs.WriteItem(c_oSer_SheetPr.CodeName, function(){oThis.memory.WriteString3(sheetPr.CodeName);});
this.memory.WriteString2(sheetPr.CodeName); if (null !== sheetPr.EnableFormatConditionsCalculation)
} this.bs.WriteItem(c_oSer_SheetPr.EnableFormatConditionsCalculation, function(){oThis.memory.WriteBool(sheetPr.EnableFormatConditionsCalculation);});
if (null !== sheetPr.EnableFormatConditionsCalculation) { if (null !== sheetPr.FilterMode)
this.memory.WriteByte(c_oSer_SheetPr.EnableFormatConditionsCalculation); this.bs.WriteItem(c_oSer_SheetPr.FilterMode, function(){oThis.memory.WriteBool(sheetPr.FilterMode);});
this.memory.WriteByte(c_oSerPropLenType.Byte); if (null !== sheetPr.Published)
this.memory.WriteBool(sheetPr.EnableFormatConditionsCalculation); this.bs.WriteItem(c_oSer_SheetPr.Published, function(){oThis.memory.WriteBool(sheetPr.Published);});
} if (null !== sheetPr.SyncHorizontal)
if (null !== sheetPr.FilterMode) { this.bs.WriteItem(c_oSer_SheetPr.SyncHorizontal, function(){oThis.memory.WriteBool(sheetPr.SyncHorizontal);});
this.memory.WriteByte(c_oSer_SheetPr.FilterMode); if (null !== sheetPr.SyncRef)
this.memory.WriteByte(c_oSerPropLenType.Byte); this.bs.WriteItem(c_oSer_SheetPr.SyncRef, function(){oThis.memory.WriteString3(sheetPr.SyncRef);});
this.memory.WriteBool(sheetPr.FilterMode); if (null !== sheetPr.SyncVertical)
} this.bs.WriteItem(c_oSer_SheetPr.SyncVertical, function(){oThis.memory.WriteBool(sheetPr.SyncVertical);});
if (null !== sheetPr.Published) { if (null !== sheetPr.TransitionEntry)
this.memory.WriteByte(c_oSer_SheetPr.Published); this.bs.WriteItem(c_oSer_SheetPr.TransitionEntry, function(){oThis.memory.WriteBool(sheetPr.TransitionEntry);});
this.memory.WriteByte(c_oSerPropLenType.Byte); if (null !== sheetPr.TransitionEvaluation)
this.memory.WriteBool(sheetPr.Published); this.bs.WriteItem(c_oSer_SheetPr.TransitionEvaluation, function(){oThis.memory.WriteBool(sheetPr.TransitionEvaluation);});
} if (null !== sheetPr.TabColor)
if (null !== sheetPr.SyncHorizontal) { this.bs.WriteItem(c_oSer_SheetPr.TabColor, function(){oThis.bs.WriteColorSpreadsheet(sheetPr.TabColor);});
this.memory.WriteByte(c_oSer_SheetPr.SyncHorizontal);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.SyncHorizontal);
}
if (null !== sheetPr.SyncRef) {
this.memory.WriteByte(c_oSer_SheetPr.SyncRef);
this.memory.WriteString2(sheetPr.SyncRef);
}
if (null !== sheetPr.SyncVertical) {
this.memory.WriteByte(c_oSer_SheetPr.SyncVertical);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.SyncVertical);
}
if (null !== sheetPr.TransitionEntry) {
this.memory.WriteByte(c_oSer_SheetPr.TransitionEntry);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.TransitionEntry);
}
if (null !== sheetPr.TransitionEvaluation) {
this.memory.WriteByte(c_oSer_SheetPr.TransitionEvaluation);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.TransitionEvaluation);
}
if (null !== sheetPr.TabColor) {
this.memory.WriteByte(c_oSer_SheetPr.TabColor);
this.memory.WriteByte(c_oSerPropLenType.Variable);
this.bs.WriteItemWithLength(function(){oThis.bs.WriteColorSpreadsheet(sheetPr.TabColor);});
}
}; };
this.WriteSheetFormatPr = function(ws) this.WriteSheetFormatPr = function(ws)
{ {
......
...@@ -629,6 +629,21 @@ function CMemory(bIsNoInit) ...@@ -629,6 +629,21 @@ function CMemory(bIsNoInit)
this.data[this.pos++] = c&0xFF; this.data[this.pos++] = c&0xFF;
this.data[this.pos++] = (c >>> 8)&0xFF; this.data[this.pos++] = (c >>> 8)&0xFF;
} }
}
this.WriteString3 = function(text)
{
if ( "string" != typeof text )
text = text + "";
var count = text.length & 0x7FFFFFFF;
var countWrite = 2 * count;
this.CheckSize(countWrite);
for (var i=0;i<count;i++)
{
var c = text.charCodeAt(i) & 0xFFFF;
this.data[this.pos++] = c&0xFF;
this.data[this.pos++] = (c >>> 8)&0xFF;
}
} }
this.ClearNoAttack = function() this.ClearNoAttack = function()
{ {
......
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