Commit effbd684 authored by Sergey Konovalov's avatar Sergey Konovalov

findRangeUnderCursor for name3D

parent 32c25ca8
...@@ -3071,6 +3071,7 @@ var cFormulaOperators = { ...@@ -3071,6 +3071,7 @@ var cFormulaOperators = {
switch (item.oper.type) { switch (item.oper.type) {
case cElementType.table: case cElementType.table:
case cElementType.name: case cElementType.name:
case cElementType.name3D:
ref = item.oper.toRef(); ref = item.oper.toRef();
break; break;
case cElementType.cell: case cElementType.cell:
...@@ -4686,7 +4687,10 @@ parserFormula.prototype.parse = function(local, digitDelim) { ...@@ -4686,7 +4687,10 @@ parserFormula.prototype.parse = function(local, digitDelim) {
} }
this.RefPos.push(pos); this.RefPos.push(pos);
} else if (parserHelp.isName.call(this, this.Formula, this.pCurrPos)) { } else if (parserHelp.isName.call(this, this.Formula, this.pCurrPos)) {
pos.end = this.pCurrPos;
found_operand = new cName3D(this.operand_str, wsF); found_operand = new cName3D(this.operand_str, wsF);
pos.oper = found_operand;
this.RefPos.push(pos);
} }
this.countRef++; this.countRef++;
} }
......
...@@ -863,7 +863,8 @@ ...@@ -863,7 +863,8 @@
break; break;
} }
case cElementType.table : case cElementType.table :
case cElementType.name : { case cElementType.name :
case cElementType.name3D : {
var nameRef = r.oper.toRef(bbox); var nameRef = r.oper.toRef(bbox);
if (nameRef instanceof AscCommonExcel.cError) { if (nameRef instanceof AscCommonExcel.cError) {
continue; continue;
...@@ -983,7 +984,8 @@ ...@@ -983,7 +984,8 @@
break; break;
} }
case cElementType.table : case cElementType.table :
case cElementType.name : { case cElementType.name :
case cElementType.name3D : {
var nameRef = r.oper.toRef(bbox); var nameRef = r.oper.toRef(bbox);
if (nameRef instanceof AscCommonExcel.cError) { if (nameRef instanceof AscCommonExcel.cError) {
continue; continue;
......
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