Commit 0afc5995 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

differential

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47509 954022d7-b5bf-4e40-9824-e11837661b57
parent 1d8dc902
//var NameFunctions = ["min", "max", "lim", "log", "ln", "sin", "cos", "tg", "ctg", "ch", "sh", "th", "cth", "sec", "csc", "cot", "csch", "sech", "coth"];
//var NameFunctions = ["min", "max", "lim", "log", "ln", "sin", "cos", "tan", "ctg", "cosh", "sinh", "tanh", "cth", "sec", "csc", "cot", "csch", "sech", "coth"];
var Diff = ["dx","dy",""];
//var Diff = ["dx","dy","dθ"];
function CLogarithm()
{
......@@ -173,13 +173,13 @@ old_CMathFunc.prototype.addText = function(txt)
this.elements[0][1].addText(txt);
}
function CDifferential(num)
function old_CDifferential(num)
{
this.num = num;
CSubMathBase.call(this, 1,1);
}
extend(CDifferential, CSubMathBase);
CDifferential.prototype.setContent = function()
extend(old_CDifferential, CSubMathBase);
old_CDifferential.prototype.setContent = function()
{
var oDiff = new CMathContent();
oDiff.init(this.params);
......
......@@ -2175,6 +2175,24 @@ CMathComposition.prototype =
radical.ResizeReverse_2();
break;
case 41:
mathBase = this.SelectContent.addMathComponent_2(230);
elem1 = mathBase.getElement(0,0);
elem1.addText("dx");
mathBase.ResizeReverse_2();
break;
case 42:
mathBase = this.SelectContent.addMathComponent_2(230);
elem1 = mathBase.getElement(0,0);
elem1.addText("dy");
mathBase.ResizeReverse_2();
break;
case 43:
mathBase = this.SelectContent.addMathComponent_2(230);
elem1 = mathBase.getElement(0,0);
elem1.addText("");
mathBase.ResizeReverse_2();
break;
case 79:
nary = this.SelectContent.addMathComponent_2(47);
......@@ -2881,13 +2899,13 @@ function AddEquation(ind)
mathElem = new CNary(5, 0, 3);
break;
case 41:
mathElem = new CDifferential(0);
//mathElem = new CDifferential(0);
break;
case 42:
mathElem = new CDifferential(1);
//mathElem = new CDifferential(1);
break;
case 43:
mathElem = new CDifferential(2);
//mathElem = new CDifferential(2);
break;
case 44:
......@@ -3451,6 +3469,9 @@ function AddEquation(ind)
case 229:
mathElem = new CMathMatrix(1, 1);
break;
case 230:
mathElem = new CMathBase(1,1);
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