Commit 6d0afcf0 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@56107 954022d7-b5bf-4e40-9824-e11837661b57
parent 0654a7d6
...@@ -1596,7 +1596,7 @@ CMathBase.prototype = ...@@ -1596,7 +1596,7 @@ CMathBase.prototype =
while(start_x < this.nCol && start_y < this.nRow && (TextPr == null || this.elements[start_x][start_y].IsJustDraw() )) while(start_x < this.nCol && start_y < this.nRow && (TextPr == null || this.elements[start_x][start_y].IsJustDraw() ))
{ {
if(!this.elements[start_x][start_y].IsJustDraw()) if(!this.elements[start_x][start_y].IsJustDraw())
TextPr = this.elements[start_x][start_y].Get_CompiledTextPr(Copy); TextPr = this.elements[start_x][start_y].Get_CompiledTextPr(Copy, true);
start_y++; start_y++;
...@@ -1613,7 +1613,7 @@ CMathBase.prototype = ...@@ -1613,7 +1613,7 @@ CMathBase.prototype =
{ {
if(!this.elements[i][j].IsJustDraw()) if(!this.elements[i][j].IsJustDraw())
{ {
var CurTextPr = this.elements[i][j].Get_CompiledPr(false); var CurTextPr = this.elements[i][j].Get_CompiledTextPr(false, true);
if ( null !== CurTextPr ) if ( null !== CurTextPr )
TextPr = TextPr.Compare( CurTextPr ); TextPr = TextPr.Compare( CurTextPr );
......
...@@ -6235,7 +6235,7 @@ CMathContent.prototype = ...@@ -6235,7 +6235,7 @@ CMathContent.prototype =
return TextPr; return TextPr;
}, },
Get_CompiledTextPr : function(Copy) Get_CompiledTextPr : function(Copy, bAll)
{ {
var TextPr = null; var TextPr = null;
...@@ -6243,21 +6243,29 @@ CMathContent.prototype = ...@@ -6243,21 +6243,29 @@ CMathContent.prototype =
{ {
TextPr = this.Parent.getCtrPrp(); TextPr = this.Parent.getCtrPrp();
} }
else if ( true === this.bSelectionUse ) else if ( true === this.bSelectionUse || bAll == true)
{ {
var StartPos = this.SelectStartPos; var StartPos, EndPos;
var EndPos = this.SelectEndPos; if(true === this.bSelectionUse)
{
StartPos = this.SelectStartPos;
EndPos = this.SelectEndPos;
if ( StartPos > EndPos ) if ( StartPos > EndPos )
{
StartPos = this.SelectEndPos;
EndPos = this.SelectStartPos;
}
}
else
{ {
StartPos = this.SelectEndPos; StartPos = 0;
EndPos = this.SelectStartPos; EndPos = this.content.length - 1;
} }
while ( null === TextPr && StartPos <= EndPos ) while ( null === TextPr && StartPos <= EndPos )
{ {
TextPr = this.content[StartPos].Get_CompiledTextPr(Copy); TextPr = this.content[StartPos].Get_CompiledTextPr(Copy);
StartPos++; StartPos++;
} }
......
...@@ -35,10 +35,11 @@ function CMathMatrix(props) ...@@ -35,10 +35,11 @@ function CMathMatrix(props)
this.column = 0; this.column = 0;
//// ////
CMathBase.call(this); CMathBase.call(this);
CMathMatrix.superclass.init.call(this, props); //CMathMatrix.init.call(this, props);
this.init(props);
this.setCtrPrp(props.ctrPrp); this.setCtrPrp(props.ctrPrp);
} }
extend(CMathMatrix, CMathBase); extend(CMathMatrix, CMathBase);
...@@ -509,11 +510,11 @@ function CEqArray(props) ...@@ -509,11 +510,11 @@ function CEqArray(props)
this.maxDist = 0; this.maxDist = 0;
this.objDist = 0; this.objDist = 0;
this.init(props); this.init_2(props);
this.setCtrPrp(props.ctrPrp); this.setCtrPrp(props.ctrPrp);
} }
extend(CEqArray, CMathMatrix); extend(CEqArray, CMathMatrix);
CEqArray.prototype.init = function(props) CEqArray.prototype.init_2 = function(props)
{ {
var Pr = var Pr =
{ {
......
...@@ -56,12 +56,12 @@ CNary.prototype.init = function(props) ...@@ -56,12 +56,12 @@ CNary.prototype.init = function(props)
{ {
var bIntegral = signCode > 0x222A && signCode < 0x2231; var bIntegral = signCode > 0x222A && signCode < 0x2231;
var MPrp = this.Parent.Composition.GetMathPr(); //var MPrp = this.Parent.Composition.GetMathPr();
if(bIntegral) if(bIntegral)
this.limLoc = MPrp.intLim; this.limLoc = g_oMathSettings.intLim;
else else
this.limLoc = MPrp.naryLim; this.limLoc = g_oMathSettings.naryLim;
} }
......
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