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

Select_Drawings(DrawingArray, TargetContent) - метод у CDocument для селекта...

Select_Drawings(DrawingArray, TargetContent) - метод у CDocument для селекта вставленных графических объектов. DrawingArray - массив из ParaDrawing, TargetContent - контент, в который была произведена вставка.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57338 954022d7-b5bf-4e40-9824-e11837661b57
parent 0151a09a
...@@ -6967,6 +6967,27 @@ CDocument.prototype = ...@@ -6967,6 +6967,27 @@ CDocument.prototype =
this.DrawingObjects.shapeApply(shapeProps); this.DrawingObjects.shapeApply(shapeProps);
}, },
Select_Drawings : function(DrawingArray, TargetContent)
{
if(DrawingArray.length === 1 && DrawingArray[0].Is_Inline())
return;
this.DrawingObjects.resetSelection();
var hdr_ftr = TargetContent.Is_HdrFtr(true);
if(hdr_ftr)
{
hdr_ftr.Content.CurPos.Type = docpostype_DrawingObjects;
hdr_ftr.Set_CurrentElement(false);
}
else
{
this.CurPos.Type = docpostype_DrawingObjects;
}
for(var i = 0; i < DrawingArray.length; ++i)
{
this.DrawingObjects.selectObject(DrawingArray[i].GraphicObj, 0);
}
},
Set_TableProps : function(Props) Set_TableProps : function(Props)
{ {
// Работаем с колонтитулом // Работаем с колонтитулом
......
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