Commit c2f95aa6 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

В апи и экспорт добавлена функция для получения имени стиля по его идентификатору.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66578 954022d7-b5bf-4e40-9824-e11837661b57
parent 87c30acc
......@@ -15228,6 +15228,17 @@ CDocument.prototype.Set_ShowParagraphMarks = function(isShow, isRedraw)
this.DrawingDocument.FirePaint();
}
};
CDocument.prototype.Get_StyleNameById = function(StyleId)
{
if (!this.Styles)
return "";
var Style = this.Styles.Get(StyleId);
if (!Style)
return "";
return Style.Get_Name();
};
//-----------------------------------------------------------------------------------
// Private
//-----------------------------------------------------------------------------------
......
......@@ -6573,6 +6573,7 @@ asc_docs_api.prototype.asc_RemoveStyle = function(sName){};
asc_docs_api.prototype.asc_RemoveAllCustomStyles = function(){};
asc_docs_api.prototype.asc_IsStyleDefault = function(sName){return true;};
asc_docs_api.prototype.asc_IsDefaultStyleChanged = function(sName){return false;};
asc_docs_api.prototype.asc_GetStyleNameById = function(StyleId){return this.WordControl.m_oLogicDocument.Get_StyleNameById(StyleId);};
//----------------------------------------------------------------------------------------------------------------------
// Работаем с рецензированием
//----------------------------------------------------------------------------------------------------------------------
......
......@@ -506,6 +506,7 @@ asc_docs_api.prototype['asc_RemoveStyle'] = asc_docs_api.prototype.asc_RemoveSty
asc_docs_api.prototype['asc_RemoveAllCustomStyles'] = asc_docs_api.prototype.asc_RemoveAllCustomStyles;
asc_docs_api.prototype['asc_IsStyleDefault'] = asc_docs_api.prototype.asc_IsStyleDefault;
asc_docs_api.prototype['asc_IsDefaultStyleChanged'] = asc_docs_api.prototype.asc_IsDefaultStyleChanged;
asc_docs_api.prototype['asc_GetStyleNameById'] = asc_docs_api.prototype.asc_GetStyleNameById;
asc_docs_api.prototype['asc_SetTrackRevisions'] = asc_docs_api.prototype.asc_SetTrackRevisions;
asc_docs_api.prototype['asc_IsTrackRevisions'] = asc_docs_api.prototype.asc_IsTrackRevisions;
asc_docs_api.prototype['sync_BeginCatchRevisionsChanges'] = asc_docs_api.prototype.sync_BeginCatchRevisionsChanges;
......
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