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
...@@ -665,6 +665,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -665,6 +665,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
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
......
...@@ -10796,6 +10796,18 @@ ...@@ -10796,6 +10796,18 @@
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"];
api._loadFonts(fonts, callback); api._loadFonts(fonts, callback);
......
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