Commit 978b35b7 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@51137 954022d7-b5bf-4e40-9824-e11837661b57
parent d3a6cecf
......@@ -53,6 +53,7 @@ function CChartAsGroup(parent)
{
this.setParent(parent);
this.setAscChart(new asc_CChart());
}
}
......
......@@ -496,6 +496,36 @@ CImageShape.prototype =
},
getHierarchy: function()
{
if(this.recalcInfo.recalculateShapeHierarchy)
{
this.compiledHierarchy.length = 0;
var hierarchy = this.compiledHierarchy;
if(this.isPlaceholder())
{
var ph_type = this.getPlaceholderType();
var ph_index = this.getPlaceholderIndex();
switch (this.parent.kind)
{
case SLIDE_KIND:
{
hierarchy.push(this.parent.Layout.getMatchingShape(ph_type, ph_index));
hierarchy.push(this.parent.Layout.Master.getMatchingShape(ph_type, ph_index));
break;
}
case LAYOUT_KIND:
{
hierarchy.push(this.parent.Master.getMatchingShape(ph_type, ph_index));
break;
}
}
}
this.recalcInfo.recalculateShapeHierarchy = true;
}
return this.compiledHierarchy;
},
recalculateTransform: function()
{
if(!isRealObject(this.group))
......
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