Commit adf425f4 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@58701 954022d7-b5bf-4e40-9824-e11837661b57
parent 33ac4c6e
...@@ -220,7 +220,6 @@ CMatrixBase.prototype.recalculateSize = function(oMeasure, RPI) ...@@ -220,7 +220,6 @@ CMatrixBase.prototype.recalculateSize = function(oMeasure, RPI)
if(this.nRow > 1) if(this.nRow > 1)
{ {
//var intervalRow = this.getRowSpace(txtPrp);
var intervalRow = this.getRowSpace(this.spaceRow, txtPrp); var intervalRow = this.getRowSpace(this.spaceRow, txtPrp);
var divCenter = 0; var divCenter = 0;
...@@ -583,68 +582,6 @@ CMathMatrix.prototype.setColumnGapRule = function(rule, gap, minGap) ...@@ -583,68 +582,6 @@ CMathMatrix.prototype.setColumnGapRule = function(rule, gap, minGap)
if(minGap !== null && typeof(minGap) !== "undefined") if(minGap !== null && typeof(minGap) !== "undefined")
this.spaceColumn.minGap = minGap; this.spaceColumn.minGap = minGap;
}; };
/*CMathMatrix.prototype.getLineGap = function(txtPrp)
{
var spLine;
if(this.spaceColumn.rule == 0)
spLine = 1; //em
else if(this.spaceColumn.rule == 1)
spLine = 1.5; //em
else if(this.spaceColumn.rule == 2)
spLine = 2; //em
else if(this.spaceColumn.rule == 3)
spLine = this.spaceColumn.gap/20; //pt
else if(this.spaceColumn.rule == 4)
spLine = this.spaceColumn.gap/2; //em
else
spLine = 1;
var lineGap;
if(this.spaceColumn.rule == 3)
lineGap = spLine*g_dKoef_pt_to_mm; //pt
else
lineGap = spLine*txtPrp.FontSize*g_dKoef_pt_to_mm; //em
var wPlh = 0.3241834852430555 * txtPrp.FontSize;
var min = this.spaceColumn.minGap / 20 * g_dKoef_pt_to_mm - wPlh;
lineGap = Math.max(lineGap, min);
//lineGap += this.params.font.metrics.Placeholder.Height; // для случая, когда gapRow - (аскент + дескент) > minGap, вычитаем из gap строки, а здесь прибавляем стандартный metrics.Height
return lineGap;
};
CMathMatrix.prototype.getRowSpace = function(txtPrp)
{
var spLine;
if(this.spaceRow.rule == 0)
spLine = 7/6; //em
else if(this.spaceRow.rule == 1)
spLine = 7/6 *1.5; //em
else if(this.spaceRow.rule == 2)
spLine = 7/6 *2; //em
else if(this.spaceRow.rule == 3)
spLine = this.spaceRow.gap/20; //pt
else if(this.spaceRow.rule == 4)
spLine = 7/6 * this.spaceRow.gap/2; //em
else
spLine = 7/6;
var lineGap;
if(this.spaceRow.rule == 3)
lineGap = spLine*g_dKoef_pt_to_mm; //pt
else
lineGap = spLine*txtPrp.FontSize*g_dKoef_pt_to_mm; //em
var min = this.spaceRow.minGap*txtPrp.FontSize*g_dKoef_pt_to_mm;
lineGap = Math.max(lineGap, min);
return lineGap;
};*/
//// ////
CMathMatrix.prototype.setProperties = function(props) CMathMatrix.prototype.setProperties = function(props)
{ {
......
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