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

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48782 954022d7-b5bf-4e40-9824-e11837661b57
parent 0e67351b
...@@ -102,9 +102,8 @@ CMathBase.prototype = ...@@ -102,9 +102,8 @@ CMathBase.prototype =
}, },
setTxtPrp: function(txtPrp) setTxtPrp: function(txtPrp)
{ {
this.TxtPrp = new CMathTextPrp(); //this.TxtPrp = new CMathTextPrp();
this.TxtPrp.Merge(txtPrp); this.TxtPrp.Merge(txtPrp);
//this.TxtPrp.Merge(this.OwnTPrp);
for(var i=0; i < this.nRow; i++) for(var i=0; i < this.nRow; i++)
for(var j = 0; j < this.nCol; j++) for(var j = 0; j < this.nCol; j++)
......
...@@ -56,7 +56,8 @@ CMinimaxFunc.prototype.init = function() ...@@ -56,7 +56,8 @@ CMinimaxFunc.prototype.init = function()
this.setDimension(2, 1); this.setDimension(2, 1);
var oBase = new CMathContent(); var oBase = new CMathContent();
oBase.mergeTxtPrp({Italic: false}); //oBase.mergeTxtPrp({Italic: false});
oBase.setTxtPrp({Italic: false});
var oIter = new CMathContent(); var oIter = new CMathContent();
oIter.setReduct(DEGR_REDUCT); oIter.setReduct(DEGR_REDUCT);
...@@ -131,7 +132,9 @@ CMathFunc.prototype.init = function() ...@@ -131,7 +132,9 @@ CMathFunc.prototype.init = function()
{ {
this.setDimension(1, 2); this.setDimension(1, 2);
this.setContent(); this.setContent();
this.elements[0][0].mergeTxtPrp({Italic: false}); // trigonometrical function this.elements[0][0].setTxtPrp({Italic: false}); // trigonometrical function
//this.elements[0][0].mergeTxtPrp({Italic: false}); // trigonometrical function
} }
CMathFunc.prototype.setDistance = function() CMathFunc.prototype.setDistance = function()
{ {
......
This diff is collapsed.
...@@ -149,7 +149,6 @@ CMathText.prototype = ...@@ -149,7 +149,6 @@ CMathText.prototype =
{ {
this.TxtPrp = new CMathTextPrp(); this.TxtPrp = new CMathTextPrp();
this.TxtPrp.Merge(txtPrp); this.TxtPrp.Merge(txtPrp);
}, },
setLIterator: function(bIterator) setLIterator: function(bIterator)
{ {
......
...@@ -129,7 +129,7 @@ CNaryUnd.prototype.init = function(sign) ...@@ -129,7 +129,7 @@ CNaryUnd.prototype.init = function(sign)
} }
CNaryUnd.prototype.setDistance = function() CNaryUnd.prototype.setDistance = function()
{ {
var zetta = this.Parent.getTxtPrp().FontSize* 25.4/96; var zetta = this.getTxtPrp().FontSize* 25.4/96;
this.dH = zetta*0.25; this.dH = zetta*0.25;
} }
CNaryUnd.prototype.getCenter = function() CNaryUnd.prototype.getCenter = function()
...@@ -158,7 +158,7 @@ CNaryOvr.prototype.init = function(sign) ...@@ -158,7 +158,7 @@ CNaryOvr.prototype.init = function(sign)
} }
CNaryOvr.prototype.setDistance = function() CNaryOvr.prototype.setDistance = function()
{ {
var zetta = this.Parent.getTxtPrp().FontSize* 25.4/96; var zetta = this.getTxtPrp().FontSize* 25.4/96;
this.dH = zetta*0.1; this.dH = zetta*0.1;
} }
CNaryOvr.prototype.getCenter = function() CNaryOvr.prototype.getCenter = function()
...@@ -191,7 +191,7 @@ CNaryUndOvr.prototype.init = function(sign) ...@@ -191,7 +191,7 @@ CNaryUndOvr.prototype.init = function(sign)
} }
CNaryUndOvr.prototype.recalculateSize = function() CNaryUndOvr.prototype.recalculateSize = function()
{ {
var zetta = this.Parent.getTxtPrp().FontSize* 25.4/96; var zetta = this.getTxtPrp().FontSize* 25.4/96;
this.gapTop = zetta*0.25; this.gapTop = zetta*0.25;
this.gapBottom = zetta*0.1; this.gapBottom = zetta*0.1;
...@@ -284,8 +284,8 @@ CNaryUndOvr.prototype.getUpperIterator = function() ...@@ -284,8 +284,8 @@ CNaryUndOvr.prototype.getUpperIterator = function()
function CNaryOperator(flip) function CNaryOperator(flip)
{ {
this.TxtPrp = new CMathTextPrp();
this.bFlip = (flip == -1); this.bFlip = (flip == -1);
this.sizeGlyph = null; this.sizeGlyph = null;
} }
CNaryOperator.prototype.draw = function() CNaryOperator.prototype.draw = function()
...@@ -298,7 +298,7 @@ CNaryOperator.prototype.draw = function() ...@@ -298,7 +298,7 @@ CNaryOperator.prototype.draw = function()
var XX = new Array(), var XX = new Array(),
YY = new Array(); YY = new Array();
var textScale = this.Parent.getTxtPrp().FontSize/850; // 1000 pt var textScale = this.getTxtPrp().FontSize/850; // 1000 pt
var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры
// g_dKoef_px_to_mm = 25.4/96 // g_dKoef_px_to_mm = 25.4/96
...@@ -361,6 +361,14 @@ CNaryOperator.prototype.Resize = function() ...@@ -361,6 +361,14 @@ CNaryOperator.prototype.Resize = function()
{ {
this.recalculateSize(); this.recalculateSize();
} }
CNaryOperator.prototype.setTxtPrp = function(txtPrp)
{
this.TxtPrp.Merge(txtPrp);
}
CNaryOperator.prototype.getTxtPrp = function()
{
return this.TxtPrp;
}
function CSigma() function CSigma()
{ {
...@@ -477,7 +485,7 @@ CSigma.prototype.getCoord = function() ...@@ -477,7 +485,7 @@ CSigma.prototype.getCoord = function()
X[35] = 16252; Y[35] = 5200; X[35] = 16252; Y[35] = 5200;
var textScale = this.Parent.getTxtPrp().FontSize/850; // 1000 pt var textScale = this.getTxtPrp().FontSize/850; // 1000 pt
var alpha = textScale*25.4/96 /64; var alpha = textScale*25.4/96 /64;
var h1 = Y[0] - Y[21], var h1 = Y[0] - Y[21],
...@@ -548,7 +556,7 @@ CSigma.prototype.calculateSizeGlyph = function() ...@@ -548,7 +556,7 @@ CSigma.prototype.calculateSizeGlyph = function()
{ {
// пока размер не меняем в зависимости от высоты аргумента // пока размер не меняем в зависимости от высоты аргумента
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 8.997900390624999*betta, var _width = 8.997900390624999*betta,
_height = 11.994444444444444*betta; _height = 11.994444444444444*betta;
...@@ -679,7 +687,7 @@ CProduct.prototype.getCoord = function() ...@@ -679,7 +687,7 @@ CProduct.prototype.getCoord = function()
X[62] = 67894; Y[62] = 0; X[62] = 67894; Y[62] = 0;
var textScale = this.Parent.getTxtPrp().FontSize/850, // 1000 pt var textScale = this.getTxtPrp().FontSize/850, // 1000 pt
alpha = textScale*25.4/96 /64; alpha = textScale*25.4/96 /64;
var h1 = Y[9], var h1 = Y[9],
...@@ -709,7 +717,7 @@ CProduct.prototype.getCoord = function() ...@@ -709,7 +717,7 @@ CProduct.prototype.getCoord = function()
} }
CProduct.prototype.calculateSizeGlyph = function() CProduct.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 10.312548828125*betta, var _width = 10.312548828125*betta,
_height = 11.994444444444444*betta; _height = 11.994444444444444*betta;
...@@ -780,7 +788,7 @@ CUnion.prototype.getCoord = function() ...@@ -780,7 +788,7 @@ CUnion.prototype.getCoord = function()
} }
CUnion.prototype.calculateSizeGlyph = function() CUnion.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
this.gap = 0.93*betta; this.gap = 0.93*betta;
var _width = 9.38*betta, var _width = 9.38*betta,
...@@ -898,7 +906,7 @@ CLogicalOr.prototype.getCoord = function() ...@@ -898,7 +906,7 @@ CLogicalOr.prototype.getCoord = function()
X[6] = 10613; Y[6] = 0; X[6] = 10613; Y[6] = 0;
X[7] = 0; Y[7] = 0; X[7] = 0; Y[7] = 0;
var textScale = this.Parent.getTxtPrp().FontSize/850, // 1000 pt var textScale = this.getTxtPrp().FontSize/850, // 1000 pt
alpha = textScale*25.4/96 /64; alpha = textScale*25.4/96 /64;
var w1 = X[1], var w1 = X[1],
...@@ -929,7 +937,7 @@ CLogicalOr.prototype.getCoord = function() ...@@ -929,7 +937,7 @@ CLogicalOr.prototype.getCoord = function()
} }
CLogicalOr.prototype.calculateSizeGlyph = function() CLogicalOr.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 9.6159*betta, var _width = 9.6159*betta,
_height = 11.994444444444444*betta; _height = 11.994444444444444*betta;
...@@ -1158,7 +1166,7 @@ CIntegral.prototype.old_drawPath = function(XX, YY) ...@@ -1158,7 +1166,7 @@ CIntegral.prototype.old_drawPath = function(XX, YY)
} }
CIntegral.prototype.calculateSizeGlyph = function() CIntegral.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 8.624*betta, var _width = 8.624*betta,
_height = 13.7*betta; _height = 13.7*betta;
...@@ -1198,7 +1206,7 @@ CDoubleIntegral.prototype.drawPath = function(XX, YY) ...@@ -1198,7 +1206,7 @@ CDoubleIntegral.prototype.drawPath = function(XX, YY)
} }
CDoubleIntegral.prototype.calculateSizeGlyph = function() CDoubleIntegral.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 14.2296*betta, var _width = 14.2296*betta,
_height = 13.7*betta; _height = 13.7*betta;
...@@ -1248,7 +1256,7 @@ CTripleIntegral.prototype.drawPath = function(XX, YY) ...@@ -1248,7 +1256,7 @@ CTripleIntegral.prototype.drawPath = function(XX, YY)
} }
CTripleIntegral.prototype.calculateSizeGlyph = function() CTripleIntegral.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 18.925368*betta, var _width = 18.925368*betta,
_height = 13.7*betta; _height = 13.7*betta;
...@@ -2689,7 +2697,7 @@ CContourIntegral.prototype.draw = function() ...@@ -2689,7 +2697,7 @@ CContourIntegral.prototype.draw = function()
WW = coord2.W, WW = coord2.W,
HH = coord2.H; HH = coord2.H;
var textScale = this.Parent.getTxtPrp().FontSize/850;// 1000 pt var textScale = this.getTxtPrp().FontSize/850;// 1000 pt
var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры
var shX = (WW - W)*alpha/2, var shX = (WW - W)*alpha/2,
...@@ -2733,7 +2741,7 @@ CContourIntegral.prototype.draw = function() ...@@ -2733,7 +2741,7 @@ CContourIntegral.prototype.draw = function()
} }
CContourIntegral.prototype.calculateSizeGlyph = function() CContourIntegral.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 8.624*betta, var _width = 8.624*betta,
_height = 13.7*betta; _height = 13.7*betta;
...@@ -3192,7 +3200,7 @@ CSurfaceIntegral.prototype.draw = function() ...@@ -3192,7 +3200,7 @@ CSurfaceIntegral.prototype.draw = function()
HH = coord2.H; HH = coord2.H;
var textScale = this.Parent.getTxtPrp().FontSize/850; // 1000 pt var textScale = this.getTxtPrp().FontSize/850; // 1000 pt
var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры
...@@ -3238,7 +3246,7 @@ CSurfaceIntegral.prototype.draw = function() ...@@ -3238,7 +3246,7 @@ CSurfaceIntegral.prototype.draw = function()
} }
CSurfaceIntegral.prototype.calculateSizeGlyph = function() CSurfaceIntegral.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 14.2296*betta, var _width = 14.2296*betta,
_height = 13.7*betta; _height = 13.7*betta;
...@@ -3767,7 +3775,7 @@ CVolumeIntegral.prototype.draw = function() ...@@ -3767,7 +3775,7 @@ CVolumeIntegral.prototype.draw = function()
HH = coord2.H; HH = coord2.H;
var textScale = this.Parent.getTxtPrp().FontSize/850; // 1000 pt var textScale = this.getTxtPrp().FontSize/850; // 1000 pt
var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры var alpha = textScale*25.4/96 /64; // коэффициент; используется для того чтобы перевести координаты в миллиметры
...@@ -3813,7 +3821,7 @@ CVolumeIntegral.prototype.draw = function() ...@@ -3813,7 +3821,7 @@ CVolumeIntegral.prototype.draw = function()
} }
CVolumeIntegral.prototype.calculateSizeGlyph = function() CVolumeIntegral.prototype.calculateSizeGlyph = function()
{ {
var betta = this.Parent.getTxtPrp().FontSize/36; var betta = this.getTxtPrp().FontSize/36;
var _width = 18.925368*betta, var _width = 18.925368*betta,
_height = 13.7*betta; _height = 13.7*betta;
......
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