Commit 591fbc71 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@51060 954022d7-b5bf-4e40-9824-e11837661b57
parent 081dd2e0
...@@ -116,7 +116,7 @@ function CMouseEventHandler() ...@@ -116,7 +116,7 @@ function CMouseEventHandler()
this.fromJQueryEvent = function(e) this.fromJQueryEvent = function(e)
{ {
this.ClickCount = 1;//e.ClickCount; this.ClickCount = isRealNumber(e.ClickCount) && e.ClickCount === 2 ? 2 : 1;
this.Type = g_o_event_map[e.type]; this.Type = g_o_event_map[e.type];
this.ShiftKey = e.shiftKey; this.ShiftKey = e.shiftKey;
this.IsLocked = true; this.IsLocked = true;
...@@ -2820,7 +2820,8 @@ CShape.prototype = ...@@ -2820,7 +2820,8 @@ CShape.prototype =
break; break;
} }
} }
this.drawingObjects.sendGraphicObjectProps(); History.lastDrawingObjects = this.drawingObjects;
//this.drawingObjects.sendGraphicObjectProps();
}, },
Redo: function(type, data) Redo: function(type, data)
...@@ -2948,7 +2949,8 @@ CShape.prototype = ...@@ -2948,7 +2949,8 @@ CShape.prototype =
break; break;
} }
} }
this.drawingObjects.sendGraphicObjectProps(); History.lastDrawingObjects = this.drawingObjects;
//this.drawingObjects.sendGraphicObjectProps();
}, },
setNvSpPr: function(pr) setNvSpPr: function(pr)
......
...@@ -361,7 +361,10 @@ CHistory.prototype = ...@@ -361,7 +361,10 @@ CHistory.prototype =
if ( true != this.Can_Undo() ) if ( true != this.Can_Undo() )
return null; return null;
var bIsOn = false; var bIsOn = false;
if ( this.Index === this.Points.length - 1 )
this.LastState = this.workbook.handlers.trigger("getSelectionState");
this._checkCurPoint(); this._checkCurPoint();
var Point = this.Points[this.Index--]; var Point = this.Points[this.Index--];
...@@ -407,7 +410,8 @@ CHistory.prototype = ...@@ -407,7 +410,8 @@ CHistory.prototype =
this.workbook.handlers.trigger("setSelection", oSelectRange.clone(), /*validRange*/false); this.workbook.handlers.trigger("setSelection", oSelectRange.clone(), /*validRange*/false);
if ( Point.SelectionState != null ) if ( Point.SelectionState != null )
this.workbook.handlers.trigger("setSelectionState", Point.SelectionState); this.workbook.handlers.trigger("setSelectionState", Point.SelectionState);
this._sendCanUndoRedo(); this._sendCanUndoRedo();
this.workbook.bUndoChanges = false; this.workbook.bUndoChanges = false;
...@@ -417,7 +421,11 @@ CHistory.prototype = ...@@ -417,7 +421,11 @@ CHistory.prototype =
this.workbook.handlers.trigger("drawWS"); this.workbook.handlers.trigger("drawWS");
else else
this.workbook.handlers.trigger("showDrawingObjects", true); this.workbook.handlers.trigger("showDrawingObjects", true);
if(isRealObject(this.lastDrawingObjects))
{
this.lastDrawingObjects.sendGraphicObjectProps();
this.lastDrawingObjects = null;
}
/* возвращаем отрисовку. и перерисовываем ячейки с предварительным пересчетом */ /* возвращаем отрисовку. и перерисовываем ячейки с предварительным пересчетом */
buildRecalc(this.workbook); buildRecalc(this.workbook);
unLockDraw(this.workbook); unLockDraw(this.workbook);
...@@ -461,8 +469,20 @@ CHistory.prototype = ...@@ -461,8 +469,20 @@ CHistory.prototype =
if (g_oUndoRedoWorksheet === Item.Class && historyitem_Worksheet_SetViewSettings === Item.Type) if (g_oUndoRedoWorksheet === Item.Class && historyitem_Worksheet_SetViewSettings === Item.Type)
oRedoObjectParam.bIsReInit = true; oRedoObjectParam.bIsReInit = true;
} }
if ( Point.SelectionState != null ) // Восстанавливаем состояние на следующую точку
this.workbook.handlers.trigger("setSelectionState", Point.SelectionState); var State = null;
if ( this.Index === this.Points.length - 1 )
State = this.LastState;
else
State = this.Points[this.Index + 1].SelectionState;
if ( isRealObject(State) )
this.workbook.handlers.trigger("setSelectionState", State);
if(isRealObject(this.lastDrawingObjects))
{
this.lastDrawingObjects.sendGraphicObjectProps();
this.lastDrawingObjects = null;
}
}, },
RedoEnd : function(Point, oRedoObjectParam) RedoEnd : function(Point, oRedoObjectParam)
{ {
......
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