Commit 159966dc authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55543 954022d7-b5bf-4e40-9824-e11837661b57
parent 8022fb82
......@@ -4042,6 +4042,20 @@ CPresentation.prototype =
return this.Content[ContentPos].Get_NearestPos( PageNum, X, Y, bAnchor, Drawing );
},
Get_SelectionAnchorPos: function()
{
var selected_objects = this.Slides[this.CurPage].graphicObjects.selectedObjects;
if(selected_objects.length > 0)
{
var last_object = selected_objects[selected_objects.length - 1];
return { X0 : last_object.x, X1 : last_object.x + last_object.extX, Y : last_object.y};
}
else
{
return { X0 : this.Slides[this.CurPage].commentX, X1 : this.Slides[this.CurPage].commentX, Y : this.Slides[this.CurPage].commentY};
}
},
Internal_Content_Add : function(Position, NewObject)
{
// Position = this.Content.length допускается
......
......@@ -3518,6 +3518,18 @@ asc_docs_api.prototype.asc_addComment = function(AscCommentData)
var Comment = this.WordControl.m_oLogicDocument.Add_Comment( CommentData );
if ( null != Comment )
this.sync_AddComment( Comment.Get_Id(), CommentData );
return Comment.Get_Id();
}
asc_docs_api.prototype.asc_getMasterCommentId = function()
{
return -1;
}
asc_docs_api.prototype.asc_getAnchorPosition = function()
{
var AnchorPos = this.WordControl.m_oLogicDocument.Get_SelectionAnchorPos();
return new asc_CRect(AnchorPos.X0, AnchorPos.Y, AnchorPos.X1 - AnchorPos.X0, 0);
}
asc_docs_api.prototype.asc_removeComment = function(Id)
......
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