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

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51177 954022d7-b5bf-4e40-9824-e11837661b57
parent b97f5b25
......@@ -1463,6 +1463,8 @@ DrawingObjectsController.prototype =
{
_this.setSelectionState(selection_state);
callback.apply(_this, args);
_this.recalculateCurPos();
}
};
this.drawingObjects.objectLocker.checkObjects(callback2);
......
......@@ -601,6 +601,7 @@ CShape.prototype =
this.txBody.paragraphAdd(text_pr);
this.txBody.content.Set_ApplyToAll(false);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
......@@ -618,6 +619,8 @@ CShape.prototype =
this.txBody.paragraphAdd(text_pr);
this.txBody.content.Set_ApplyToAll(false);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
......@@ -635,6 +638,8 @@ CShape.prototype =
this.txBody.paragraphAdd(text_pr);
this.txBody.content.Set_ApplyToAll(false);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -678,6 +683,8 @@ CShape.prototype =
this.txBody.content.Set_ApplyToAll(false);
this.calculateContent();
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -693,6 +700,8 @@ CShape.prototype =
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
this.txBody.setVerticalAlign(align);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -705,6 +714,8 @@ CShape.prototype =
text_pr.Set_FontFamily({Name: fontName, Index: -1});
this.txBody.paragraphAdd(text_pr);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
}
},
......@@ -715,6 +726,8 @@ CShape.prototype =
text_pr.Set_FontFamily({Name: fontName, Index: -1});
this.txBody.paragraphAdd(text_pr);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
}
},
......@@ -732,6 +745,8 @@ CShape.prototype =
this.txBody.paragraphAdd(text_pr);
this.txBody.content.Set_ApplyToAll(false);
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -761,6 +776,8 @@ CShape.prototype =
this.txBody.setVert(angle);
this.calculateContent();
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddredo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -778,6 +795,8 @@ CShape.prototype =
this.txBody.content.Paragraph_IncDecFontSize(true);
this.txBody.calculateContent();
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -792,6 +811,8 @@ CShape.prototype =
this.txBody.content.Paragraph_IncDecFontSize(false);
this.txBody.calculateContent();
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -808,6 +829,8 @@ CShape.prototype =
this.txBody.content.Set_ApplyToAll(false);
this.txBody.calculateContent();
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......@@ -824,6 +847,8 @@ CShape.prototype =
this.txBody.content.Set_ApplyToAll(false);
this.txBody.calculateContent();
this.calculateTransformTextMatrix();
this.recalculateCurPos();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateAfterParagraphAddRedo, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
......
......@@ -1606,6 +1606,7 @@ function ChartTextAdd(drawingObjectsController, drawingObjects, chart, textObjec
{
this.textObject.setCellVertAlign(align);
this.drawingObjects.showDrawingObjects(true);
this.drawingObjectsController.recalculateCurPos();
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
}
};
......@@ -1842,6 +1843,7 @@ function TextAddState(drawingObjectsController, drawingObjects, textObject)
this.textObject.setCellVertAlign(align);
this.drawingObjects.showDrawingObjects(true);
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
this.drawingObjectsController.recalculateCurPos();
}
};
......@@ -3381,6 +3383,7 @@ function TextAddInGroup(drawingObjectsController, drawingObjects, group, textObj
this.textObject.setCellVertAlign(align);
this.drawingObjects.showDrawingObjects(true);
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
this.drawingObjectsController.recalculateCurPos();
}
};
......
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