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

правка бага 21617 - [CoEdit] Некорректное изменение размера диаграммы,...

правка бага 21617 - [CoEdit] Некорректное изменение размера диаграммы, вставленной в автофигуру у 2-ого пользователя

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51328 954022d7-b5bf-4e40-9824-e11837661b57
parent 429aec19
...@@ -199,12 +199,12 @@ CChartAsGroup.prototype = ...@@ -199,12 +199,12 @@ CChartAsGroup.prototype =
this.spPr.xfrm.extX = w; this.spPr.xfrm.extX = w;
this.spPr.xfrm.extY = h; this.spPr.xfrm.extY = h;
this.spPr.xfrm.flipH = flipH; //this.spPr.xfrm.flipH = flipH;
this.spPr.xfrm.flipV = flipV; //this.spPr.xfrm.flipV = flipV;
this.absExtX = w; this.absExtX = w;
this.absExtY = h; this.absExtY = h;
this.absFlipH = flipH; //this.absFlipH = flipH;
this.absFlipV = flipV; //this.absFlipV = flipV;
this.absOffsetX = posX; this.absOffsetX = posX;
this.absOffsetY = posY; this.absOffsetY = posY;
if(this.parent) if(this.parent)
...@@ -213,8 +213,8 @@ CChartAsGroup.prototype = ...@@ -213,8 +213,8 @@ CChartAsGroup.prototype =
this.parent.absOffsetY = posY; this.parent.absOffsetY = posY;
this.parent.absExtX = w; this.parent.absExtX = w;
this.parent.absExtY = h; this.parent.absExtY = h;
this.parent.flipH = flipH; //this.parent.flipH = flipH;
this.parent.flipV = flipV; //this.parent.flipV = flipV;
} }
this.calculateAfterResize(); this.calculateAfterResize();
}, },
...@@ -2004,12 +2004,12 @@ CChartAsGroup.prototype = ...@@ -2004,12 +2004,12 @@ CChartAsGroup.prototype =
{ {
this.spPr.xfrm.extX = data.oldW; this.spPr.xfrm.extX = data.oldW;
this.spPr.xfrm.extY = data.oldH; this.spPr.xfrm.extY = data.oldH;
this.spPr.xfrm.flipH = data.oldFlipH; //this.spPr.xfrm.flipH = data.oldFlipH;
this.spPr.xfrm.flipV = data.oldFlipV; //this.spPr.xfrm.flipV = data.oldFlipV;
this.absExtX = data.oldW; this.absExtX = data.oldW;
this.absExtY = data.oldH; this.absExtY = data.oldH;
this.absFlipH = data.oldFlipH; //this.absFlipH = data.oldFlipH;
this.absFlipV = data.oldFlipV; //this.absFlipV = data.oldFlipV;
this.absOffsetX = data.oldPosX; this.absOffsetX = data.oldPosX;
this.absOffsetY = data.oldPosY; this.absOffsetY = data.oldPosY;
if(this.parent) if(this.parent)
...@@ -2018,8 +2018,8 @@ CChartAsGroup.prototype = ...@@ -2018,8 +2018,8 @@ CChartAsGroup.prototype =
this.parent.absOffsetY = data.oldPosY; this.parent.absOffsetY = data.oldPosY;
this.parent.absExtX = data.oldW; this.parent.absExtX = data.oldW;
this.parent.absExtY = data.oldH; this.parent.absExtY = data.oldH;
this.parent.flipH = data.oldFlipH; //this.parent.flipH = data.oldFlipH;
this.parent.flipV = data.oldFlipV; //this.parent.flipV = data.oldFlipV;
} }
this.calculateAfterResize(); this.calculateAfterResize();
...@@ -2140,12 +2140,12 @@ CChartAsGroup.prototype = ...@@ -2140,12 +2140,12 @@ CChartAsGroup.prototype =
var flipV = reader.GetBool(); var flipV = reader.GetBool();
this.spPr.xfrm.extX = extX; this.spPr.xfrm.extX = extX;
this.spPr.xfrm.extY = extY; this.spPr.xfrm.extY = extY;
this.spPr.xfrm.flipH = flipH; //this.spPr.xfrm.flipH = flipH;
this.spPr.xfrm.flipV = flipV; //this.spPr.xfrm.flipV = flipV;
this.absExtX = extX; this.absExtX = extX;
this.absExtY = extY; this.absExtY = extY;
this.absFlipH = flipH; //this.absFlipH = flipH;
this.absFlipV = flipV; //this.absFlipV = flipV;
this.absOffsetX = posX; this.absOffsetX = posX;
this.absOffsetY = posY; this.absOffsetY = posY;
if(this.parent) if(this.parent)
...@@ -2154,8 +2154,8 @@ CChartAsGroup.prototype = ...@@ -2154,8 +2154,8 @@ CChartAsGroup.prototype =
this.parent.absOffsetY = posY; this.parent.absOffsetY = posY;
this.parent.absExtX = extX; this.parent.absExtX = extX;
this.parent.absExtY = extY; this.parent.absExtY = extY;
this.parent.absFlipH = flipH; //this.parent.absFlipH = flipH;
this.parent.absFlipV = flipV; //this.parent.absFlipV = flipV;
} }
this.calculateAfterResize(); this.calculateAfterResize();
...@@ -2239,12 +2239,12 @@ CChartAsGroup.prototype = ...@@ -2239,12 +2239,12 @@ CChartAsGroup.prototype =
{ {
this.spPr.xfrm.extX = data.oldW; this.spPr.xfrm.extX = data.oldW;
this.spPr.xfrm.extY = data.oldH; this.spPr.xfrm.extY = data.oldH;
this.spPr.xfrm.flipH = data.oldFlipH; //this.spPr.xfrm.flipH = data.oldFlipH;
this.spPr.xfrm.flipV = data.oldFlipV; //this.spPr.xfrm.flipV = data.oldFlipV;
this.absExtX = data.oldW; this.absExtX = data.oldW;
this.absExtY = data.oldH; this.absExtY = data.oldH;
this.absFlipH = data.oldFlipH; //this.absFlipH = data.oldFlipH;
this.absFlipV = data.oldFlipV; //this.absFlipV = data.oldFlipV;
this.absOffsetX = data.oldPosX; this.absOffsetX = data.oldPosX;
this.absOffsetY = data.oldPosY; this.absOffsetY = data.oldPosY;
if(this.parent) if(this.parent)
...@@ -2253,8 +2253,8 @@ CChartAsGroup.prototype = ...@@ -2253,8 +2253,8 @@ CChartAsGroup.prototype =
this.parent.absOffsetY = data.oldPosY; this.parent.absOffsetY = data.oldPosY;
this.parent.absExtX = data.oldW; this.parent.absExtX = data.oldW;
this.parent.absExtY = data.oldH; this.parent.absExtY = data.oldH;
this.parent.flipH = data.oldFlipH; //this.parent.flipH = data.oldFlipH;
this.parent.flipV = data.oldFlipV; //this.parent.flipV = data.oldFlipV;
} }
this.calculateAfterResize(); this.calculateAfterResize();
......
...@@ -1035,6 +1035,23 @@ WordShape.prototype = ...@@ -1035,6 +1035,23 @@ WordShape.prototype =
}, },
getMainGroup: function()
{
var cur_group = this.group;
if(isRealObject(cur_group))
{
while(isRealObject(cur_group.group))
{
cur_group = cur_group.group;
}
return cur_group;
}
else
{
return null;
}
},
getOwnTransform: function() getOwnTransform: function()
{ {
......
...@@ -6297,7 +6297,32 @@ function ResizeState(graphicObjects, majorHandleNum) ...@@ -6297,7 +6297,32 @@ function ResizeState(graphicObjects, majorHandleNum)
if(tracks[0].originalGraphicObject.Is_Inline()) if(tracks[0].originalGraphicObject.Is_Inline())
{ {
para_drawing = tracks[0].originalGraphicObject; para_drawing = tracks[0].originalGraphicObject;
if(false === editor.isViewMode && false === doc.Document_Is_SelectionLocked(changestype_Drawing_Props, {Type : changestype_Drawing_Props, Element : para_drawing.Parent, CheckType : changestype_Paragraph_Content} )) var paragraph = null;
if(!para_drawing.isShapeChild())
{
paragraph = para_drawing.Parent;
}
else
{
var parent_shape = para_drawing.getParentShape();
if(!parent_shape.group)
{
paragraph = parent_shape.parent.Parent;
}
else
{
main_group = parent_shape.getMainGroup();
if(isRealObject(main_group))
{
paragraph = main_group.parent.Parent;
}
else
{
paragraph = para_drawing.Parent;
}
}
}
if(false === editor.isViewMode && false === doc.Document_Is_SelectionLocked(changestype_Drawing_Props, {Type : changestype_2_Element_and_Type, Element : paragraph, CheckType : changestype_Paragraph_Content} ))
{ {
tracks[0].trackEnd(); tracks[0].trackEnd();
bounds = para_drawing.getBounds(); bounds = para_drawing.getBounds();
......
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