Commit fb3e97df 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@52801 954022d7-b5bf-4e40-9824-e11837661b57
parent df2939c5
......@@ -7124,13 +7124,6 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res = this.bcr.Read1(length, function(t, l){
return oThis.ReadMathDelimiterPr(t,l,props,oDelimiter);
});
//заглушка для скобок и сепаратора
if ( !props.begChr )
props.begChrType = 0;
if ( !props.endChr )
props.endChrType = 1;
if ( !props.sepChr && props.column >1 )
props.sepChrType = 12;
}
else if (c_oSer_OMathContentType.Element === type)
{
......@@ -7394,8 +7387,6 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res = this.bcr.Read1(length, function(t, l){
return oThis.ReadMathFPr(t,l,props, oFraction);
});
if (!props.type)
props.type = BAR_FRACTION;
}
else if (c_oSer_OMathContentType.Den === type)
{
......
......@@ -7,6 +7,8 @@ function CFraction()
extend(CFraction, CMathBase);
CFraction.prototype.init = function(props)
{
if (props.type == undefined)
props.type = BAR_FRACTION;
var bValid = typeof(props.type) !== "undefined" && props.type !== null;
if(bValid)
......
......@@ -153,12 +153,12 @@ CNary.prototype.init = function(props)
}
else if( this.supHide && !this.subHide )
{
base = new CNaryUnd();
base = new CNaryOvr();
base.init(sign);
}
else if( !this.supHide && this.subHide )
{
base = new CNaryOvr();
base = new CNaryUnd();
base.init(sign);
}
else
......@@ -172,13 +172,13 @@ CNary.prototype.init = function(props)
if( this.supHide && !this.subHide )
{
base = new CDegree();
var prp = {type: DEGREE_SUPERSCRIPT};
var prp = {type: DEGREE_SUBSCRIPT};
base.init_2(prp, sign);
}
else if( !this.supHide && this.subHide )
{
base = new CDegree();
var prp = {type: DEGREE_SUBSCRIPT};
var prp = {type: DEGREE_SUPERSCRIPT};
base.init_2(prp, sign);
}
else
......
......@@ -2722,14 +2722,14 @@ CDelimiter.prototype.init = function(props)
else if(props.grow == false || props.grow == 0)
this.grow = false;
/*if(typeof(props.begChr) === "string" && props.begChr.length == 0)
if(props.begChr == undefined)
props.begChrType = PARENTHESIS_LEFT;
if(typeof(props.endChr) === "string" && props.endChr.length == 0)
if(props.endChr == undefined)
props.endChrType = PARENTHESIS_RIGHT;
if(typeof(props.endChr) === "string" && props.endChr.length == 0)
props.sepChrType = DELIMITER_LINE;*/
if(props.endChr == undefined && props.column >1)
props.sepChrType = DELIMITER_LINE;
var begPrp =
{
......
......@@ -3065,7 +3065,7 @@
<div style="float: left; background-image: url(Math/img/radical_equat.png); width: 160px; height: 104px; background-position: 320px 104px;" value="22"></div>
<div style="float: left; background-image: url(Math/img/radical_equat.png); width: 160px; height: 104px; background-position: 160px 104px;" value="23"></div>
</div>
<div class="integral mathContainer" style="display:none;width:480px;background-color:#fff;top: 80px; right: -4px;z-index:100;position:absolute;padding-top: 5px;border: 4px ridge silver;overflow-y:scroll;">
<div class="integral mathContainer" style="display:none;width:480px;height:480px;background-color:#fff;top: 80px; right: -4px;z-index:100;position:absolute;padding-top: 5px;border: 4px ridge silver;overflow-y:scroll;">
<div style="float: left; background-image: url(Math/img/integral.png); width: 80px; height: 104px; background-position: 240px 728px;" value="24"></div>
<div style="float: left; background-image: url(Math/img/integral.png); width: 80px; height: 104px; background-position: 160px 728px;" value="25"></div>
<div style="float: left; background-image: url(Math/img/integral.png); width: 80px; height: 104px; background-position: 80px 728px;" value="26"></div>
......@@ -3088,6 +3088,49 @@
<div style="float: left; background-image: url(Math/img/integral.png); width: 80px; height: 104px; background-position: 160px 104px;" value="43"></div>
<div style="float: left; background-image: url(Math/img/integral.png); width: 80px; height: 104px; background-position: 80px 104px;" value="44"></div>
</div>
<div class="nary mathContainer" style="display:none;width:480px;height:480px;background-color:#fff;top: 80px; right: -4px;z-index:100;position:absolute;padding-top: 5px;border: 4px ridge silver;overflow-y:scroll;">
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 728px;" value="45"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 728px;" value="46"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 728px;" value="47"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 728px;" value="48"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 728px;" value="49"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 624px;" value="50"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 624px;" value="51"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 624px;" value="52"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 624px;" value="53"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 624px;" value="54"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 520px;" value="55"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 520px;" value="56"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 520px;" value="57"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 520px;" value="58"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 520px;" value="59"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 416px;" value="60"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 416px;" value="61"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 416px;" value="62"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 416px;" value="63"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 416px;" value="64"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 312px;" value="65"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 312px;" value="66"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 312px;" value="67"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 312px;" value="68"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 312px;" value="69"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 208px;" value="70"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 208px;" value="71"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 208px;" value="72"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 208px;" value="73"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 208px;" value="74"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 400px 104px;" value="75"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 320px 104px;" value="76"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 240px 104px;" value="77"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 160px 104px;" value="78"></div>
<div style="float: left; background-image: url(Math/img/nary.png); width: 80px; height: 104px; background-position: 80px 104px;" value="79"></div>
<div style="float: left; background-image: url(Math/img/nary_1.png); width: 80px; height: 104px; background-position: 320px 104px;" value="80"></div>
<div style="float: left; background-image: url(Math/img/nary_1.png); width: 80px; height: 104px; background-position: 240px 104px;" value="81"></div>
<div style="float: left; background-image: url(Math/img/nary_2.png); width: 160px; height: 104px; background-position: 320px 104px;" value="82"></div>
<div style="float: left; background-image: url(Math/img/nary_1.png); width: 80px; height: 104px; background-position: 160px 104px;" value="83"></div>
<div style="float: left; background-image: url(Math/img/nary_2.png); width: 160px; height: 104px; background-position: 160px 104px;" value="84"></div>
</div>
</div>
......
This diff is collapsed.
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