Commit c358ec44 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@55982 954022d7-b5bf-4e40-9824-e11837661b57
parent 995b5960
......@@ -847,24 +847,31 @@ function CPPTXContentWriter()
this.BinaryFileWriter.StartRecord(0);
this.BinaryFileWriter.StartRecord(1);
if ("undefined" !== typeof(WordShape) && grObject instanceof WordShape)
{
this.WriteShape(grObject, Document, oMapCommentId, oNumIdMap, copyParams);
}
else if ("undefined" !== typeof(CShape) && grObject instanceof CShape)
switch(grObject.getObjectType())
{
this.WriteShape2(grObject, Document, oMapCommentId, oNumIdMap, copyParams);
}
else if (("undefined" !== typeof(WordImage) && grObject instanceof WordImage) || ("undefined" !== typeof(CImageShape) && grObject instanceof CImageShape))
{
this.WriteImage(grObject);
}
else if (("undefined" !== typeof(WordGroupShapes) && grObject instanceof WordGroupShapes) || ("undefined" !== typeof(CGroupShape) && grObject instanceof CGroupShape))
{
this.WriteGroup(grObject, Document, oMapCommentId, oNumIdMap, copyParams);
case historyitem_type_Shape:
{
if(grObject.bWordShape)
{
this.WriteShape(grObject, Document, oMapCommentId, oNumIdMap, copyParams);
}
else
{
this.WriteShape2(grObject, Document, oMapCommentId, oNumIdMap, copyParams);
}
break;
}
case historyitem_type_ImageShape:
{
this.WriteImage(grObject);
break;
}
case historyitem_type_GroupShape:
{
this.WriteGroup(grObject, Document, oMapCommentId, oNumIdMap, copyParams);
break;
}
}
this.BinaryFileWriter.EndRecord();
this.BinaryFileWriter.EndRecord();
......
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