Commit 55b4a6eb authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил в Range функция isFormula

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55307 954022d7-b5bf-4e40-9824-e11837661b57
parent fbb23a21
...@@ -5352,6 +5352,10 @@ Range.prototype.isEmptyTextString=function(){ ...@@ -5352,6 +5352,10 @@ Range.prototype.isEmptyTextString=function(){
var cell = this.worksheet._getCellNoEmpty(this.bbox.r1,this.bbox.c1); var cell = this.worksheet._getCellNoEmpty(this.bbox.r1,this.bbox.c1);
return (null != cell) ? cell.isEmptyTextString() : true; return (null != cell) ? cell.isEmptyTextString() : true;
}; };
Range.prototype.isFormula=function(){
var cell = this.worksheet._getCellNoEmpty(this.bbox.r1,this.bbox.c1);
return (null != cell) ? cell.isFormula() : false;
};
Range.prototype.getFormula=function(){ Range.prototype.getFormula=function(){
var cell = this.worksheet._getCellNoEmpty(this.bbox.r1,this.bbox.c1); var cell = this.worksheet._getCellNoEmpty(this.bbox.r1,this.bbox.c1);
if(null != cell) if(null != cell)
......
...@@ -4325,7 +4325,7 @@ ...@@ -4325,7 +4325,7 @@
sideL : cto.leftSide, sideL : cto.leftSide,
sideR : cto.rightSide, sideR : cto.rightSide,
cellType : cellType, cellType : cellType,
isFormula : c.getFormula().length > 0, isFormula : c.isFormula(),
angle : angle, angle : angle,
textBound : textBound, textBound : textBound,
mc : mc mc : mc
......
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