Commit 77cc5745 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@56646 954022d7-b5bf-4e40-9824-e11837661b57
parent f411b4d5
...@@ -13128,11 +13128,19 @@ CLegend.prototype = ...@@ -13128,11 +13128,19 @@ CLegend.prototype =
{ {
History.Add(this, {Type: historyitem_Legend_SetLegendPos,oldPr: this.legendPos, newPr: legendPos}); History.Add(this, {Type: historyitem_Legend_SetLegendPos,oldPr: this.legendPos, newPr: legendPos});
this.legendPos = legendPos; this.legendPos = legendPos;
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
}, },
setOverlay: function(overlay) setOverlay: function(overlay)
{ {
History.Add(this, {Type: historyitem_Legend_SetOverlay,oldPr: this.overlay, newPr: overlay}); History.Add(this, {Type: historyitem_Legend_SetOverlay,oldPr: this.overlay, newPr: overlay});
this.overlay = overlay; this.overlay = overlay;
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
}, },
setSpPr: function(spPr) setSpPr: function(spPr)
{ {
...@@ -13190,11 +13198,19 @@ CLegend.prototype = ...@@ -13190,11 +13198,19 @@ CLegend.prototype =
case historyitem_Legend_SetLegendPos: case historyitem_Legend_SetLegendPos:
{ {
this.legendPos = data.oldPr; this.legendPos = data.oldPr;
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
break; break;
} }
case historyitem_Legend_SetOverlay: case historyitem_Legend_SetOverlay:
{ {
this.overlay = data.oldPr; this.overlay = data.oldPr;
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
break; break;
} }
case historyitem_Legend_SetSpPr: case historyitem_Legend_SetSpPr:
...@@ -13234,11 +13250,19 @@ CLegend.prototype = ...@@ -13234,11 +13250,19 @@ CLegend.prototype =
case historyitem_Legend_SetLegendPos: case historyitem_Legend_SetLegendPos:
{ {
this.legendPos = data.newPr; this.legendPos = data.newPr;
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
break; break;
} }
case historyitem_Legend_SetOverlay: case historyitem_Legend_SetOverlay:
{ {
this.overlay = data.newPr; this.overlay = data.newPr;
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
break; break;
} }
case historyitem_Legend_SetSpPr: case historyitem_Legend_SetSpPr:
...@@ -13353,6 +13377,10 @@ CLegend.prototype = ...@@ -13353,6 +13377,10 @@ CLegend.prototype =
{ {
this.legendPos = null; this.legendPos = null;
} }
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
break; break;
} }
case historyitem_Legend_SetOverlay: case historyitem_Legend_SetOverlay:
...@@ -13365,6 +13393,10 @@ CLegend.prototype = ...@@ -13365,6 +13393,10 @@ CLegend.prototype =
{ {
this.overlay = null; this.overlay = null;
} }
if(this.parent && this.parent.parent)
{
this.parent.parent.handleUpdateInternalChart();
}
break; break;
} }
case historyitem_Legend_SetSpPr: case historyitem_Legend_SetSpPr:
......
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