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

удаление заголовков и подписей осей диаграмм через delete и backspace

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52965 954022d7-b5bf-4e40-9824-e11837661b57
parent 60135a99
......@@ -858,6 +858,52 @@ DrawingObjectsController.prototype =
state.textObject.updateSelectionState(drawingObjectsController.drawingObjects.drawingDocument);
break;
}
case STATES_ID_CHART:
case STATES_ID_CHART_GROUP:
{
History.Create_NewPoint();
var chart = state.chart;
var history_is_on = History.Is_On();
if(chart.chartTitle && chart.chartTitle.selected)
{
if(history_is_on)
History.TurnOff();
g_oTableId.m_bTurnOff = true;
var copy_asc_chart = new asc_CChart(chart.chart);
g_oTableId.m_bTurnOff = false;
copy_asc_chart.header.asc_setTitle("");
if(history_is_on)
History.TurnOn();
chart.setChart(copy_asc_chart);
History.TurnOn();
}
else if(chart.hAxisTitle && chart.hAxisTitle.selected)
{
if(history_is_on)
History.TurnOff();
g_oTableId.m_bTurnOff = true;
var copy_asc_chart = new asc_CChart(chart.chart);
g_oTableId.m_bTurnOff = false;
copy_asc_chart.xAxis.asc_setTitle("");
if(history_is_on)
History.TurnOn();
chart.setChart(copy_asc_chart);
}
else if(chart.vAxisTitle && chart.vAxisTitle.selected)
{
if(history_is_on)
History.TurnOff();
g_oTableId.m_bTurnOff = true;
var copy_asc_chart = new asc_CChart(chart.chart);
g_oTableId.m_bTurnOff = false;
copy_asc_chart.yAxis.asc_setTitle("");
if(history_is_on)
History.TurnOn();
chart.setChart(copy_asc_chart);
}
chart.recalculate();
break;
}
case STATES_ID_GROUP:
{
History.Create_NewPoint();
......
......@@ -3126,6 +3126,7 @@ function GroupState(drawingObjectsController, drawingObjects, group)
function ChartGroupState(drawingObjectsController, drawingObjects, group, chart)
{
this.id = STATES_ID_CHART_GROUP;
this.drawingObjectsController = drawingObjectsController;
this.drawingObjects = drawingObjects;
this.group = 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