Commit 42ae2cd6 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@48530 954022d7-b5bf-4e40-9824-e11837661b57
parent 1af04087
...@@ -391,6 +391,8 @@ DrawingObjectsController.prototype = ...@@ -391,6 +391,8 @@ DrawingObjectsController.prototype =
if(grouped_objects.length < 2) if(grouped_objects.length < 2)
return null; return null;
History.Create_NewPoint(); History.Create_NewPoint();
this.resetSelection(); this.resetSelection();
var max_x, min_x, max_y, min_y; var max_x, min_x, max_y, min_y;
......
...@@ -56,13 +56,11 @@ function CChartTitle(chartGroup, type) ...@@ -56,13 +56,11 @@ function CChartTitle(chartGroup, type)
CChartTitle.prototype = CChartTitle.prototype =
{ {
getObjectType: function() getObjectType: function()
{ {
return CLASS_TYPE_CHART_TITLE; return CLASS_TYPE_CHART_TITLE;
}, },
Get_Id: function() Get_Id: function()
{ {
return this.Id; return this.Id;
......
...@@ -1633,7 +1633,7 @@ function RotateState(drawingObjectsController, drawingObjects, majorObject) ...@@ -1633,7 +1633,7 @@ function RotateState(drawingObjectsController, drawingObjects, majorObject)
var track_objects = this.drawingObjectsController.arrTrackObjects; var track_objects = this.drawingObjectsController.arrTrackObjects;
for(i =0; i < track_objects.length; ++i) for(i =0; i < track_objects.length; ++i)
{ {
this.drawingObjects.lockDrawingObject(track_objects[i].originalObject.Get_Id(), true, true) this.drawingObjects.lockDrawingObject(track_objects[i].originalObject.Get_Id(), false, false)
} }
var track_objects2 = []; var track_objects2 = [];
for(i = 0; i < track_objects.length; ++i) for(i = 0; i < track_objects.length; ++i)
...@@ -1757,7 +1757,7 @@ function ResizeState(drawingObjectsController, drawingObjects, majorObject, card ...@@ -1757,7 +1757,7 @@ function ResizeState(drawingObjectsController, drawingObjects, majorObject, card
var track_objects = this.drawingObjectsController.arrTrackObjects; var track_objects = this.drawingObjectsController.arrTrackObjects;
for(var i =0; i < track_objects.length; ++i) for(var i =0; i < track_objects.length; ++i)
{ {
this.drawingObjects.lockDrawingObject(track_objects[i].originalObject.Get_Id(), true, true) this.drawingObjects.lockDrawingObject(track_objects[i].originalObject.Get_Id(), false, false)
} }
var track_objects2 = []; var track_objects2 = [];
for(i = 0; i < track_objects.length; ++i) for(i = 0; i < track_objects.length; ++i)
...@@ -2030,7 +2030,7 @@ function TrackNewShapeState(drawingObjectsController, drawingObjects, presetGeom ...@@ -2030,7 +2030,7 @@ function TrackNewShapeState(drawingObjectsController, drawingObjects, presetGeom
//лочим добавленный шейп //лочим добавленный шейп
var worksheet = this.drawingObjects.getWorksheet(); var worksheet = this.drawingObjects.getWorksheet();
worksheet.collaborativeEditing.onStartCheckLock(); worksheet.collaborativeEditing.onStartCheckLock();
this.drawingObjects.lockDrawingObject(this.resultObject.Get_Id(), true, true); this.drawingObjects.lockDrawingObject(this.resultObject.Get_Id(), false, false);
worksheet.collaborativeEditing.onEndCheckLock(function(bLock){}); worksheet.collaborativeEditing.onEndCheckLock(function(bLock){});
asc["editor"].asc_endAddShape(); asc["editor"].asc_endAddShape();
}; };
...@@ -2256,7 +2256,7 @@ function MoveState(drawingObjectsController, drawingObjects, startX, startY, rec ...@@ -2256,7 +2256,7 @@ function MoveState(drawingObjectsController, drawingObjects, startX, startY, rec
var track_objects = this.drawingObjectsController.arrTrackObjects; var track_objects = this.drawingObjectsController.arrTrackObjects;
for(var i =0; i < track_objects.length; ++i) for(var i =0; i < track_objects.length; ++i)
{ {
this.drawingObjects.lockDrawingObject(track_objects[i].originalObject.Get_Id(), true, true) this.drawingObjects.lockDrawingObject(track_objects[i].originalObject.Get_Id(), false, false)
} }
var track_objects2 = []; var track_objects2 = [];
for(i = 0; i < track_objects.length; ++i) for(i = 0; i < track_objects.length; ++i)
...@@ -2378,7 +2378,7 @@ function ChangeAdjState(drawingObjectsController, drawingObjects) ...@@ -2378,7 +2378,7 @@ function ChangeAdjState(drawingObjectsController, drawingObjects)
var track_objects = this.drawingObjectsController.arrTrackObjects; var track_objects = this.drawingObjectsController.arrTrackObjects;
for(var i =0; i < track_objects.length; ++i) for(var i =0; i < track_objects.length; ++i)
{ {
this.drawingObjects.lockDrawingObject(track_objects[i].originalShape.Get_Id(), true, true) this.drawingObjects.lockDrawingObject(track_objects[i].originalShape.Get_Id(), false, false)
} }
var track_objects2 = []; var track_objects2 = [];
for(i = 0; i < track_objects.length; ++i) for(i = 0; i < track_objects.length; ++i)
...@@ -2904,7 +2904,7 @@ function MoveInGroupState(drawingObjectsController, drawingObjects, group, start ...@@ -2904,7 +2904,7 @@ function MoveInGroupState(drawingObjectsController, drawingObjects, group, start
var worksheet = this.drawingObjects.getWorksheet(); var worksheet = this.drawingObjects.getWorksheet();
worksheet.collaborativeEditing.onStartCheckLock(); worksheet.collaborativeEditing.onStartCheckLock();
this.drawingObjects.lockDrawingObject(this.group.Get_Id(), true, true); this.drawingObjects.lockDrawingObject(this.group.Get_Id(), false, false);
var track_objects2 = []; var track_objects2 = [];
for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i) for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i)
{ {
...@@ -3029,7 +3029,7 @@ function ChangeAdjInGroupState(drawingObjectsController, drawingObjects, group) ...@@ -3029,7 +3029,7 @@ function ChangeAdjInGroupState(drawingObjectsController, drawingObjects, group)
var worksheet = this.drawingObjects.getWorksheet(); var worksheet = this.drawingObjects.getWorksheet();
worksheet.collaborativeEditing.onStartCheckLock(); worksheet.collaborativeEditing.onStartCheckLock();
this.drawingObjects.lockDrawingObject(this.group.Get_Id(), true, true); this.drawingObjects.lockDrawingObject(this.group.Get_Id(), false, false);
var track_objects2 = []; var track_objects2 = [];
for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i) for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i)
{ {
...@@ -3139,7 +3139,7 @@ function RotateInGroupState(drawingObjectsController, drawingObjects, group, maj ...@@ -3139,7 +3139,7 @@ function RotateInGroupState(drawingObjectsController, drawingObjects, group, maj
var worksheet = this.drawingObjects.getWorksheet(); var worksheet = this.drawingObjects.getWorksheet();
worksheet.collaborativeEditing.onStartCheckLock(); worksheet.collaborativeEditing.onStartCheckLock();
this.drawingObjects.lockDrawingObject(this.group.Get_Id(), true, true); this.drawingObjects.lockDrawingObject(this.group.Get_Id(), false, false);
var track_objects2 = []; var track_objects2 = [];
for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i) for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i)
{ {
...@@ -3266,7 +3266,7 @@ function ResizeInGroupState(drawingObjectsController, drawingObjects, group, maj ...@@ -3266,7 +3266,7 @@ function ResizeInGroupState(drawingObjectsController, drawingObjects, group, maj
{ {
var worksheet = this.drawingObjects.getWorksheet(); var worksheet = this.drawingObjects.getWorksheet();
worksheet.collaborativeEditing.onStartCheckLock(); worksheet.collaborativeEditing.onStartCheckLock();
this.drawingObjects.lockDrawingObject(this.group.Get_Id(), true, true); this.drawingObjects.lockDrawingObject(this.group.Get_Id(), false, false);
var track_objects2 = []; var track_objects2 = [];
for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i) for(var i = 0; i < this.drawingObjectsController.arrTrackObjects.length; ++i)
{ {
......
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