Commit 8093d1e6 authored by GoshaZotov's avatar GoshaZotov

add function asc_setCellCoord/asc_getCellCoord for AutoFiltersOptions

parent 5fac0445
......@@ -129,8 +129,7 @@
this.Properties = g_oAutoFiltersOptionsProperties;
this.cellId = null;
this.cellPosX = null;
this.cellPosY = null;
this.cellCoord = null;
this.values = null;
this.filter = null;
this.sortVal = null;
......@@ -182,8 +181,7 @@
},
asc_setCellId : function(cellId) { this.cellId = cellId;},
asc_setCellPosX : function(val) { this.cellPosX = val; },
asc_setCellPosY : function(val) { this.cellPosY = val; },
asc_setCellCoord : function(val) { this.cellCoord = val; },
asc_setValues : function(values) { this.values = values; },
asc_setFilterObj : function(filter) { this.filter = filter; },
......@@ -197,8 +195,7 @@
asc_setSortColor : function(val) { this.sortColor = val; },
asc_getCellId : function() { return this.cellId; },
asc_getCellPosX : function() { return this.cellPosX; },
asc_getCellPosY : function() { return this.cellPosY; },
asc_getCellCoord : function() { return this.cellCoord; },
asc_getValues : function() { return this.values; },
asc_getFilterObj : function() { return this.filter; },
......@@ -4892,8 +4889,7 @@
prot["asc_getValues"] = prot.asc_getValues;
prot["asc_getFilterObj"] = prot.asc_getFilterObj;
prot["asc_getCellId"] = prot.asc_getCellId;
prot["asc_getCellPosX"] = prot.asc_getCellPosX;
prot["asc_getCellPosY"] = prot.asc_getCellPosY;
prot["asc_getCellCoord"] = prot.asc_getCellCoord;
prot["asc_getDisplayName"] = prot.asc_getDisplayName;
prot["asc_getIsTextFilter"] = prot.asc_getIsTextFilter;
prot["asc_getColorsFill"] = prot.asc_getColorsFill;
......
......@@ -12839,9 +12839,8 @@
var rangeButton = Asc.Range(autoFilter.Ref.c1 + colId, autoFilter.Ref.r1, autoFilter.Ref.c1 + colId, autoFilter.Ref.r1);
var cellId = ws.autoFilters._rangeToId(rangeButton);
var posX = (this.cols[autoFilter.Ref.c1 + colId].left + this.cols[autoFilter.Ref.c1 + colId].width) / 0.75;
var posY = (this.rows[autoFilter.Ref.r1].top + this.rows[autoFilter.Ref.r1].height) / 0.75;
var cellCoord = this.getCellCoord(autoFilter.Ref.c1, autoFilter.Ref.r1);
//get filter object
var filterObj = new Asc.AutoFilterObj();
......@@ -12926,8 +12925,7 @@
var autoFilterObject = new Asc.AutoFiltersOptions();
autoFilterObject.asc_setSortState(sortVal);
autoFilterObject.asc_setCellPosX(posX);
autoFilterObject.asc_setCellPosY(posY);
autoFilterObject.asc_setCellCoord(cellCoord);
autoFilterObject.asc_setCellId(cellId);
autoFilterObject.asc_setValues(values);
autoFilterObject.asc_setFilterObj(filterObj);
......
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