Commit 8e87f009 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

добавил в api функцию очистки а/ф(форматированных таблицы) от примененных фильтров/сортировки

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57587 954022d7-b5bf-4e40-9824-e11837661b57
parent 43e1932b
...@@ -664,7 +664,12 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -664,7 +664,12 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
var ws = this.wb.getWorksheet(); var ws = this.wb.getWorksheet();
return ws.getAddFormatTableOptions(); return ws.getAddFormatTableOptions();
}, },
asc_clearFilter: function(){
var ws = this.wb.getWorksheet();
return ws.clearFilter();
},
// Выставление интервала автосохранения (0 - означает, что автосохранения нет) // Выставление интервала автосохранения (0 - означает, что автосохранения нет)
asc_setAutoSaveGap: function (autoSaveGap) { asc_setAutoSaveGap: function (autoSaveGap) {
if (typeof autoSaveGap === "number") { if (typeof autoSaveGap === "number") {
...@@ -3716,6 +3721,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -3716,6 +3721,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
prot["asc_applyAutoFilter"] = prot.asc_applyAutoFilter; prot["asc_applyAutoFilter"] = prot.asc_applyAutoFilter;
prot["asc_sortColFilter"] = prot.asc_sortColFilter; prot["asc_sortColFilter"] = prot.asc_sortColFilter;
prot["asc_getAddFormatTableOptions"] = prot.asc_getAddFormatTableOptions; prot["asc_getAddFormatTableOptions"] = prot.asc_getAddFormatTableOptions;
prot["asc_clearFilter"] = prot.asc_clearFilter;
// Drawing objects interface // Drawing objects interface
......
...@@ -10795,6 +10795,18 @@ ...@@ -10795,6 +10795,18 @@
var ar = this.activeRange.clone(true); var ar = this.activeRange.clone(true);
return this.autoFilters.getAddFormatTableOptions(ar); return this.autoFilters.getAddFormatTableOptions(ar);
}; };
WorksheetView.prototype.clearFilter = function () {
var t = this;
var ar = this.activeRange.clone(true);
var onChangeAutoFilterCallback = function (isSuccess) {
if (false === isSuccess)
return;
//t.autoFilters.isApplyAutoFilterInCell(activeCell, clean);
};
this._isLockedAll (onChangeAutoFilterCallback);
};
WorksheetView.prototype._loadFonts = function (fonts, callback) { WorksheetView.prototype._loadFonts = function (fonts, callback) {
var api = window["Asc"]["editor"]; var api = window["Asc"]["editor"];
......
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