Commit 7038eb1e authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

IncreaseArgumentSize/DecreaseArgumentSize

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68216 954022d7-b5bf-4e40-9824-e11837661b57
parent 8866b26a
...@@ -288,7 +288,7 @@ CLimit.prototype.Can_ModifyArgSize = function() ...@@ -288,7 +288,7 @@ CLimit.prototype.Can_ModifyArgSize = function()
*/ */
function CMathMenuLimit(Limit) function CMathMenuLimit(Limit)
{ {
CMathMenuLimit.superclass.constructor.call(this); CMathMenuLimit.superclass.constructor.call(this, Limit);
this.Type = c_oAscMathInterfaceType.Limit; this.Type = c_oAscMathInterfaceType.Limit;
......
...@@ -4774,32 +4774,31 @@ CMathContent.prototype.Set_MenuProps = function(Props) ...@@ -4774,32 +4774,31 @@ CMathContent.prototype.Set_MenuProps = function(Props)
} }
}; };
CMathContent.prototype.Apply_MenuProps = function(Props) CMathContent.prototype.Apply_MenuProps = function(Props)
{
};
CMathContent.prototype.old_Apply_MenuProps = function(Type, Data)
{ {
var ArgSize, NewArgSize; var ArgSize, NewArgSize;
if(Type == c_oAscMathMenuTypes.DecreaseArgSize)
if(Props.Action & c_oMathMenuAction.IncreaseArgumentSize)
{ {
if(true === this.Parent.Can_ModifyArgSize() && true == this.Compiled_ArgSz.Can_Decrease() && true == this.ArgSize.Can_Decrease()) if(true === this.Parent.Can_ModifyArgSize() && true == this.Compiled_ArgSz.Can_Increase() && true == this.ArgSize.Can_SimpleIncrease())
{ {
ArgSize = this.ArgSize.GetValue(); ArgSize = this.ArgSize.GetValue();
NewArgSize = this.ArgSize.Decrease(); NewArgSize = this.ArgSize.Increase();
History.Add( this, { Type : historyitem_Math_ArgSize, New: NewArgSize, Old: ArgSize}); History.Add( this, { Type : historyitem_Math_ArgSize, New: NewArgSize, Old: ArgSize});
this.Recalc_RunsCompiledPr(); this.Recalc_RunsCompiledPr();
} }
} }
else if(Type == c_oAscMathMenuTypes.IncreaseArgSize)
if(Props.Action & c_oMathMenuAction.DecreaseArgumentSize)
{ {
if(true === this.Parent.Can_ModifyArgSize() && true == this.Compiled_ArgSz.Can_Increase() && true == this.ArgSize.Can_SimpleIncrease()) if(true === this.Parent.Can_ModifyArgSize() && true == this.Compiled_ArgSz.Can_Decrease() && true == this.ArgSize.Can_Decrease())
{ {
ArgSize = this.ArgSize.GetValue(); ArgSize = this.ArgSize.GetValue();
NewArgSize = this.ArgSize.Increase(); NewArgSize = this.ArgSize.Decrease();
History.Add( this, { Type : historyitem_Math_ArgSize, New: NewArgSize, Old: ArgSize}); History.Add( this, { Type : historyitem_Math_ArgSize, New: NewArgSize, Old: ArgSize});
this.Recalc_RunsCompiledPr(); this.Recalc_RunsCompiledPr();
} }
} }
}; };
......
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