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,10 +79,11 @@ CMathPropertiesSettings.prototype.Merge = function(Pr)
if(Pr.dispDef !== null && Pr.dispDef !== undefined)
this.dispDef = Pr.dispDef;
if(Pr.mathFont !== null && Pr.mathFont !== undefined)
this.mathFont = Pr.mathFont;
};
var g_oMathSettings = {};
function CMathSettings()
{
this.Pr = new CMathPropertiesSettings();
......
......@@ -4361,7 +4361,7 @@ function BinarySettingsTableWriter(memory, doc)
this.WriteMathPr = function()
{
var oThis = this;
var oMathPr = g_oMathSettings;
var oMathPr = editor.WordControl.m_oLogicDocument.Settings.MathSettings.GetPr();
if ( null != oMathPr.brkBin)
this.bs.WriteItem(c_oSer_MathPrType.BrkBin, function(){oThis.WriteMathBrkBin(oMathPr.brkBin);});
if ( null != oMathPr.brkBinSub)
......@@ -4475,7 +4475,7 @@ function BinarySettingsTableWriter(memory, doc)
{
this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val);
this.memory.WriteByte(c_oSerPropLenType.Variable);
this.memory.WriteString2(MathFont);
this.memory.WriteString2(MathFont.Name);
}
this.WriteMathNaryLim = function(NaryLim)
{
......@@ -11109,10 +11109,12 @@ function Binary_SettingsTableReader(doc, oReadResult, stream)
Default_Tab_Stop = dNewTab_Stop;
}
else if ( c_oSer_SettingsType.MathPr === type )
{
{
var props = new CMathPropertiesSettings();
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
res = c_oSerConstants.ReadUnknown;
......@@ -11310,7 +11312,7 @@ function Binary_SettingsTableReader(doc, oReadResult, stream)
var oThis = this;
if (c_oSer_OMathBottomNodesValType.Val === type)
{
props.mathFont = this.stream.GetString2LE(length);
props.mathFont = {Name : this.stream.GetString2LE(length), Index : -1};
}
else
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