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

asc_GetFontThumbnailsPath и asc_getEditorPermissions в api base

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66160 954022d7-b5bf-4e40-9824-e11837661b57
parent 702eb45d
......@@ -23,6 +23,9 @@ function baseEditorsApi(name) {
// Подключились ли уже к серверу
this.isOnFirstConnectEnd = false;
}
baseEditorsApi.prototype.asc_GetFontThumbnailsPath = function() {
return '../Common/Images/';
};
// send chart message
baseEditorsApi.prototype.asc_coAuthoringChatSendMessage = function(message) {
this.CoAuthoringApi.sendMessage(message);
......@@ -35,3 +38,7 @@ baseEditorsApi.prototype.asc_coAuthoringChatGetMessages = function() {
baseEditorsApi.prototype.asc_coAuthoringGetUsers = function() {
this.CoAuthoringApi.getUsers();
};
// get permissions
baseEditorsApi.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit();
};
\ No newline at end of file
......@@ -368,10 +368,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.asc_SendThemeColorSchemes(infos);
};
spreadsheet_api.prototype.asc_GetFontThumbnailsPath = function() {
return "../Common/Images/";
};
spreadsheet_api.prototype.asc_Init = function(fontsPath) {
var t = this;
asc["editor"] = ( asc["editor"] || t );
......@@ -520,9 +516,6 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
CHART_STYLE_MANAGER = new CChartStyleManager();
};
spreadsheet_api.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit();
};
spreadsheet_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.handlers.trigger('asc_onGetEditorPermissions', new asc.asc_CAscEditorPermissions());
......
......@@ -198,11 +198,6 @@ function asc_docs_api(name)
}
asc.extendClass(asc_docs_api, baseEditorsApi);
asc_docs_api.prototype.asc_GetFontThumbnailsPath = function()
{
return "../Common/Images/";
};
/////////////////////////////////////////////////////////////////////////
///////////////////CoAuthoring and Chat api//////////////////////////////
/////////////////////////////////////////////////////////////////////////
......@@ -702,9 +697,6 @@ asc_docs_api.prototype.sync_ChangeLastSelectedElement = function(type, obj)
asc_docs_api.prototype.Init = function() {
this.WordControl.Init();
};
asc_docs_api.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit();
};
asc_docs_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.asc_fireCallback('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
......
......@@ -515,11 +515,6 @@ asc_docs_api.prototype.SetLanguage = function(langId)
this.CurrentTranslate = translations_map[langId];
};
asc_docs_api.prototype.asc_GetFontThumbnailsPath = function()
{
return "../Common/Images/";
};
asc_docs_api.prototype.TranslateStyleName = function(style_name)
{
var ret = this.CurrentTranslate.DefaultStyles[style_name];
......@@ -639,9 +634,6 @@ asc_docs_api.prototype.Init = function()
{
this.WordControl.Init();
};
asc_docs_api.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit();
};
asc_docs_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
......
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