Commit c783b3ba authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete historyitem_Chart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57063 954022d7-b5bf-4e40-9824-e11837661b57
parent e20af92e
......@@ -965,220 +965,6 @@ asc_CChart.prototype = {
},
Refresh_RecalcData: function(data) {
},
Undo: function(type, data) {
var api = window["Asc"]["editor"];
var ws = api.wb.getWorksheet();
switch (type) {
// type, subType, styleId
case historyitem_Chart_Type:
this.type = data.oldValue;
break;
case historyitem_Chart_SubType:
this.subType = data.oldValue;
break;
case historyitem_Chart_Style:
this.styleId = data.oldValue;
break;
// showValue, showBorder
case historyitem_Chart_IsShowValue:
this.bShowValue = data.oldValue;
break;
case historyitem_Chart_IsShowBorder:
this.bShowBorder = data.oldValue;
break;
// range
case historyitem_Chart_RangeInterval:
this.range.interval = data.oldValue;
if ( ws ) {
this.range.intervalObject = convertFormula( this.range.interval, ws );
this.rebuildSeries();
}
break;
case historyitem_Chart_RangeRowColumns:
this.range.rows = data.oldValue;
this.range.columns = !data.oldValue;
break;
// header
case historyitem_Chart_HeaderTitle:
this.header.title = data.oldValue;
break;
case historyitem_Chart_HeaderSubTitle:
this.header.subTitle = data.oldValue;
break;
case historyitem_Chart_IsDefaultHeaderTitle:
this.header.bDefaultTitle = data.oldValue;
break;
// xAxis
case historyitem_Chart_xAxisTitle:
this.xAxis.title = data.oldValue;
break;
case historyitem_Chart_xAxisIsDefaultTitle:
this.xAxis.bDefaultTitle = data.oldValue;
break;
case historyitem_Chart_xAxisIsShow:
this.xAxis.bShow = data.oldValue;
break;
case historyitem_Chart_xAxisIsGrid:
this.xAxis.bGrid = data.oldValue;
break;
// yAxis
case historyitem_Chart_yAxisTitle:
this.yAxis.title = data.oldValue;
break;
case historyitem_Chart_yAxisIsDefaultTitle:
this.yAxis.bDefaultTitle = data.oldValue;
break;
case historyitem_Chart_yAxisIsShow:
this.yAxis.bShow = data.oldValue;
break;
case historyitem_Chart_yAxisIsGrid:
this.yAxis.bGrid = data.oldValue;
break;
// legend
case historyitem_Chart_LegendPosition:
this.legend.position = data.oldValue;
break;
case historyitem_Chart_LegendIsShow:
this.legend.bShow = data.oldValue;
break;
case historyitem_Chart_LegendIsOverlay:
this.legend.bOverlay = data.oldValue;
break;
}
if ( ws )
ws.objectRender.rebuildChartGraphicObjects();
},
Redo: function(type, data) {
var api = window["Asc"]["editor"];
var ws = api.wb.getWorksheet();
// type, subType, styleId
switch (type) {
case historyitem_Chart_Type:
this.type = data.newValue;
break;
case historyitem_Chart_SubType:
this.subType = data.newValue;
break;
case historyitem_Chart_Style:
this.styleId = data.newValue;
break;
// showValue, showBorder
case historyitem_Chart_IsShowValue:
this.bShowValue = data.newValue;
break;
case historyitem_Chart_IsShowBorder:
this.bShowBorder = data.newValue;
break;
// range
case historyitem_Chart_RangeInterval:
this.range.interval = data.newValue;
if ( ws ) {
this.range.intervalObject = convertFormula( this.range.interval, ws );
this.rebuildSeries();
}
break;
case historyitem_Chart_RangeRowColumns:
this.range.rows = data.newValue;
this.range.columns = !data.newValue;
break;
// header
case historyitem_Chart_HeaderTitle:
this.header.title = data.newValue;
break;
case historyitem_Chart_HeaderSubTitle:
this.header.subTitle = data.newValue;
break;
case historyitem_Chart_IsDefaultHeaderTitle:
this.header.bDefaultTitle = data.newValue;
break;
// xAxis
case historyitem_Chart_xAxisTitle:
this.xAxis.title = data.newValue;
break;
case historyitem_Chart_xAxisIsDefaultTitle:
this.xAxis.bDefaultTitle = data.newValue;
break;
case historyitem_Chart_xAxisIsShow:
this.xAxis.bShow = data.newValue;
break;
case historyitem_Chart_xAxisIsGrid:
this.xAxis.bGrid = data.newValue;
break;
// yAxis
case historyitem_Chart_yAxisTitle:
this.yAxis.title = data.newValue;
break;
case historyitem_Chart_yAxisIsDefaultTitle:
this.yAxis.bDefaultTitle = data.newValue;
break;
case historyitem_Chart_yAxisIsShow:
this.yAxis.bShow = data.newValue;
break;
case historyitem_Chart_yAxisIsGrid:
this.yAxis.bGrid = data.newValue;
break;
// legend
case historyitem_Chart_LegendPosition:
this.legend.position = data.newValue;
break;
case historyitem_Chart_LegendIsShow:
this.legend.bShow = data.newValue;
break;
case historyitem_Chart_LegendIsOverlay:
this.legend.bOverlay = data.newValue;
break;
}
if ( ws )
ws.objectRender.rebuildChartGraphicObjects();
}
};
......@@ -5273,67 +5059,6 @@ function DrawingObjects() {
_this.getAscChartObject = function() {
// if ( !api.chartStyleManager.isReady()) {
// api.chartStyleManager.init();
// _this.callTrigger("asc_onUpdateChartStyles");
// }
// if ( api.isChartEditor ) {
// if ( aObjects.length && aObjects[0].isChart() ) {
// aObjects[0].graphicObject.syncAscChart();
// return new asc_CChart(aObjects[0].graphicObject.chart);
// }
// }
/*if($("#chartPropsMenuDiv").length > 0) //TODO: убрать как будет всё готово в меню
{
var chart = _this.controller.getAscChartObject();
if ( !chart ) {
History.Create_NewPoint();
chart = new asc_CChart();
chart.header.title = api.chartTranslate.title;
chart.xAxis.title = api.chartTranslate.xAxis;
chart.yAxis.title = api.chartTranslate.yAxis;
chart.range.interval = function() {
var result = "";
if (worksheet) {
var selectedRange = worksheet.getSelectedRange();
if (selectedRange) {
var box = selectedRange.getBBox0();
// Rows/Columns
if ( box.r2 - box.r1 < box.c2 - box.c1 ) {
chart.range.rows = true;
chart.range.columns = false;
}
else {
chart.range.rows = false;
chart.range.columns = true;
}
var startCell = new CellAddress(box.r1, box.c1, 0);
var endCell = new CellAddress(box.r2, box.c2, 0);
if (startCell && endCell) {
result = parserHelp.get3DRef(worksheet.model.sName, startCell.getID() === endCell.getID() ?
startCell.getID() : startCell.getID() + ':' + endCell.getID());
}
}
}
return result;
}();
chart.range.intervalObject = function() {
return worksheet ? worksheet.getSelectedRange() : null;
}();
}
return chart;
} */
var settings;
if(api.isChartEditor)
{
......
......@@ -84,86 +84,6 @@ var historyitem_Cell_SetFont = 19;
var historyitem_Cell_SetQuotePrefix = 20;
var historyitem_Cell_Angle = 21;
var historyitem_Cell_Style = 22;
// Chart
var historyitem_Chart_Type = 1;
var historyitem_Chart_SubType = 2;
var historyitem_Chart_Style = 3;
var historyitem_Chart_IsShowValue = 10;
var historyitem_Chart_IsShowBorder = 11;
var historyitem_Chart_RangeInterval = 20;
var historyitem_Chart_RangeRowColumns = 21;
var historyitem_Chart_HeaderTitle = 30;
var historyitem_Chart_HeaderSubTitle = 31;
var historyitem_Chart_IsDefaultHeaderTitle = 32;
var historyitem_Chart_xAxisTitle = 40;
var historyitem_Chart_xAxisIsDefaultTitle = 41;
var historyitem_Chart_xAxisIsShow = 42;
var historyitem_Chart_xAxisIsGrid = 43;
var historyitem_Chart_yAxisTitle = 50;
var historyitem_Chart_yAxisIsDefaultTitle = 51;
var historyitem_Chart_yAxisIsShow = 52;
var historyitem_Chart_yAxisIsGrid = 53;
var historyitem_Chart_LegendPosition = 60;
var historyitem_Chart_LegendIsShow = 61;
var historyitem_Chart_LegendIsOverlay = 62;
var historyitem_Comment_Add = 1;
var historyitem_Comment_Remove = 2;
......
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