Commit 9528f041 authored by Sergey.Tsarkov's avatar Sergey.Tsarkov

добавлен para_Math_BreakOperator

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60871 954022d7-b5bf-4e40-9824-e11837661b57
parent 0534514d
...@@ -8502,6 +8502,10 @@ ParaRun.prototype.Get_TextForAutoCorrect = function(AutoCorrectEngine, RunPos) ...@@ -8502,6 +8502,10 @@ ParaRun.prototype.Get_TextForAutoCorrect = function(AutoCorrectEngine, RunPos)
{ {
AutoCorrectEngine.Add_Text(String.fromCharCode(Item.value), this, nPos, RunPos); AutoCorrectEngine.Add_Text(String.fromCharCode(Item.value), this, nPos, RunPos);
} }
else if (para_Math_Ampersand === Item.Type)
{
AutoCorrectEngine.Add_Text('&', this, nPos, RunPos);
}
if (Item === ActionElement) if (Item === ActionElement)
{ {
......
...@@ -1893,6 +1893,7 @@ function Binary_oMathWriter(memory, oMathPara) ...@@ -1893,6 +1893,7 @@ function Binary_oMathWriter(memory, oMathPara)
break; break;
} }
case para_Math_Text: case para_Math_Text:
case para_Math_BreakOperator:
this.bs.WriteItem(c_oSer_OMathContentType.MText, function(){ oThis.memory.WriteString2(convertUnicodeToUTF16([item.value]));}); //m:t this.bs.WriteItem(c_oSer_OMathContentType.MText, function(){ oThis.memory.WriteString2(convertUnicodeToUTF16([item.value]));}); //m:t
break; break;
case para_Math_Run: case para_Math_Run:
...@@ -1934,10 +1935,11 @@ function Binary_oMathWriter(memory, oMathPara) ...@@ -1934,10 +1935,11 @@ function Binary_oMathWriter(memory, oMathPara)
var Item = oMRun.Content[CurPos]; var Item = oMRun.Content[CurPos];
switch ( Item.Type ) switch ( Item.Type )
{ {
case para_Math_Ampersand : oText += "&"; break; case para_Math_Ampersand : oText += "&"; break;
case para_Math_Text : oText += convertUnicodeToUTF16([Item.value]); break; case para_Math_BreakOperator:
case para_Math_Text : oText += convertUnicodeToUTF16([Item.value]); break;
case para_Space: case para_Space:
case para_Tab : oText += " "; break; case para_Tab : oText += " "; break;
} }
} }
......
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