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";
/** @constructor */
function baseEditorsApi() {
function baseEditorsApi(name) {
this.HtmlElementName = name;
this.CoAuthoringApi = new window['CDocsCoApi']();
}
// send chart message
......
......@@ -20,11 +20,10 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
/** @constructor */
function spreadsheet_api(name, inputName, eventsHandlers) {
spreadsheet_api.superclass.constructor.call(this);
spreadsheet_api.superclass.constructor.call(this, name);
g_fontApplication.Init();
/************ private!!! **************/
this.HtmlElementName = name;
this.topLineEditorName = inputName;
this.HtmlElement = null;
this.topLineEditorElement = null;
......
......@@ -33,7 +33,7 @@ CErrorData.prototype.get_Value = function() { return this.Value; };
/** @constructor */
function asc_docs_api(name)
{
asc_docs_api.superclass.constructor.call(this);
asc_docs_api.superclass.constructor.call(this, name);
g_fontApplication.Init();
......@@ -43,8 +43,6 @@ function asc_docs_api(name)
g_oTableId = new CTableId();
/************ private!!! **************/
this.HtmlElementName = name;
this.WordControl = new CEditorPage(this);
this.WordControl.Name = this.HtmlElementName;
......
......@@ -286,7 +286,7 @@ CMailMergeSendData.prototype.put_UserId = function(v){this["userId"] = v;};
/** @constructor */
function asc_docs_api(name)
{
asc_docs_api.superclass.constructor.call(this);
asc_docs_api.superclass.constructor.call(this, name);
if (window["AscDesktopEditor"])
{
......@@ -302,8 +302,6 @@ function asc_docs_api(name)
g_oTableId = new CTableId();
/************ private!!! **************/
this.HtmlElementName = name;
this.WordControl = new CEditorPage(this);
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