Commit 78f9d1e0 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Запись SheetPr (в частности tabColor)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48496 954022d7-b5bf-4e40-9824-e11837661b57
parent 69bfc5c3
......@@ -2222,6 +2222,9 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf
this.bs.WriteItem(c_oSerWorksheetsTypes.SheetViews, function(){oThis.WriteSheetViews(ws);});
if (null !== ws.sheetPr)
this.bs.WriteItem(c_oSerWorksheetsTypes.SheetPr, function () {oThis.WriteSheetPr(ws.sheetPr);});
this.bs.WriteItem(c_oSerWorksheetsTypes.SheetFormatPr, function(){oThis.WriteSheetFormatPr(ws);});
if(null != ws.PagePrintOptions)
......@@ -2426,6 +2429,57 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf
this.memory.WriteBool(oSheetView.showRowColHeaders);
}
};
this.WriteSheetPr = function (sheetPr) {
var oThis = this;
if (null !== sheetPr.CodeName) {
this.memory.WriteByte(c_oSer_SheetPr.CodeName);
this.memory.WriteString2(sheetPr.CodeName);
}
if (null !== sheetPr.EnableFormatConditionsCalculation) {
this.memory.WriteByte(c_oSer_SheetPr.EnableFormatConditionsCalculation);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.EnableFormatConditionsCalculation);
}
if (null !== sheetPr.FilterMode) {
this.memory.WriteByte(c_oSer_SheetPr.FilterMode);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.FilterMode);
}
if (null !== sheetPr.Published) {
this.memory.WriteByte(c_oSer_SheetPr.Published);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(sheetPr.Published);
}
if (null !== sheetPr.SyncHorizontal) {
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)
{
if(null !== ws.dDefaultColWidth) {
......
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