Commit 048c78ca 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@57234 954022d7-b5bf-4e40-9824-e11837661b57
parent 2b75eebe
......@@ -242,6 +242,17 @@ function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageInde
}
else
{
if(drawingObjectsController.document)
{
var content = title.getDocContent();
var invert_transform_text = title.invertTransformText, tx, ty;
if(content && invert_transform_text)
{
tx = invert_transform_text.TransformPointX(x, y);
ty = invert_transform_text.TransformPointY(x, y);
content.Update_CursorType(tx, ty, pageIndex);
}
}
return {objectId: drawing.Get_Id(), cursorType: "text"};
}
}
......@@ -305,6 +316,17 @@ function handleChart(drawing, drawingObjectsController, e, x, y, group, pageInde
}
else
{
if(drawingObjectsController.document)
{
var content = title.getDocContent();
var invert_transform_text = title.invertTransformText, tx, ty;
if(content && invert_transform_text)
{
tx = invert_transform_text.TransformPointX(x, y);
ty = invert_transform_text.TransformPointY(x, y);
content.Update_CursorType(tx, ty, pageIndex);
}
}
return {objectId: drawing.Get_Id(), cursorType: "text"};
}
}
......@@ -389,6 +411,17 @@ function handleInlineChart(drawing, drawingObjectsController, e, x, y, pageIndex
}
else
{
if(drawingObjectsController.document)
{
var content = title.getDocContent();
var invert_transform_text = title.invertTransformText, tx, ty;
if(content && invert_transform_text)
{
tx = invert_transform_text.TransformPointX(x, y);
ty = invert_transform_text.TransformPointY(x, y);
content.Update_CursorType(tx, ty, pageIndex);
}
}
return {objectId: drawing.Get_Id(), cursorType: "text"};
}
}
......
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