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

copy/paste

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59764 954022d7-b5bf-4e40-9824-e11837661b57
parent de3c25fb
......@@ -3686,8 +3686,9 @@ PasteProcessor.prototype =
presentation.addNextSlide();
b_add_slide = true;
}
var shape = new CShape(presentation.Slides[presentation.CurPage]);
shape.setTxBody(new CTextBody(shape));
var shape = new CShape();
shape.setParent(presentation.Slides[presentation.CurPage]);
shape.setTxBody(CreateTextBodyFromString("", presentation.DrawingDocument, shape));
var dd = presentation.DrawingDocument;
arrShapes.push(shape);
//shape.setXfrm(dd.GetMMPerDot(node["offsetLeft"]), dd.GetMMPerDot(node["offsetTop"]), null, null, null, null, null);
......@@ -3701,8 +3702,10 @@ PasteProcessor.prototype =
shape.txBody.content.Internal_Content_Remove(0, 1);
}
var w = shape.txBody.getRectWidth(presentation.Width*2/3);
var h = shape.txBody.getRectHeight(2000, w);
shape.setXfrm(null, null, w, h, null, null, null);
var h = shape.txBody.content.Get_SummaryHeight();
CheckSpPrXfrm(shape);
shape.spPr.xfrm.setExtX(w);
shape.spPr.xfrm.setExtY(h);
}
//oThis._AddNextPrevToContent(oThis.oDocument);
if(false == oThis.bNested)
......
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