Commit 145daac0 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49551 954022d7-b5bf-4e40-9824-e11837661b57
parent a68afb12
......@@ -1584,6 +1584,60 @@ CChartAsGroup.prototype =
this.init();
this.recalculate();
this.addToDrawingObjects();
},
writeToBinaryForCopyPaste: function(w)
{
w.WriteLong(CLASS_TYPE_CHART_AS_GROUP);
w.WriteBool(isRealObject(this.chartTitle));
if(isRealObject(this.chartTitle))
{
this.chartTitle.writeToBinary(w);
}
w.WriteBool(isRealObject(this.vAxisTitle));
if(isRealObject(this.vAxisTitle))
{
this.vAxisTitle.writeToBinary(w);
}
w.WriteBool(isRealObject(this.hAxisTitle));
if(isRealObject(this.hAxisTitle))
{
this.hAxisTitle.writeToBinary(w);
}
this.chart.Write_ToBinary2(w);
this.spPr.Write_ToBinary2(w);
return "TeamLabChart" + w.pos + ";" + w.GetBase64Memory();
},
readFromBinaryForCopyPaste: function(r, group, drawingObjects, x, y)
{
this.group = group;
this.drawingObjects = drawingObjects;
if(r.GetBool())
{
this.chartTitle = new CChartTitle(this, CHART_TITLE_TYPE_TITLE);
this.chartTitle.readFromBinary(r);
}
if(r.GetBool())
{
this.vAxisTitle = new CChartTitle(this, CHART_TITLE_TYPE_V_AXIS);
this.vAxisTitle.readFromBinary(r);
}
if(r.GetBool())
{
this.hAxisTitle = new CChartTitle(this, CHART_TITLE_TYPE_H_AXIS);
this.hAxisTitle.readFromBinary(r);
}
this.chart.Read_FromBinary2(r);
this.spPr.Read_FromBinary2(r);
if(isRealNumber(x) && isRealNumber(y))
this.spPr.xfrm.setPosition(x, y);
this.init();
this.recalculate();
}
};
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