Commit 45739bfc authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Добавлена функция проверки можно ли удалить аргумент в delimiters

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68218 954022d7-b5bf-4e40-9824-e11837661b57
parent edbf0271
...@@ -839,6 +839,7 @@ function CMathMenuNary(Nary) ...@@ -839,6 +839,7 @@ function CMathMenuNary(Nary)
this.LimLoc = undefined; this.LimLoc = undefined;
this.HideUpper = undefined; this.HideUpper = undefined;
this.HideLower = undefined; this.HideLower = undefined;
this.bCanChangeLimLoc = false;
} }
} }
Asc.extendClass(CMathMenuNary, CMathMenuBase); Asc.extendClass(CMathMenuNary, CMathMenuBase);
......
...@@ -4059,6 +4059,7 @@ function CMathMenuDelimiter(Delimiter) ...@@ -4059,6 +4059,7 @@ function CMathMenuDelimiter(Delimiter)
this.HideEndOper = Delimiter.endOper.Is_Empty(); this.HideEndOper = Delimiter.endOper.Is_Empty();
this.Grow = Delimiter.Pr.grow; this.Grow = Delimiter.Pr.grow;
this.ShapeCentred = (Delimiter.Pr.shp !== DELIMITER_SHAPE_MATH ? true : false); this.ShapeCentred = (Delimiter.Pr.shp !== DELIMITER_SHAPE_MATH ? true : false);
this.bCanDeleteArgument = Delimiter.Pr.column > 1;
} }
else else
{ {
...@@ -4066,6 +4067,7 @@ function CMathMenuDelimiter(Delimiter) ...@@ -4066,6 +4067,7 @@ function CMathMenuDelimiter(Delimiter)
this.HideEndOper = undefined; this.HideEndOper = undefined;
this.Grow = undefined; this.Grow = undefined;
this.ShapeCentred = undefined; this.ShapeCentred = undefined;
this.bCanDeleteArgument = false;
} }
} }
Asc.extendClass(CMathMenuDelimiter, CMathMenuBase); Asc.extendClass(CMathMenuDelimiter, CMathMenuBase);
...@@ -4077,16 +4079,18 @@ CMathMenuDelimiter.prototype.get_StretchBrackets = function(){return this.Gro ...@@ -4077,16 +4079,18 @@ CMathMenuDelimiter.prototype.get_StretchBrackets = function(){return this.Gro
CMathMenuDelimiter.prototype.put_StretchBrackets = function(Stretch){this.Grow = Stretch;}; CMathMenuDelimiter.prototype.put_StretchBrackets = function(Stretch){this.Grow = Stretch;};
CMathMenuDelimiter.prototype.get_MatchBrackets = function(){return this.ShapeCentred;}; CMathMenuDelimiter.prototype.get_MatchBrackets = function(){return this.ShapeCentred;};
CMathMenuDelimiter.prototype.put_MatchBrackets = function(Match){this.ShapeCentred = Match;}; CMathMenuDelimiter.prototype.put_MatchBrackets = function(Match){this.ShapeCentred = Match;};
CMathMenuDelimiter.prototype.can_DeleteArgument = function(){return this.bCanDeleteArgument;};
window["CMathMenuDelimiter"] = CMathMenuDelimiter; window["CMathMenuDelimiter"] = CMathMenuDelimiter;
CMathMenuDelimiter.prototype["get_HideOpeningBracket"] = CMathMenuDelimiter.prototype.get_HideOpeningBracket; CMathMenuDelimiter.prototype["get_HideOpeningBracket"] = CMathMenuDelimiter.prototype.get_HideOpeningBracket;
CMathMenuDelimiter.prototype["put_HideOpeningBracket"] = CMathMenuDelimiter.prototype.put_HideOpeningBracket; CMathMenuDelimiter.prototype["put_HideOpeningBracket"] = CMathMenuDelimiter.prototype.put_HideOpeningBracket;
CMathMenuDelimiter.prototype["get_HideClosingBracket"] = CMathMenuDelimiter.prototype.get_HideClosingBracket; CMathMenuDelimiter.prototype["get_HideClosingBracket"] = CMathMenuDelimiter.prototype.get_HideClosingBracket;
CMathMenuDelimiter.prototype["put_HideClosingBracket"] = CMathMenuDelimiter.prototype.put_HideClosingBracket; CMathMenuDelimiter.prototype["put_HideClosingBracket"] = CMathMenuDelimiter.prototype.put_HideClosingBracket;
CMathMenuDelimiter.prototype["get_StretchBrackets"] = CMathMenuDelimiter.prototype.get_StretchBrackets ; CMathMenuDelimiter.prototype["get_StretchBrackets"] = CMathMenuDelimiter.prototype.get_StretchBrackets;
CMathMenuDelimiter.prototype["put_StretchBrackets"] = CMathMenuDelimiter.prototype.put_StretchBrackets ; CMathMenuDelimiter.prototype["put_StretchBrackets"] = CMathMenuDelimiter.prototype.put_StretchBrackets;
CMathMenuDelimiter.prototype["get_MatchBrackets"] = CMathMenuDelimiter.prototype.get_MatchBrackets ; CMathMenuDelimiter.prototype["get_MatchBrackets"] = CMathMenuDelimiter.prototype.get_MatchBrackets;
CMathMenuDelimiter.prototype["put_MatchBrackets"] = CMathMenuDelimiter.prototype.put_MatchBrackets ; CMathMenuDelimiter.prototype["put_MatchBrackets"] = CMathMenuDelimiter.prototype.put_MatchBrackets;
CMathMenuDelimiter.prototype["can_DeleteArgument"] = CMathMenuDelimiter.prototype.can_DeleteArgument;
/** /**
* *
......
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