Commit 9022ee67 authored by GoshaZotov's avatar GoshaZotov

getSelectionRangeValue returns object AscCommonExcel.asc_CSelectionRangeValue

parent 6c9f8abf
......@@ -2216,6 +2216,15 @@
asc_CFormatCellsInfo.prototype.asc_getSeparator = function () {return this.separator;};
asc_CFormatCellsInfo.prototype.asc_getSymbol = function () {return this.symbol;};
function asc_CSelectionRangeValue(){
this.name = null;
this.type = null;
}
asc_CSelectionRangeValue.prototype.asc_setType = function (val) {this.type = val;};
asc_CSelectionRangeValue.prototype.asc_setName = function (val) {this.name = val;};
asc_CSelectionRangeValue.prototype.asc_getType = function () {return this.type;};
asc_CSelectionRangeValue.prototype.asc_getName = function () {return this.name;};
/*
* Export
* -----------------------------------------------------------------------------
......@@ -2396,4 +2405,10 @@
prot["asc_getDecimalPlaces"] = prot.asc_getDecimalPlaces;
prot["asc_getSeparator"] = prot.asc_getSeparator;
prot["asc_getSymbol"] = prot.asc_getSymbol;
window["AscCommonExcel"]["asc_CSelectionRangeValue"] = window["AscCommonExcel"].asc_CSelectionRangeValue = asc_CSelectionRangeValue;
prot = asc_CSelectionRangeValue.prototype;
prot["asc_getType"] = prot.asc_getType;
prot["asc_getName"] = prot.asc_getName;
})(window);
......@@ -6923,13 +6923,19 @@
return this._getColumnTitle(c1) + this._getRowTitle(r1);
};
WorksheetView.prototype.getSelectionRangeValue = function () {
// ToDo проблема с выбором целого столбца/строки
var ar = this.model.selectionRange.getLast().clone(true);
var sName = ar.getAbsName();
return (c_oAscSelectionDialogType.FormatTable === this.selectionDialogType) ? sName :
parserHelp.get3DRef(this.model.getName(), sName);
};
WorksheetView.prototype.getSelectionRangeValue = function () {
// ToDo проблема с выбором целого столбца/строки
var ar = this.model.selectionRange.getLast().clone(true);
var sAbsName = ar.getAbsName();
var sName = (c_oAscSelectionDialogType.FormatTable === this.selectionDialogType) ? sAbsName :
parserHelp.get3DRef(this.model.getName(), sAbsName);
var type = ar.type;
var selectionRangeValueObj = new AscCommonExcel.asc_CSelectionRangeValue();
selectionRangeValueObj.asc_setName(sName);
selectionRangeValueObj.asc_setType(type);
return selectionRangeValueObj;
};
WorksheetView.prototype.getSelectionInfo = function () {
return this.objectRender.selectedGraphicObjectsExists() ? this._getSelectionInfoObject() :
......
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