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

промежуточная версия разбивки внутр контентов на строки (селекта в том числе)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61453 954022d7-b5bf-4e40-9824-e11837661b57
parent cc7b8322
This diff is collapsed.
......@@ -206,7 +206,7 @@ function CMathFunc(props)
g_oTableId.Add( this, this.Id );
}
Asc.extendClass(CMathFunc, CMathBase);
Asc.extendClass(CMathFunc, CMathBase_2);
CMathFunc.prototype.ClassType = historyitem_type_mathFunc;
CMathFunc.prototype.kind = MATH_FUNCTION;
......@@ -217,6 +217,8 @@ CMathFunc.prototype.init = function(props)
this.setProperties(props);
this.fillContent();
this.Set_NumberBreakContent(1);
};
CMathFunc.prototype.PreRecalc = function(Parent, ParaMath, ArgSize, RPI, GapsInfo)
{
......
......@@ -995,13 +995,12 @@ CMathContent.prototype.setPosition = function(pos, Line, Range)
{
this.pos.x = pos.x;
this.pos.y = pos.y;
var StartPos, EndPos;
var CurLine = Line - this.StartLine;
var CurRange = ( 0 === CurLine ? Range - this.StartRange : Range );
StartPos = this.protected_GetRangeStartPos(CurLine, CurRange);
EndPos = this.protected_GetRangeEndPos(CurLine, CurRange);
var StartPos = this.protected_GetRangeStartPos(CurLine, CurRange);
var EndPos = this.protected_GetRangeEndPos(CurLine, CurRange);
if(this.RecalcInfo.bEqArray)
{
......@@ -3814,13 +3813,13 @@ CMathContent.prototype.Selection_DrawRange = function(_CurLine, _CurRange, Selec
}
// Выставляем высоту селекта. В верхнем контенте высота задается параграфом
if(true !== this.bRoot)
/*if(true !== this.bRoot)
{
var PosLine = this.ParaMath.GetLinePosition(_CurLine);
SelectionDraw.StartX = PosLine.x + this.pos.x;
SelectionDraw.StartY = PosLine.y + this.pos.y - this.size.ascent;
SelectionDraw.H = this.size.height;
}
}*/
var SelectionUse = this.Selection.Use;
......@@ -3833,7 +3832,18 @@ CMathContent.prototype.Selection_DrawRange = function(_CurLine, _CurRange, Selec
for(var CurPos = StartPos; CurPos <= EndPos; CurPos++)
{
var Item = this.Content[CurPos];
if(Item.Type == para_Math_Composition)
var bSelectAll = SelectionUse && SelectionStartPos <= CurPos && CurPos <= SelectionEndPos && SelectionStartPos !== SelectionEndPos;
if(Item.Type == para_Math_Composition && bSelectAll)
{
var Direction = SelectionStartPos > SelectionEndPos ? -1 : 1;
Item.Select_All(Direction);
}
Item.Selection_DrawRange( _CurLine, _CurRange, SelectionDraw );
/*if(Item.Type == para_Math_Composition)
{
if(SelectionUse && SelectionStartPos == CurPos && SelectionStartPos == SelectionEndPos)
{
......@@ -3849,7 +3859,7 @@ CMathContent.prototype.Selection_DrawRange = function(_CurLine, _CurRange, Selec
SelectionDraw.StartX += Item.size.width;
}
else
Item.Selection_DrawRange( _CurLine, _CurRange, SelectionDraw );
Item.Selection_DrawRange( _CurLine, _CurRange, SelectionDraw );*/
}
};
CMathContent.prototype.Select_ElementByPos = function(nPos, bWhole)
......
......@@ -207,7 +207,6 @@ CNary.prototype.fillBase = function(PropsInfo)
base.setBase(Sign);
base.setIterator(this.LowerIterator);
base.fillContent();
//base.Set_CompiledCtrPrp(this.ParaMath);
}
else if( !PropsInfo.supHide && PropsInfo.subHide )
{
......@@ -217,7 +216,6 @@ CNary.prototype.fillBase = function(PropsInfo)
base.setIterator(this.UpperIterator);
base.fillContent();
//base.Set_CompiledCtrPrp(this.ParaMath);
}
else if(PropsInfo.supHide && PropsInfo.subHide)
......@@ -233,7 +231,6 @@ CNary.prototype.fillBase = function(PropsInfo)
base.setUpperIterator(this.UpperIterator);
base.fillContent();
//base.Set_CompiledCtrPrp(this.ParaMath);
}
}
......
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