Commit bbd611d2 authored by Anna.Pavlova's avatar Anna.Pavlova

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

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