Commit e69b029a 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@51254 954022d7-b5bf-4e40-9824-e11837661b57
parent 61043c7c
......@@ -5591,6 +5591,23 @@ asc_docs_api.prototype.sync_UnLockComment = function(Id)
{
this.asc_fireCallback("asc_onUnLockComment", Id);
}
asc_docs_api.prototype.asc_getComments = function()
{
var ResComments = new Array();
var LogicDocument = this.WordControl.m_oLogicDocument;
if ( undefined != LogicDocument )
{
var DocComments = LogicDocument.Comments;
for ( var Id in DocComments.m_aComments )
{
var AscCommentData = new asc_CCommentData(DocComments.m_aComments[Id].Data);
ResComments.push( { "Id" : Id, "Comment" : AscCommentData } );
}
}
return ResComments;
}
//-----------------------------------------------------------------
asc_docs_api.prototype.sync_LockHeaderFooters = function()
{
......
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