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"; ...@@ -2345,17 +2345,23 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
return !!d; return !!d;
}, },
asc_replaceText: function (findWhat, replaceWith, isReplaceAll, isMatchCase, isWholeCell) { asc_replaceText: function () {
var temp = new asc.asc_CFindOptions(); var options = null;
temp.findWhat = findWhat; if(1 != arguments.length) {
temp.isMatchCase = isMatchCase; // Временная заглушка
temp.isWholeCell = isWholeCell; options = new asc.asc_CFindOptions();
temp.lookIn = c_oAscFindLookIn.Formulas; // При замене поиск только в формулах 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; options.lookIn = c_oAscFindLookIn.Formulas; // При замене поиск только в формулах
temp.isReplaceAll = isReplaceAll;
this.wb.replaceCellText(temp); this.wb.replaceCellText(options);
}, },
asc_endFindText: function () { 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