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

Поправила mathRunPrp (typeText, sty)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56024 954022d7-b5bf-4e40-9824-e11837661b57
parent e3e01d9e
...@@ -78,7 +78,6 @@ ParaMath.prototype = ...@@ -78,7 +78,6 @@ ParaMath.prototype =
else else
{ {
NewMath.Root = this.Root.Copy(Selected, NewMath); NewMath.Root = this.Root.Copy(Selected, NewMath);
} }
/// argSize, bDot и bRoot выставить на объединении контентов /// argSize, bDot и bRoot выставить на объединении контентов
......
...@@ -16,6 +16,7 @@ function ParaRun(Paragraph, bMathRun) ...@@ -16,6 +16,7 @@ function ParaRun(Paragraph, bMathRun)
this.CompiledPr = new CTextPr(); // Скомпилированные настройки this.CompiledPr = new CTextPr(); // Скомпилированные настройки
this.RecalcInfo = new CParaRunRecalcInfo(); // Флаги для пересчета (там же флаг пересчета стиля) this.RecalcInfo = new CParaRunRecalcInfo(); // Флаги для пересчета (там же флаг пересчета стиля)
this.TextAscent = 0; // текстовый ascent + linegap
this.TextAscent = 0; // текстовый ascent + linegap this.TextAscent = 0; // текстовый ascent + linegap
this.TextDescent = 0; // текстовый descent this.TextDescent = 0; // текстовый descent
this.TextHeight = 0; // высота текста this.TextHeight = 0; // высота текста
......
...@@ -685,19 +685,19 @@ CMPrp.prototype = ...@@ -685,19 +685,19 @@ CMPrp.prototype =
// если приходит несколько параметров style из xml, то запоминается последний // если приходит несколько параметров style из xml, то запоминается последний
if(props.sty === "i") if(props.sty === STY_ITALIC)
this.italic = true; this.italic = true;
else if(props.sty === "bi") else if(props.sty === STY_BI)
{ {
this.italic = true; this.italic = true;
this.bold = true; this.bold = true;
} }
else if(props.sty === "b") else if(props.sty === STY_BOLD)
{ {
this.italic = false; this.italic = false;
this.bold = true; this.bold = true;
} }
else if(props.sty === "p") else if(props.sty === STY_PLAIN )
{ {
// plain text ?! // default // plain text ?! // default
this.plain = true; // italic = true this.plain = true; // italic = true
...@@ -710,7 +710,7 @@ CMPrp.prototype = ...@@ -710,7 +710,7 @@ CMPrp.prototype =
// TXT_SANS_SERIF U+1D608 - U+1D63B // TXT_SANS_SERIF U+1D608 - U+1D63B
// TXT_SCRIPT U+1D49C - U+1D4CF // TXT_SCRIPT U+1D49C - U+1D4CF
props.scr = this.typeText; this.typeText = props.scr;
if(props.nor) if(props.nor)
...@@ -733,13 +733,13 @@ CMPrp.prototype = ...@@ -733,13 +733,13 @@ CMPrp.prototype =
else else
{ {
if(BoldItalic) if(BoldItalic)
props.sty = "bi"; props.sty = STY_BI;
else if(Bold) else if(Bold)
props.sty = "b"; props.sty = STY_BOLD;
else if(Italic) else if(Italic)
props.sty = "i"; props.sty = STY_ITALIC;
else if(Plain) else if(Plain)
props.sty = "p"; props.sty = STY_PLAIN;
} }
if(this.aln) if(this.aln)
......
...@@ -1219,4 +1219,3 @@ CRadical.prototype.getPropsForWrite = function() ...@@ -1219,4 +1219,3 @@ CRadical.prototype.getPropsForWrite = function()
return props; return 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