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

Поправила баг на открытие N-арных операторов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55498 954022d7-b5bf-4e40-9824-e11837661b57
parent 5f16c404
......@@ -774,14 +774,14 @@ ParaMath.prototype =
{
// TODO: ParaMath.Cursor_MoveToStartPos
this.Math.Cursor_MoveToStartPos();
this.Root.Cursor_MoveToStartPos();
},
Cursor_MoveToEndPos : function(SelectFromEnd)
{
// TODO: ParaMath.Cursor_MoveToEndPos
this.Math.Cursor_MoveToEndPos();
this.Root.Cursor_MoveToEndPos();
},
Get_ParaContentPosByXY : function(SearchPos, Depth, _CurLine, _CurRange, StepEnd, Flag) // получить логическую позицию по XY
......@@ -866,7 +866,6 @@ ParaMath.prototype =
// TODO: ParaMath.Get_PosByElement
},
Get_RunElementByPos : function(ContentPos, Depth)
{
return null;
......@@ -875,12 +874,14 @@ ParaMath.prototype =
Get_LeftPos : function(SearchPos, ContentPos, Depth, UseContentPos)
{
// TODO: ParaMath.Get_LeftPos
this.Root.Get_LeftPos(SearchPos, ContentPos, Depth, UseContentPos);
return false;
},
Get_RightPos : function(SearchPos, ContentPos, Depth, UseContentPos, StepEnd)
{
// TODO: ParaMath.Get_RightPos
this.Root.Get_RightPos(SearchPos, ContentPos, Depth, UseContentPos, StepEnd);
return false;
},
......@@ -912,11 +913,13 @@ ParaMath.prototype =
Get_StartPos : function(ContentPos, Depth)
{
// TODO: ParaMath.Get_StartPos
this.Root.Get_StartPos(ContentPos, Depth);
},
Get_EndPos : function(BehindEnd, ContentPos, Depth)
{
// TODO: ParaMath.Get_EndPos
this.Root.Get_EndPos(BehindEnd, ContentPos, Depth);
},
//-----------------------------------------------------------------------------------
// Функции для работы с селектом
......@@ -925,25 +928,6 @@ ParaMath.prototype =
{
// TODO: ParaMath.Set_SelectionContentPos
if(StartFlag == 0)
{
var str = "";
for(var i = 0; i < StartContentPos.Data.length; i++)
str += StartContentPos.Data[i] + " ";
//console.log("StartContentPos " + str);
}
if(EndFlag == 0)
{
var str = "";
for(var i = 0; i < EndContentPos.Data.length; i++)
str += EndContentPos.Data [i]+ " ";
//console.log("EndContentPos " + str);
}
this.Root.Set_SelectionContentPos(StartContentPos, EndContentPos, Depth, StartFlag, EndFlag);
this.bSelectionUse = true;
......@@ -1042,8 +1026,7 @@ ParaMath.prototype =
if(start == end)
{
if(SelectContent.content[start].typeObj == MATH_PLACEHOLDER)
bPlaceholder = true;
bPlaceholder = SelectContent.IsPlaceholder();
}
return bPlaceholder;
......
......@@ -10278,6 +10278,7 @@ function Binary_oMathReader(stream)
{
if (!props.init)
{
oNary.relate(oParent);
oNary.init(props);
oParent.addElementToContent(oNary);
props.init = true;
......
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