Commit 66e33869 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 24651 - Убрать возможность удалять диаграмму во фрейме

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56636 954022d7-b5bf-4e40-9824-e11837661b57
parent 38aca1f3
...@@ -4084,6 +4084,12 @@ function DrawingObjects() { ...@@ -4084,6 +4084,12 @@ function DrawingObjects() {
if ( chart instanceof asc_ChartSettings ) if ( chart instanceof asc_ChartSettings )
{ {
if(api.isChartEditor)
{
this.controller.selectObject(aObjects[0].graphicObject, 0);
this.controller.editChartDrawingObjects(chart);
return;
}
var asc_chart = new asc_CChart(); var asc_chart = new asc_CChart();
var rangeWs = convertFormula2(chart.range, worksheet); var rangeWs = convertFormula2(chart.range, worksheet);
asc_chart.range.intervalObject = rangeWs.range; asc_chart.range.intervalObject = rangeWs.range;
...@@ -4303,6 +4309,10 @@ function DrawingObjects() { ...@@ -4303,6 +4309,10 @@ function DrawingObjects() {
{ {
if ( chart ) if ( chart )
{ {
if(api.isChartEditor)
{
this.controller.selectObject(aObjects[0].graphicObject, 0);
}
_this.controller.editChartDrawingObjects(chart); _this.controller.editChartDrawingObjects(chart);
_this.showDrawingObjects(false); _this.showDrawingObjects(false);
} }
...@@ -5394,7 +5404,15 @@ function DrawingObjects() { ...@@ -5394,7 +5404,15 @@ function DrawingObjects() {
return chart; return chart;
} */ } */
var settings = _this.controller.getChartProps();
var settings;
if(api.isChartEditor)
{
return this.controller.getPropsFromChart(aObjects[0].graphicObject);
}
settings = _this.controller.getChartProps();
if ( !settings ) if ( !settings )
{ {
settings = new asc_ChartSettings(); settings = new asc_ChartSettings();
......
...@@ -2684,6 +2684,11 @@ DrawingObjectsController.prototype = ...@@ -2684,6 +2684,11 @@ DrawingObjectsController.prototype =
remove: function(dir) remove: function(dir)
{ {
var asc = window["Asc"] ? window["Asc"] : (window["Asc"] = {});
if(asc["editor"] && asc["editor"].isChartEditor)
{
return;
}
this.checkSelectedObjectsAndCallback(this.removeCallback, [dir]); this.checkSelectedObjectsAndCallback(this.removeCallback, [dir]);
}, },
......
...@@ -46,14 +46,15 @@ CChartSpace.prototype.Get_ColorMap = CShape.prototype.Get_ColorMap; ...@@ -46,14 +46,15 @@ CChartSpace.prototype.Get_ColorMap = CShape.prototype.Get_ColorMap;
CChartSpace.prototype.handleUpdateFill = function() CChartSpace.prototype.handleUpdateFill = function()
{ {
this.recalcInfo.recalculatePenBrush = true; this.recalcInfo.recalculatePenBrush = true;
this.recalcInfo.recalculateBrush = true;
this.recalcInfo.recalculateChart = true; this.recalcInfo.recalculateChart = true;
this.addToRecalculate(); this.addToRecalculate();
}; };
CChartSpace.prototype.handleUpdateLn = function() CChartSpace.prototype.handleUpdateLn = function()
{ {
this.recalcInfo.recalculatePenBrush = true; this.recalcInfo.recalculatePenBrush = true;
this.recalcInfo.recalculatePen = true;
this.recalcInfo.recalculateChart = true; this.recalcInfo.recalculateChart = true;
this.setRecalculateInfo();
this.addToRecalculate(); this.addToRecalculate();
}; };
......
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