Commit f96d2579 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправила Get_StartRangePos, Get_EndRangePos, Get_StartRangePos2 => не работали клавиши home, end

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57189 954022d7-b5bf-4e40-9824-e11837661b57
parent 8d39dfcf
...@@ -1413,7 +1413,7 @@ ParaMath.prototype = ...@@ -1413,7 +1413,7 @@ ParaMath.prototype =
// Сделать для случая, когда формула будет занимать несколько строк // Сделать для случая, когда формула будет занимать несколько строк
this.Root.Get_EndPos(false, SearchPos.Pos, Depth); return this.Root.Get_EndRangePos(_CurLine, _CurRange, SearchPos, Depth);
}, },
...@@ -1423,7 +1423,8 @@ ParaMath.prototype = ...@@ -1423,7 +1423,8 @@ ParaMath.prototype =
// Сделать для случая, когда формула будет занимать несколько строк, переделать // Сделать для случая, когда формула будет занимать несколько строк, переделать
this.Root.Get_StartPos(SearchPos.Pos, Depth); return this.Root.Get_StartRangePos(_CurLine, _CurRange, SearchPos, Depth);
//this.Root.Get_StartPos(SearchPos.Pos, Depth);
}, },
...@@ -1433,7 +1434,7 @@ ParaMath.prototype = ...@@ -1433,7 +1434,7 @@ ParaMath.prototype =
// Сделать для случая, когда формула будет занимать несколько строк, переделать // Сделать для случая, когда формула будет занимать несколько строк, переделать
this.Root.Get_StartPos(ContentPos, Depth); this.Root.Get_StartRangePos2(_CurLine, _CurRange, ContentPos, Depth);
}, },
......
...@@ -5109,7 +5109,32 @@ CMathContent.prototype = ...@@ -5109,7 +5109,32 @@ CMathContent.prototype =
return result; return result;
}, },
Get_StartRangePos: function(CurLine, CurRange, SearchPos, Depth)
{
SearchPos.Pos.Update( 0, Depth );
return this.content[0].Get_StartRangePos(CurLine, CurRange, SearchPos, Depth + 1);
},
Get_StartRangePos2: function(CurLine, CurRange, ContentPos, Depth)
{
ContentPos.Update( 0, Depth );
this.content[0].Get_StartRangePos2(CurLine, CurRange, ContentPos, Depth + 1);
},
Get_EndRangePos: function(CurLine, CurRange, SearchPos, Depth)
{
var len = this.content.length - 1;
var result = false;
if(len >= 0)
{
SearchPos.Pos.Update(len, Depth);
result = this.content[len].Get_EndRangePos(CurLine, CurRange, SearchPos, Depth + 1);
}
return result;
},
////////////////////////////////////// //////////////////////////////////////
......
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