Commit 80150519 authored by Alexander.Trofimov's avatar Alexander.Trofimov

move asc_CChartTranslate to aiCommon

parent 92091d6d
......@@ -74,30 +74,6 @@ asc_CChartStyle.prototype = {
asc_setImageUrl: function(imageUrl) { this.imageUrl = imageUrl; }
};
/** @constructor */
function asc_CChartTranslate() {
this.title = "Diagram Title";
this.xAxis = "X Axis";
this.yAxis = "Y Axis";
this.series = "Series";
}
asc_CChartTranslate.prototype = {
asc_getTitle: function() { return this.title; },
asc_setTitle: function(val) { this.title = val; },
asc_getXAxis: function() { return this.xAxis; },
asc_setXAxis: function(val) { this.xAxis = val; },
asc_getYAxis: function() { return this.yAxis; },
asc_setYAxis: function(val) { this.yAxis = val; },
asc_getSeries: function() { return this.series; },
asc_setSeries: function(val) { this.series = val; }
};
/** @constructor */
function asc_CChartBinary(chart) {
......@@ -3903,17 +3879,6 @@ function CoordsManager(ws) {
prot["asc_getImageUrl"] = prot.asc_getImageUrl;
prot["asc_setImageUrl"] = prot.asc_setImageUrl;
window["Asc"]["asc_CChartTranslate"] = window["Asc"].asc_CChartTranslate = asc_CChartTranslate;
prot = asc_CChartTranslate.prototype;
prot["asc_getTitle"] = prot.asc_getTitle;
prot["asc_setTitle"] = prot.asc_setTitle;
prot["asc_getXAxis"] = prot.asc_getXAxis;
prot["asc_setXAxis"] = prot.asc_setXAxis;
prot["asc_getYAxis"] = prot.asc_getYAxis;
prot["asc_setYAxis"] = prot.asc_setYAxis;
prot["asc_getSeries"] = prot.asc_getSeries;
prot["asc_setSeries"] = prot.asc_setSeries;
window["Asc"]["asc_CChartBinary"] = window["Asc"].asc_CChartBinary = asc_CChartBinary;
prot = asc_CChartBinary.prototype;
prot["asc_getBinary"] = prot.asc_getBinary;
......
......@@ -601,8 +601,8 @@ baseEditorsApi.prototype.asc_getUrlType = function(url) {
this.ImageLoader.put_Api(this);
this.FontLoader.SetStandartFonts();
this.chartTranslate = new Asc.asc_CChartTranslate();
this.textArtTranslate = new Asc.asc_TextArtTranslate();
this.chartTranslate = this.chartTranslate ? this.chartTranslate : new Asc.asc_CChartTranslate();
this.textArtTranslate = this.textArtTranslate ? this.textArtTranslate : new Asc.asc_TextArtTranslate();
this.chartPreviewManager = new AscCommon.ChartPreviewManager();
this.textArtPreviewManager = new AscCommon.TextArtPreviewManager();
......
......@@ -1554,6 +1554,28 @@
return this.Style;
};
/** @constructor */
function asc_CChartTranslate() {
this.title = "Diagram Title";
this.xAxis = "X Axis";
this.yAxis = "Y Axis";
this.series = "Series";
}
asc_CChartTranslate.prototype = {
asc_getTitle: function() { return this.title; },
asc_setTitle: function(val) { this.title = val; },
asc_getXAxis: function() { return this.xAxis; },
asc_setXAxis: function(val) { this.xAxis = val; },
asc_getYAxis: function() { return this.yAxis; },
asc_setYAxis: function(val) { this.yAxis = val; },
asc_getSeries: function() { return this.series; },
asc_setSeries: function(val) { this.series = val; }
};
function asc_TextArtTranslate()
{
this.DefaultText = "Your text here";
......@@ -2619,6 +2641,17 @@
prot["asc_putStyle"] = prot.asc_putStyle;
prot["asc_getStyle"] = prot.asc_getStyle;
window["Asc"]["asc_CChartTranslate"] = window["Asc"].asc_CChartTranslate = asc_CChartTranslate;
prot = asc_CChartTranslate.prototype;
prot["asc_getTitle"] = prot.asc_getTitle;
prot["asc_setTitle"] = prot.asc_setTitle;
prot["asc_getXAxis"] = prot.asc_getXAxis;
prot["asc_setXAxis"] = prot.asc_setXAxis;
prot["asc_getYAxis"] = prot.asc_getYAxis;
prot["asc_setYAxis"] = prot.asc_setYAxis;
prot["asc_getSeries"] = prot.asc_getSeries;
prot["asc_setSeries"] = prot.asc_setSeries;
window["Asc"]["asc_TextArtTranslate"] = window["Asc"].asc_TextArtTranslate = asc_TextArtTranslate;
prot = asc_TextArtTranslate.prototype;
prot["asc_setDefaultText"] = prot.asc_setDefaultText;
......
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