Commit 65b9b38c authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Вынес HtmlElementName в базовый класс

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66137 954022d7-b5bf-4e40-9824-e11837661b57
parent 29d7ad7f
"use strict"; "use strict";
/** @constructor */ /** @constructor */
function baseEditorsApi() { function baseEditorsApi(name) {
this.HtmlElementName = name;
this.CoAuthoringApi = new window['CDocsCoApi'](); this.CoAuthoringApi = new window['CDocsCoApi']();
} }
// send chart message // send chart message
......
...@@ -20,11 +20,10 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -20,11 +20,10 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
/** @constructor */ /** @constructor */
function spreadsheet_api(name, inputName, eventsHandlers) { function spreadsheet_api(name, inputName, eventsHandlers) {
spreadsheet_api.superclass.constructor.call(this); spreadsheet_api.superclass.constructor.call(this, name);
g_fontApplication.Init(); g_fontApplication.Init();
/************ private!!! **************/ /************ private!!! **************/
this.HtmlElementName = name;
this.topLineEditorName = inputName; this.topLineEditorName = inputName;
this.HtmlElement = null; this.HtmlElement = null;
this.topLineEditorElement = null; this.topLineEditorElement = null;
......
...@@ -33,7 +33,7 @@ CErrorData.prototype.get_Value = function() { return this.Value; }; ...@@ -33,7 +33,7 @@ CErrorData.prototype.get_Value = function() { return this.Value; };
/** @constructor */ /** @constructor */
function asc_docs_api(name) function asc_docs_api(name)
{ {
asc_docs_api.superclass.constructor.call(this); asc_docs_api.superclass.constructor.call(this, name);
g_fontApplication.Init(); g_fontApplication.Init();
...@@ -43,8 +43,6 @@ function asc_docs_api(name) ...@@ -43,8 +43,6 @@ function asc_docs_api(name)
g_oTableId = new CTableId(); g_oTableId = new CTableId();
/************ private!!! **************/ /************ private!!! **************/
this.HtmlElementName = name;
this.WordControl = new CEditorPage(this); this.WordControl = new CEditorPage(this);
this.WordControl.Name = this.HtmlElementName; this.WordControl.Name = this.HtmlElementName;
......
...@@ -286,7 +286,7 @@ CMailMergeSendData.prototype.put_UserId = function(v){this["userId"] = v;}; ...@@ -286,7 +286,7 @@ CMailMergeSendData.prototype.put_UserId = function(v){this["userId"] = v;};
/** @constructor */ /** @constructor */
function asc_docs_api(name) function asc_docs_api(name)
{ {
asc_docs_api.superclass.constructor.call(this); asc_docs_api.superclass.constructor.call(this, name);
if (window["AscDesktopEditor"]) if (window["AscDesktopEditor"])
{ {
...@@ -302,8 +302,6 @@ function asc_docs_api(name) ...@@ -302,8 +302,6 @@ function asc_docs_api(name)
g_oTableId = new CTableId(); g_oTableId = new CTableId();
/************ private!!! **************/ /************ private!!! **************/
this.HtmlElementName = name;
this.WordControl = new CEditorPage(this); this.WordControl = new CEditorPage(this);
this.WordControl.Name = this.HtmlElementName; this.WordControl.Name = this.HtmlElementName;
......
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