Commit fea586eb authored by Sergey Konovalov's avatar Sergey Konovalov

remove StyleManager.setNumFormat

parent 735acb3b
......@@ -4973,7 +4973,7 @@ Woorksheet.prototype.isApplyFilterBySheet = function(){
this.oValue.cleanCache();
};
Cell.prototype.setNumFormat=function(val){
var oRes = this.ws.workbook.oStyleManager.setNumFormat(this, val);
var oRes = this.ws.workbook.oStyleManager.setNum(this, new AscCommonExcel.Num({f:val}));
if(History.Is_On() && oRes.oldVal != oRes.newVal)
History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Num, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal));
this.compiledXfs = null;
......
......@@ -1839,30 +1839,6 @@ StyleManager.prototype =
}
return oRes;
},
setNumFormat : function(oItemWithXfs, val)
{
var xfs = oItemWithXfs.xfs;
var oRes = {newVal: val, oldVal: null};
if(null != xfs && null != xfs.num)
oRes.oldVal = xfs.num.getFormat();
else
oRes.oldVal = g_oDefaultFormat.Num.getFormat();
if(null == val)
{
if(null != xfs) {
xfs = this._prepareSetReference(oItemWithXfs);
xfs.num = null;
}
}
else
{
xfs = this._prepareSet(oItemWithXfs);
if(null == xfs.num)
xfs.num = g_oDefaultFormat.Num.clone();
xfs.num.setFormat(val);
}
return oRes;
},
setNum : function(oItemWithXfs, val)
{
var xfs = oItemWithXfs.xfs;
......
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