Commit a6e4c169 authored by Oleg.Korshul's avatar Oleg.Korshul

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61413 954022d7-b5bf-4e40-9824-e11837661b57
parent 76596a5a
...@@ -600,6 +600,7 @@ function CDrawingDocument() ...@@ -600,6 +600,7 @@ function CDrawingDocument()
this.SelectRect1 = null; this.SelectRect1 = null;
this.SelectRect2 = null; this.SelectRect2 = null;
this.SelectClearLock = false;
this.SelectMobileXOffset = 0; this.SelectMobileXOffset = 0;
this.SelectMobileYOffset = 0; this.SelectMobileYOffset = 0;
...@@ -886,6 +887,12 @@ CDrawingDocument.prototype = ...@@ -886,6 +887,12 @@ CDrawingDocument.prototype =
}, },
SelectClear : function() SelectClear : function()
{ {
if (!this.SelectClearLock)
{
this.SelectDrag = -1;
this.SelectRect1 = null;
this.SelectRect2 = null;
}
this.Native["DD_SelectClear"](); this.Native["DD_SelectClear"]();
}, },
AddPageSelection : function(pageIndex, x, y, w, h) AddPageSelection : function(pageIndex, x, y, w, h)
...@@ -1387,8 +1394,8 @@ CDrawingDocument.prototype = ...@@ -1387,8 +1394,8 @@ CDrawingDocument.prototype =
if (this.InlineTextTrackEnabled && null != this.InlineTextTrack) if (this.InlineTextTrackEnabled && null != this.InlineTextTrack)
{ {
this.AutoShapesTrack.DrawInlineMoveCursor(this.InlineTextTrackPage, this.AutoShapesTrack.SetCurrentPage(this.InlineTextTrackPage);
this.InlineTextTrack.X, this.InlineTextTrack.Y, this.InlineTextTrack.Height, this.AutoShapesTrack.DrawInlineMoveCursor(this.InlineTextTrack.X, this.InlineTextTrack.Y, this.InlineTextTrack.Height,
this.InlineTextTrack.transform); this.InlineTextTrack.transform);
} }
...@@ -1456,6 +1463,7 @@ CDrawingDocument.prototype = ...@@ -1456,6 +1463,7 @@ CDrawingDocument.prototype =
if (Math.abs(pos.X - _circlePos1_x) < _selectCircleEpsMM && Math.abs(pos.Y - _circlePos1_y) < _selectCircleEpsMM) if (Math.abs(pos.X - _circlePos1_x) < _selectCircleEpsMM && Math.abs(pos.Y - _circlePos1_y) < _selectCircleEpsMM)
{ {
this.SelectClearLock = true;
this.SelectDrag = 1; this.SelectDrag = 1;
this.LogicDocument.Cursor_MoveRight(); this.LogicDocument.Cursor_MoveRight();
...@@ -1486,10 +1494,12 @@ CDrawingDocument.prototype = ...@@ -1486,10 +1494,12 @@ CDrawingDocument.prototype =
this.SelectMobileYOffset = (ret.Y + ret2.Y) - global_mouseEvent.Y; this.SelectMobileYOffset = (ret.Y + ret2.Y) - global_mouseEvent.Y;
this.OnMouseMove(e); this.OnMouseMove(e);
this.SelectClearLock = false;
} }
if (Math.abs(pos.X - _circlePos2_x) < _selectCircleEpsMM && Math.abs(pos.Y - _circlePos2_y) < _selectCircleEpsMM) if (Math.abs(pos.X - _circlePos2_x) < _selectCircleEpsMM && Math.abs(pos.Y - _circlePos2_y) < _selectCircleEpsMM)
{ {
this.SelectClearLock = true;
this.SelectDrag = 2; this.SelectDrag = 2;
this.LogicDocument.Cursor_MoveLeft(); this.LogicDocument.Cursor_MoveLeft();
...@@ -1521,6 +1531,7 @@ CDrawingDocument.prototype = ...@@ -1521,6 +1531,7 @@ CDrawingDocument.prototype =
this.SelectMobileYOffset = (ret.Y - ret2.Y) - global_mouseEvent.Y; this.SelectMobileYOffset = (ret.Y - ret2.Y) - global_mouseEvent.Y;
this.OnMouseMove(e); this.OnMouseMove(e);
this.SelectClearLock = false;
} }
if (this.SelectDrag != -1) if (this.SelectDrag != -1)
...@@ -1529,7 +1540,7 @@ CDrawingDocument.prototype = ...@@ -1529,7 +1540,7 @@ CDrawingDocument.prototype =
if (true) if (true)
{ {
// проверям на попадание в графические объекты (грубо говоря - треки) // проверям н]а попадание в графические объекты (грубо говоря - треки)
if (!this.IsViewMode) if (!this.IsViewMode)
{ {
global_mouseEvent.KoefPixToMM = 5; global_mouseEvent.KoefPixToMM = 5;
...@@ -2667,7 +2678,8 @@ CDrawingDocument.prototype = ...@@ -2667,7 +2678,8 @@ CDrawingDocument.prototype =
var _near = this.TableOutlineDr.InlinePos; var _near = this.TableOutlineDr.InlinePos;
this.AutoShapesTrack.DrawInlineMoveCursor(_near.Page, _near.X, _near.Y, _near.Height, _near.transform); this.AutoShapesTrack.SetCurrentPage(_near.Page);
this.AutoShapesTrack.DrawInlineMoveCursor(_near.X, _near.Y, _near.Height, _near.transform);
} }
}, },
......
...@@ -27,6 +27,7 @@ CAutoshapeTrack.prototype = ...@@ -27,6 +27,7 @@ CAutoshapeTrack.prototype =
if (nPageIndex == this.PageIndex) if (nPageIndex == this.PageIndex)
return; return;
this.PageIndex = nPageIndex;
this.Native["DD_SetCurrentPage"](nPageIndex); this.Native["DD_SetCurrentPage"](nPageIndex);
}, },
...@@ -93,15 +94,15 @@ CAutoshapeTrack.prototype = ...@@ -93,15 +94,15 @@ CAutoshapeTrack.prototype =
this.Native["DD_DrawEditWrapPointsTrackLines"](points); this.Native["DD_DrawEditWrapPointsTrackLines"](points);
}, },
DrawInlineMoveCursor : function(page, x, y, h, m) DrawInlineMoveCursor : function(x, y, h, m)
{ {
if (!m) if (!m)
{ {
this.Native["DD_DrawInlineMoveCursor"](page, x, y, h); this.Native["DD_DrawInlineMoveCursor"](this.PageIndex, x, y, h);
} }
else else
{ {
this.Native["DD_DrawInlineMoveCursor"](page, x, y, h, m.sx, m.shy, m.shx, m.sy, m.tx, m.ty); this.Native["DD_DrawInlineMoveCursor"](this.PageIndex, x, y, h, m.sx, m.shy, m.shx, m.sy, m.tx, m.ty);
} }
}, },
......
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