Commit 3a0b78f8 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

add WriteExt

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59962 954022d7-b5bf-4e40-9824-e11837661b57
parent 5fe4d17d
...@@ -2796,6 +2796,8 @@ ...@@ -2796,6 +2796,8 @@
this.bs.WriteItem(c_oSer_DrawingType.To, function(){oThis.WriteFromTo(oDrawing.to);}); this.bs.WriteItem(c_oSer_DrawingType.To, function(){oThis.WriteFromTo(oDrawing.to);});
// if(null != oDrawing.Pos) // if(null != oDrawing.Pos)
// this.bs.WriteItem(c_oSer_DrawingType.Pos, function(){oThis.WritePos(oDrawing.Pos);}); // this.bs.WriteItem(c_oSer_DrawingType.Pos, function(){oThis.WritePos(oDrawing.Pos);});
// if(null != oDrawing.ext)
// this.bs.WriteItem(c_oSer_DrawingType.Ext, function(){oThis.WriteExt(oDrawing.ext);});
if (oDrawing.isChart()) if (oDrawing.isChart())
{ {
this.bs.WriteItem(c_oSer_DrawingType.GraphicFrame, function () { oThis.WriteGraphicFrame(oDrawing); }); this.bs.WriteItem(c_oSer_DrawingType.GraphicFrame, function () { oThis.WriteGraphicFrame(oDrawing); });
...@@ -2851,6 +2853,21 @@ ...@@ -2851,6 +2853,21 @@
this.memory.WriteDouble2(oPos.Y); this.memory.WriteDouble2(oPos.Y);
} }
}; };
this.WriteExt = function(oExt)
{
if(null != oExt.cx)
{
this.memory.WriteByte(c_oSer_DrawingExtType.Cx);
this.memory.WriteByte(c_oSerPropLenType.Double);
this.memory.WriteDouble2(oExt.cx);
}
if(null != oExt.cy)
{
this.memory.WriteByte(c_oSer_DrawingExtType.Cy);
this.memory.WriteByte(c_oSerPropLenType.Double);
this.memory.WriteDouble2(oExt.cy);
}
};
this.WriteSheetData = function(ws) this.WriteSheetData = function(ws)
{ {
var oThis = this; var oThis = this;
......
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