Commit 70a813a8 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлены баги со вставкой группы диаграмм и баг с выставлением родительского...

Исправлены баги со вставкой группы диаграмм и баг с выставлением родительского класса для диаграмм в группе.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56607 954022d7-b5bf-4e40-9824-e11837661b57
parent 5c55cbcc
...@@ -233,7 +233,6 @@ CChartSpace.prototype = ...@@ -233,7 +233,6 @@ CChartSpace.prototype =
select: CShape.prototype.select, select: CShape.prototype.select,
checkHitToBounds: CShape.prototype.checkHitToBounds, checkHitToBounds: CShape.prototype.checkHitToBounds,
resetInternalSelection: function() resetInternalSelection: function()
{ {
if(this.selection.textSelection) if(this.selection.textSelection)
...@@ -7277,7 +7276,7 @@ CChartSpace.prototype = ...@@ -7277,7 +7276,7 @@ CChartSpace.prototype =
case historyitem_ShapeSetGroup: case historyitem_ShapeSetGroup:
{ {
//TODO: Реализовать!!!! writeObject(w, data.oldPr);
break; break;
} }
} }
...@@ -7393,7 +7392,7 @@ CChartSpace.prototype = ...@@ -7393,7 +7392,7 @@ CChartSpace.prototype =
} }
case historyitem_ShapeSetGroup: case historyitem_ShapeSetGroup:
{ {
//TODO: Реализовать!!!! this.group = readObject(r);
break; break;
} }
} }
......
...@@ -4851,20 +4851,15 @@ function BinaryPPTYLoader() ...@@ -4851,20 +4851,15 @@ function BinaryPPTYLoader()
_stream.size = s.size; _stream.size = s.size;
_chart = new CChartSpace(); _chart = new CChartSpace();
var oBinaryChartReader = new BinaryChartReader(this.stream); var oBinaryChartReader = new BinaryChartReader(_stream);
oBinaryChartReader.ExternalReadCT_ChartSpace(length, _chart); oBinaryChartReader.ExternalReadCT_ChartSpace(_length, _chart);
_chart.setBDeleted(false);
if(!_chart.spPr)
_chart.setSpPr(new CSpPr());
if (_xfrm) if (_xfrm)
{ _chart.spPr.setXfrm(_xfrm);
if (_chart.setXfrm)
{
_chart.setXfrm(_xfrm.offX, _xfrm.offY, _xfrm.extX, _xfrm.extY, _xfrm.rot, _xfrm.flipH, _xfrm.flipV);
}
else
{
_chart.setPosition(_xfrm.offX, _xfrm.offY);
_chart.setExtents(_xfrm.extX, _xfrm.extY);
}
}
s.Seek2(_pos + _length); s.Seek2(_pos + _length);
break; break;
......
...@@ -4349,6 +4349,13 @@ ParaDrawing.prototype = ...@@ -4349,6 +4349,13 @@ ParaDrawing.prototype =
this.DocumentContent = this.Parent.Parent; this.DocumentContent = this.Parent.Parent;
this.GraphicObj.parent = this; this.GraphicObj.parent = this;
if ( this.GraphicObj.arrGraphicObjects )
{
var Count = this.GraphicObj.arrGraphicObjects.length;
for ( var Index = 0; Index < Count; Index++ )
this.GraphicObj.arrGraphicObjects[Index].parent = this;
}
var PageNum = ParaLayout.PageNum; var PageNum = ParaLayout.PageNum;
......
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