Commit ee925b0f authored by Sergey.Tsarkov's avatar Sergey.Tsarkov Committed by Alexander.Trofimov

настройки для формул убраны из глобального объекта для чтения и записи

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61267 954022d7-b5bf-4e40-9824-e11837661b57
parent 9819b97a
...@@ -79,9 +79,10 @@ CMathPropertiesSettings.prototype.Merge = function(Pr) ...@@ -79,9 +79,10 @@ CMathPropertiesSettings.prototype.Merge = function(Pr)
if(Pr.dispDef !== null && Pr.dispDef !== undefined) if(Pr.dispDef !== null && Pr.dispDef !== undefined)
this.dispDef = Pr.dispDef; this.dispDef = Pr.dispDef;
};
var g_oMathSettings = {}; if(Pr.mathFont !== null && Pr.mathFont !== undefined)
this.mathFont = Pr.mathFont;
};
function CMathSettings() function CMathSettings()
{ {
......
...@@ -4361,7 +4361,7 @@ function BinarySettingsTableWriter(memory, doc) ...@@ -4361,7 +4361,7 @@ function BinarySettingsTableWriter(memory, doc)
this.WriteMathPr = function() this.WriteMathPr = function()
{ {
var oThis = this; var oThis = this;
var oMathPr = g_oMathSettings; var oMathPr = editor.WordControl.m_oLogicDocument.Settings.MathSettings.GetPr();
if ( null != oMathPr.brkBin) if ( null != oMathPr.brkBin)
this.bs.WriteItem(c_oSer_MathPrType.BrkBin, function(){oThis.WriteMathBrkBin(oMathPr.brkBin);}); this.bs.WriteItem(c_oSer_MathPrType.BrkBin, function(){oThis.WriteMathBrkBin(oMathPr.brkBin);});
if ( null != oMathPr.brkBinSub) if ( null != oMathPr.brkBinSub)
...@@ -4475,7 +4475,7 @@ function BinarySettingsTableWriter(memory, doc) ...@@ -4475,7 +4475,7 @@ function BinarySettingsTableWriter(memory, doc)
{ {
this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val); this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val);
this.memory.WriteByte(c_oSerPropLenType.Variable); this.memory.WriteByte(c_oSerPropLenType.Variable);
this.memory.WriteString2(MathFont); this.memory.WriteString2(MathFont.Name);
} }
this.WriteMathNaryLim = function(NaryLim) this.WriteMathNaryLim = function(NaryLim)
{ {
...@@ -11110,9 +11110,11 @@ function Binary_SettingsTableReader(doc, oReadResult, stream) ...@@ -11110,9 +11110,11 @@ function Binary_SettingsTableReader(doc, oReadResult, stream)
} }
else if ( c_oSer_SettingsType.MathPr === type ) else if ( c_oSer_SettingsType.MathPr === type )
{ {
var props = new CMathPropertiesSettings();
res = this.bcr.Read1(length, function(t, l){ res = this.bcr.Read1(length, function(t, l){
return oThis.ReadMathPr(t,l,g_oMathSettings); return oThis.ReadMathPr(t,l,props);
}); });
editor.WordControl.m_oLogicDocument.Settings.MathSettings.SetPr(props);
} }
else else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
...@@ -11310,7 +11312,7 @@ function Binary_SettingsTableReader(doc, oReadResult, stream) ...@@ -11310,7 +11312,7 @@ function Binary_SettingsTableReader(doc, oReadResult, stream)
var oThis = this; var oThis = this;
if (c_oSer_OMathBottomNodesValType.Val === type) if (c_oSer_OMathBottomNodesValType.Val === type)
{ {
props.mathFont = this.stream.GetString2LE(length); props.mathFont = {Name : this.stream.GetString2LE(length), Index : -1};
} }
else else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
......
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