Commit 39159f29 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@63677 954022d7-b5bf-4e40-9824-e11837661b57
parent 408e0795
This diff is collapsed.
...@@ -501,7 +501,7 @@ CTextBody.prototype = ...@@ -501,7 +501,7 @@ CTextBody.prototype =
Check_AutoFit: function() Check_AutoFit: function()
{ {
return this.parent && this.parent.checkAutofit && this.parent.checkAutofit(true) || false; return this.parent && this.parent.Check_AutoFit && this.parent.Check_AutoFit(true) || false;
}, },
Refresh_RecalcData: function() Refresh_RecalcData: function()
......
...@@ -111,6 +111,28 @@ CDocContentStructure.prototype.checkByWarpStruct = function(oWarpStruct, dWidth, ...@@ -111,6 +111,28 @@ CDocContentStructure.prototype.checkByWarpStruct = function(oWarpStruct, dWidth,
nLastIndex = nIndex; nLastIndex = nIndex;
} }
this.checkUnionPaths(aWarpedObjects2);
};
CDocContentStructure.prototype.checkUnionPaths = function(aWarpedObjects)
{
var aWarpedObjects2;
if(Array.isArray(aWarpedObjects))
{
aWarpedObjects2 = aWarpedObjects;
}
else
{
aWarpedObjects2 = [];
for(var j = 0; j < this.m_aByLines.length; ++j)
{
var oTemp = this.m_aByLines[j];
for(var t = 0; t < oTemp.length; ++t)
{
oTemp[t].GetAllWarped(aWarpedObjects2);
}
}
}
var oLastObjectToDraw = null, oCurObjectToDraw; var oLastObjectToDraw = null, oCurObjectToDraw;
for(i = 0; i < aWarpedObjects2.length; ++i) for(i = 0; i < aWarpedObjects2.length; ++i)
{ {
...@@ -130,7 +152,6 @@ CDocContentStructure.prototype.checkByWarpStruct = function(oWarpStruct, dWidth, ...@@ -130,7 +152,6 @@ CDocContentStructure.prototype.checkByWarpStruct = function(oWarpStruct, dWidth,
oLastObjectToDraw = oCurObjectToDraw; oLastObjectToDraw = oCurObjectToDraw;
} }
} }
}; };
function CParagraphStructure() function CParagraphStructure()
......
...@@ -418,21 +418,23 @@ CShape.prototype.recalculateContent = function() ...@@ -418,21 +418,23 @@ CShape.prototype.recalculateContent = function()
{ {
this.recalcInfo.bRecalculatedTitle = true; this.recalcInfo.bRecalculatedTitle = true;
this.recalcInfo.recalcTitle = null; this.recalcInfo.recalcTitle = null;
if(body_pr.prstTxWarp && body_pr.prstTxWarp.preset !== "textNoShape")
{
body_pr.prstTxWarp.Recalculate(oRecalcObj.w + oRecalcObj.correctW, oRecalcObj.h + oRecalcObj.correctH); var oTextWarpContent = this.checkTextWarp(content, body_pr, oRecalcObj.w + oRecalcObj.correctW, oRecalcObj.h + oRecalcObj.correctH, true, false);
this.recalcInfo.warpGeometry = body_pr.prstTxWarp; this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks;
} this.txWarpStruct = oTextWarpContent.oTxWarpStruct;
else
{ this.txWarpStructParamarksNoTransform = oTextWarpContent.oTxWarpStructParamarksNoTransform;
this.recalcInfo.warpGeometry = null; this.txWarpStructNoTransform = oTextWarpContent.oTxWarpStructNoTransform;
}
} }
else else
{ {
var oTextWarpContent = this.checkTextWarp(content, body_pr, oRecalcObj.w + oRecalcObj.correctW, oRecalcObj.h + oRecalcObj.correctH); var oTextWarpContent = this.checkTextWarp(content, body_pr, oRecalcObj.w + oRecalcObj.correctW, oRecalcObj.h + oRecalcObj.correctH, true, true);
this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks; this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks;
this.txWarpStruct = oTextWarpContent.oTxWarpStruct; this.txWarpStruct = oTextWarpContent.oTxWarpStruct;
this.txWarpStructParamarksNoTransform = oTextWarpContent.oTxWarpStructParamarksNoTransform;
this.txWarpStructNoTransform = oTextWarpContent.oTxWarpStructNoTransform;
} }
return oRecalcObj; return oRecalcObj;
} }
......
...@@ -500,21 +500,22 @@ CShape.prototype.recalculateContent = function() ...@@ -500,21 +500,22 @@ CShape.prototype.recalculateContent = function()
this.recalcInfo.bRecalculatedTitle = true; this.recalcInfo.bRecalculatedTitle = true;
this.recalcInfo.recalcTitle = null; this.recalcInfo.recalcTitle = null;
if(body_pr.prstTxWarp && body_pr.prstTxWarp.preset !== "textNoShape")
{ var oTextWarpContent = this.checkTextWarp(content, body_pr, oRecalcObject.w + oRecalcObject.correctW, oRecalcObject.h + oRecalcObject.correctH, true, false);
body_pr.prstTxWarp.Recalculate(oRecalcObject.w + oRecalcObject.correctW, oRecalcObject.h + oRecalcObject.correctH); this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks;
this.recalcInfo.warpGeometry = body_pr.prstTxWarp; this.txWarpStruct = oTextWarpContent.oTxWarpStruct;
}
else this.txWarpStructParamarksNoTransform = oTextWarpContent.oTxWarpStructParamarksNoTransform;
{ this.txWarpStructNoTransform = oTextWarpContent.oTxWarpStructNoTransform;
this.recalcInfo.warpGeometry = null;
}
} }
else else
{ {
var oTextWarpContent = this.checkTextWarp(content, body_pr, oRecalcObject.w + oRecalcObject.correctW, oRecalcObject.h + oRecalcObject.correctH); var oTextWarpContent = this.checkTextWarp(content, body_pr, oRecalcObject.w + oRecalcObject.correctW, oRecalcObject.h + oRecalcObject.correctH, true, true);
this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks; this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks;
this.txWarpStruct = oTextWarpContent.oTxWarpStruct; this.txWarpStruct = oTextWarpContent.oTxWarpStruct;
this.txWarpStructParamarksNoTransform = oTextWarpContent.oTxWarpStructParamarksNoTransform;
this.txWarpStructNoTransform = oTextWarpContent.oTxWarpStructNoTransform;
} }
return oRecalcObject; return oRecalcObject;
} }
...@@ -638,7 +639,7 @@ CShape.prototype.recalculateContent2 = function() ...@@ -638,7 +639,7 @@ CShape.prototype.recalculateContent2 = function()
content.Reset(0, 0, w, 20000); content.Reset(0, 0, w, 20000);
content.Recalculate_Page(content.StartPage, true); content.Recalculate_Page(content.StartPage, true);
var oTextWarpContent = this.checkTextWarp(content, body_pr, this.txBody.contentWidth2, this.txBody.contentHeight2); var oTextWarpContent = this.checkTextWarp(content, body_pr, this.txBody.contentWidth2, this.txBody.contentHeight2, false, true);
this.txWarpStructParamarks2 = oTextWarpContent.oTxWarpStructParamarks; this.txWarpStructParamarks2 = oTextWarpContent.oTxWarpStructParamarks;
this.txWarpStruct2 = oTextWarpContent.oTxWarpStruct; this.txWarpStruct2 = oTextWarpContent.oTxWarpStruct;
......
...@@ -224,21 +224,22 @@ CShape.prototype.recalculateTxBoxContent = function() ...@@ -224,21 +224,22 @@ CShape.prototype.recalculateTxBoxContent = function()
{ {
this.recalcInfo.bRecalculatedTitle = true; this.recalcInfo.bRecalculatedTitle = true;
this.recalcInfo.recalcTitle = null; this.recalcInfo.recalcTitle = null;
if(oBodyPr.prstTxWarp && oBodyPr.prstTxWarp.preset !== "textNoShape")
{ var oTextWarpContent = this.checkTextWarp(this.textBoxContent, oBodyPr, oRecalcObj.w, oRecalcObj.h, true, false);
oBodyPr.prstTxWarp.Recalculate(oRecalcObj.w, oRecalcObj.h); this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks;
this.recalcInfo.warpGeometry = oBodyPr.prstTxWarp; this.txWarpStruct = oTextWarpContent.oTxWarpStruct;
}
else this.txWarpStructParamarksNoTransform = oTextWarpContent.oTxWarpStructParamarksNoTransform;
{ this.txWarpStructNoTransform = oTextWarpContent.oTxWarpStructNoTransform;
this.recalcInfo.warpGeometry = null;
}
} }
else else
{ {
var oTextWarpContent = this.checkTextWarp(this.textBoxContent, oBodyPr, oRecalcObj.w, oRecalcObj.h); var oTextWarpContent = this.checkTextWarp(this.textBoxContent, oBodyPr, oRecalcObj.w, oRecalcObj.h, true, true);
this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks; this.txWarpStructParamarks = oTextWarpContent.oTxWarpStructParamarks;
this.txWarpStruct = oTextWarpContent.oTxWarpStruct; this.txWarpStruct = oTextWarpContent.oTxWarpStruct;
this.txWarpStructParamarksNoTransform = oTextWarpContent.oTxWarpStructParamarksNoTransform;
this.txWarpStructNoTransform = oTextWarpContent.oTxWarpStructNoTransform;
} }
return oRecalcObj; return oRecalcObj;
}; };
......
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