Commit 2076e3cc authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

chartTranslate и textArtTranslate в base

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66165 954022d7-b5bf-4e40-9824-e11837661b57
parent db19f64c
......@@ -14,6 +14,10 @@ function baseEditorsApi(name) {
// Тип состояния на данный момент (сохранение, открытие или никакое)
this.advancedOptionsAction = c_oAscAdvancedOptionsAction.None;
// Chart
this.chartTranslate = new asc_CChartTranslate();
this.textArtTranslate = new asc_TextArtTranslate();
// CoAuthoring and Chat
this.User = undefined;
this.CoAuthoringApi = new window['CDocsCoApi']();
......@@ -44,4 +48,11 @@ baseEditorsApi.prototype.asc_coAuthoringGetUsers = function() {
// get permissions
baseEditorsApi.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit();
};
// Images & Charts
baseEditorsApi.prototype.asc_setChartTranslate = function(translate) {
this.chartTranslate = translate;
};
baseEditorsApi.prototype.asc_setTextArtTranslate = function(translate) {
this.textArtTranslate = translate;
};
\ No newline at end of file
......@@ -112,10 +112,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.textArtPreviewManager = new TextArtPreviewManager();
}
// Chart
this.chartTranslate = new asc_CChartTranslate();
this.textArtTranslate = new asc_TextArtTranslate();
// Shapes
this.isStartAddShape = false;
this.ImageLoader.put_Api(this);
......@@ -2468,14 +2464,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
// Images & Charts
spreadsheet_api.prototype.asc_setChartTranslate = function(translate) {
this.chartTranslate = translate;
};
spreadsheet_api.prototype.asc_setTextArtTranslate = function(translate) {
this.textArtTranslate = translate;
};
spreadsheet_api.prototype.asc_drawingObjectsExist = function() {
for (var i = 0; i < this.wb.model.aWorksheets.length; i++) {
if (this.wb.model.aWorksheets[i].Drawings && this.wb.model.aWorksheets[i].Drawings.length) {
......
......@@ -136,13 +136,6 @@ function asc_docs_api(name)
this.chartPreviewManager = new ChartPreviewManager();
else
this.chartPreviewManager = null;
if(typeof asc_CChartTranslate !== "undefined")
this.chartTranslate = new asc_CChartTranslate();
else
this.chartTranslate = null;
this.textArtTranslate = new asc_TextArtTranslate();
if(typeof TextArtPreviewManager !== "undefined")
this.textArtPreviewManager = new TextArtPreviewManager();
......@@ -3172,15 +3165,6 @@ asc_docs_api.prototype.ImgApply = function(obj){
}
};
asc_docs_api.prototype.asc_setChartTranslate = function(translate) {
this.chartTranslate = translate;
};
asc_docs_api.prototype.asc_setTextArtTranslate = function(translate) {
this.textArtTranslate = new asc_TextArtTranslate();
};
asc_docs_api.prototype.ChartApply = function(obj)
{
if(obj.ChartProperties && obj.ChartProperties.type === c_oAscChartTypeSettings.stock && this.WordControl.m_oLogicDocument.Slides[this.WordControl.m_oLogicDocument.CurPage])
......
......@@ -350,10 +350,6 @@ function asc_docs_api(name)
this.isSpellCheckEnable = true;
this.SpellCheckUrl = ''; // Ссылка сервиса для проверки орфографии
// Chart
this.chartTranslate = new asc_CChartTranslate();
this.textArtTranslate = new asc_TextArtTranslate();
// это чтобы сразу показать ридер, без возможности вернуться в редактор/вьюер
this.isOnlyReaderMode = false;
......@@ -5061,12 +5057,6 @@ asc_docs_api.prototype.sync_HideForeignCursorLabel = function(UserId)
//this.asc_fireCallback("asc_onHideForeignCursorLabel", UserId);
};
asc_docs_api.prototype.asc_setChartTranslate = function(translate) {
this.chartTranslate = translate;
};
asc_docs_api.prototype.asc_setTextArtTranslate = function(translate) {
this.textArtTranslate = new asc_TextArtTranslate();
};
//-----------------------------------------------------------------
// Функции для работы с гиперссылками
......
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