Commit edec7804 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

asc_replaceText теперь принимает опции asc_CFindOptions

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56232 954022d7-b5bf-4e40-9824-e11837661b57
parent d3540ac1
......@@ -2345,17 +2345,23 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
return !!d;
},
asc_replaceText: function (findWhat, replaceWith, isReplaceAll, isMatchCase, isWholeCell) {
var temp = new asc.asc_CFindOptions();
temp.findWhat = findWhat;
temp.isMatchCase = isMatchCase;
temp.isWholeCell = isWholeCell;
temp.lookIn = c_oAscFindLookIn.Formulas; // При замене поиск только в формулах
asc_replaceText: function () {
var options = null;
if(1 != arguments.length) {
// Временная заглушка
options = new asc.asc_CFindOptions();
options.findWhat = arguments[0]; //findWhat
options.isMatchCase = arguments[3]; //isMatchCase
options.isWholeCell = arguments[4]; //isWholeCell
options.replaceWith = arguments[1]; //replaceWith
options.isReplaceAll = arguments[2]; //isReplaceAll
} else
options = arguments[0];
temp.replaceWith = replaceWith;
temp.isReplaceAll = isReplaceAll;
options.lookIn = c_oAscFindLookIn.Formulas; // При замене поиск только в формулах
this.wb.replaceCellText(temp);
this.wb.replaceCellText(options);
},
asc_endFindText: function () {
......
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