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

Get_SelectedContent И Insert_Content

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58594 954022d7-b5bf-4e40-9824-e11837661b57
parent d8c21145
...@@ -41,6 +41,7 @@ CGraphicFrame.prototype = ...@@ -41,6 +41,7 @@ CGraphicFrame.prototype =
Get_ColorMap: CShape.prototype.Get_ColorMap, Get_ColorMap: CShape.prototype.Get_ColorMap,
setBDeleted: CShape.prototype.setBDeleted, setBDeleted: CShape.prototype.setBDeleted,
getBase64Img: CShape.prototype.getBase64Img,
Is_DrawingShape: function() Is_DrawingShape: function()
......
...@@ -2802,7 +2802,7 @@ CPresentation.prototype = ...@@ -2802,7 +2802,7 @@ CPresentation.prototype =
var Table = SelectedContent.Elements[0].Element; var Table = SelectedContent.Elements[0].Element;
GraphicFrame.setGraphicObject(Table); GraphicFrame.setGraphicObject(Table);
Table.Set_Parent(GraphicFrame); Table.Set_Parent(GraphicFrame);
ret.Drawings.push(GraphicFrame); ret.Drawings.push(new DrawingCopyObject(GraphicFrame, target_text_object.x, target_text_object.y, target_text_object.extX, target_text_object.extY, target_text_object.getBase64Img()) );
} }
} }
else else
...@@ -2847,7 +2847,7 @@ CPresentation.prototype = ...@@ -2847,7 +2847,7 @@ CPresentation.prototype =
var selected_slides = editor.WordControl.Thumbnails.GetSelectedArray(); var selected_slides = editor.WordControl.Thumbnails.GetSelectedArray();
for(i = 0; i < selected_slides.length; ++i) for(i = 0; i < selected_slides.length; ++i)
{ {
ret.SlideObjects.push(new SlideCopyObject(this.Slides[selected_slides[i]], this.Slides[selected_slides[i]].getBase64Img())); ret.SlideObjects.push(new SlideCopyObject(this.Slides[selected_slides[i]].copy(), this.Slides[selected_slides[i]].getBase64Img()));
} }
} }
} }
...@@ -2872,8 +2872,8 @@ CPresentation.prototype = ...@@ -2872,8 +2872,8 @@ CPresentation.prototype =
{ {
for(i = 0; i < Content.Drawings.length; ++i) for(i = 0; i < Content.Drawings.length; ++i)
{ {
Content.Drawings[i].setParent(this.Slides[this.CurPage]); Content.Drawings[i].Drawing.setParent(this.Slides[this.CurPage]);
Content.Drawings[i].addToDrawingObjects(); Content.Drawings[i].Drawing.addToDrawingObjects();
} }
} }
else if(Content.DocContent) else if(Content.DocContent)
......
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