Commit 23a1a928 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

changes


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57757 954022d7-b5bf-4e40-9824-e11837661b57
parent 2e3ee671
......@@ -455,6 +455,9 @@ function CDrawingDocument()
this.FrameRect = { IsActive : false, Rect : { X : 0, Y : 0, R : 0, B : 0 }, Frame : null,
Track : { X : 0, Y : 0, L : 0, T : 0, R : 0, B : 0, PageIndex : 0, Type : -1 }, IsTracked : false, PageIndex : 0 };
// math rect
this.MathRect = { IsActive : false, Rect : { X : 0, Y : 0, R : 0, B : 0, PageIndex : 0 } };
// table track
this.TableOutlineDr = new CTableOutlineDr();
}
......@@ -1071,6 +1074,7 @@ CDrawingDocument.prototype =
}
this.DrawFrameTrack();
this.DrawMathTrack();
if (this.InlineTextTrackEnabled && null != this.InlineTextTrack)
{
......@@ -1746,6 +1750,29 @@ CDrawingDocument.prototype =
}
},
DrawMathTrack : function()
{
if (!this.MathRect.IsActive)
return;
this.Native["DD_Overlay_DrawFrameTrack1"](this.MathRect.Rect.PageIndex,
this.MathRect.Rect.X, this.MathRect.Rect.Y, this.MathRect.Rect.R, this.MathRect.Rect.B);
},
Update_MathTrack : function(IsActive, X, Y, W, H, PageIndex)
{
this.MathRect.IsActive = IsActive;
if (true === IsActive)
{
this.MathRect.Rect.X = X;
this.MathRect.Rect.Y = Y;
this.MathRect.Rect.R = X + W;
this.MathRect.Rect.B = Y + H;
this.MathRect.Rect.PageIndex = PageIndex;
}
},
IsCursorInTableCur : function(x, y, page)
{
var _table = this.TableOutlineDr.TableOutline;
......
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