Commit 37403a5d authored by Sergey Konovalov's avatar Sergey Konovalov Committed by Alexey.Golubev

add Cell.getNumberValue

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