Commit 3959bb47 authored by Sergey Konovalov's avatar Sergey Konovalov

add Cell.getNumberValue

parent 326f01bd
......@@ -5250,6 +5250,10 @@ Woorksheet.prototype.isApplyFilterBySheet = function(){
dDigitsCount = AscCommon.gc_nMaxDigCountView;
return this.oValue.getValue2(this, dDigitsCount, fIsFitMeasurer);
};
Cell.prototype.getNumberValue = function() {
this._checkDirty();
return this.oValue.getNumberValue();
};
Cell.prototype.getNumFormatStr=function(){
if(null != this.xfs && null != this.xfs.num)
return this.xfs.num.getFormat();
......@@ -6597,6 +6601,10 @@ Woorksheet.prototype.isApplyFilterBySheet = function(){
return oTempCell.getValue2(dDigitsCount, fIsFitMeasurer);
}
};
Range.prototype.getNumberValue = function() {
var cell = this.worksheet._getCellNoEmpty(this.bbox.r1, this.bbox.c1);
return null != cell ? cell.getNumberValue() : null;
};
Range.prototype.getValueData=function(){
var res = null;
var cell = this.worksheet._getCellNoEmpty(this.bbox.r1, this.bbox.c1);
......
......@@ -3103,6 +3103,10 @@ CCellValue.prototype =
sResult = this.getStringFromMultiText();
return sResult;
},
getNumberValue : function()
{
return this.number;
},
getValue : function(cell)
{
if(null == this.textValue)
......
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