Commit 0a0191d7 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

track text

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51823 954022d7-b5bf-4e40-9824-e11837661b57
parent 1f0dd344
......@@ -1794,6 +1794,9 @@ function CDrawingDocument()
this.max_PageAddSelection = -1;
this.IsShowSelectAttack = false;
this.InlineTextTrackEnabled = false;
this.InlineTextTrack = null;
this.AutoShapesTrack = null;
this.AutoShapesTrackLockPageNum = -1;
......@@ -5235,6 +5238,16 @@ function CDrawingDocument()
return true;
}
if (this.InlineTextTrackEnabled)
{
this.InlineTextTrack = oWordControl.m_oLogicDocument.Get_NearestPos(pos.Page, pos.X, pos.Y);
oWordControl.ShowOverlay();
oWordControl.OnUpdateOverlay();
oWordControl.EndUpdateOverlay();
return true;
}
if (this.FrameRect.IsActive)
{
if (!this.FrameRect.IsTracked && this.FrameRect.PageIndex == pos.Page)
......@@ -5331,6 +5344,17 @@ function CDrawingDocument()
return true;
}
if (this.InlineTextTrackEnabled)
{
this.InlineTextTrack = oWordControl.m_oLogicDocument.Get_NearestPos(pos.Page, pos.X, pos.Y);
this.EndTrackText();
oWordControl.ShowOverlay();
oWordControl.OnUpdateOverlay();
oWordControl.EndUpdateOverlay();
return true;
}
if (this.FrameRect.IsActive && this.FrameRect.IsTracked)
{
this.FrameRect.IsTracked = false;
......@@ -5609,6 +5633,20 @@ function CDrawingDocument()
}
this.HorVerAnchors.splice(0, this.HorVerAnchors.length);
}
// track text (inline)
this.StartTrackText = function()
{
this.InlineTextTrackEnabled = true;
this.InlineTextTrack = null;
}
this.EndTrackText = function()
{
this.InlineTextTrackEnabled = false;
this.m_oWordControl.m_oLogicDocument.On_DragTextEnd(this.InlineTextTrack);
this.InlineTextTrack = null;
}
}
function CStyleImage(_name, _ind, _type, _uiPriority)
......
......@@ -2795,6 +2795,11 @@ function CEditorPage(api)
drDoc.DrawFrameTrack(overlay);
}
if (drDoc.InlineTextTrackEnabled && null != drDoc.InlineTextTrack)
{
drDoc.AutoShapesTrack.DrawInlineMoveCursor(drDoc.InlineTextTrack.X, drDoc.InlineTextTrack.Y, drDoc.InlineTextTrack.Height, drDoc.InlineTextTrack.transform);
}
drDoc.DrawHorVerAnchor();
}
else
......
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