Commit d0810eb6 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50676 954022d7-b5bf-4e40-9824-e11837661b57
parent f95ca2fd
...@@ -1102,6 +1102,7 @@ CGraphicObjects.prototype = ...@@ -1102,6 +1102,7 @@ CGraphicObjects.prototype =
} }
var ret = new CChartAsGroup(); var ret = new CChartAsGroup();
ret.setAscChart(new asc_CChart());
ret.chart.initDefault(); ret.chart.initDefault();
ret.spPr.xfrm.offX = 0; ret.spPr.xfrm.offX = 0;
ret.spPr.xfrm.offY = 0; ret.spPr.xfrm.offY = 0;
......
...@@ -11,7 +11,7 @@ function CChartAsGroup(parent/*(WordGraphicObject)*/, document, drawingDocument, ...@@ -11,7 +11,7 @@ function CChartAsGroup(parent/*(WordGraphicObject)*/, document, drawingDocument,
this.vAxisTitle = null; this.vAxisTitle = null;
this.hAxisTitle = null; this.hAxisTitle = null;
this.chart = new asc_CChart(); // this.chart = new asc_CChart();
this.brush = new CBlipFill(); this.brush = new CBlipFill();
this.spPr = new CSpPr(); this.spPr = new CSpPr();
...@@ -58,6 +58,11 @@ CChartAsGroup.prototype = ...@@ -58,6 +58,11 @@ CChartAsGroup.prototype =
return this.chart; return this.chart;
}, },
setAscChart: function(chart)
{
this.chart = chart;
},
hitToTextRect: function() hitToTextRect: function()
{ {
return false; return false;
...@@ -1945,6 +1950,7 @@ CChartAsGroup.prototype = ...@@ -1945,6 +1950,7 @@ CChartAsGroup.prototype =
this.hAxisTitle = new CChartTitle(this, CHART_TITLE_TYPE_H_AXIS); this.hAxisTitle = new CChartTitle(this, CHART_TITLE_TYPE_H_AXIS);
this.hAxisTitle.readFromBinary(r); this.hAxisTitle.readFromBinary(r);
} }
this.setAscChart(new asc_CChart());
this.chart.Read_FromBinary2(r); this.chart.Read_FromBinary2(r);
this.spPr.Read_FromBinary2(r); this.spPr.Read_FromBinary2(r);
if(isRealObject(this.parent)) if(isRealObject(this.parent))
......
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