Commit e54be59c authored by Alexander.Trofimov's avatar Alexander.Trofimov

add prototype undo/redo class for sparklines

parent f8be270a
......@@ -407,6 +407,7 @@ var editor;
AscCommonExcel.g_oUndoRedoRow = new AscCommonExcel.UndoRedoRowCol(wbModel, true);
AscCommonExcel.g_oUndoRedoComment = new AscCommonExcel.UndoRedoComment(wbModel);
AscCommonExcel.g_oUndoRedoAutoFilters = new AscCommonExcel.UndoRedoAutoFilters(wbModel);
AscCommonExcel.g_oUndoRedoSparklines = new AscCommonExcel.UndoRedoSparklines(wbModel);
};
spreadsheet_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent) {//передаем число соответствующее своему формату. например c_oAscFileType.XLSX
......
......@@ -3854,6 +3854,25 @@ UndoRedoAutoFilters.prototype = {
}
};
function UndoRedoSparklines(wb) {
this.wb = wb;
this.nType = UndoRedoClassTypes.Add(function () {
return AscCommonExcel.g_oUndoRedoSparklines;
});
}
UndoRedoSparklines.prototype.getClassType = function () {
return this.nType;
};
UndoRedoSparklines.prototype.Undo = function (Type, Data, nSheetId) {
this.UndoRedo(Type, Data, nSheetId, true);
};
UndoRedoSparklines.prototype.Redo = function (Type, Data, nSheetId) {
this.UndoRedo(Type, Data, nSheetId, false);
};
UndoRedoSparklines.prototype.UndoRedo = function (Type, Data, nSheetId, bUndo) {
};
//----------------------------------------------------------export----------------------------------------------------
window['AscCommonExcel'] = window['AscCommonExcel'] || {};
window['AscCommonExcel'].UndoRedoItemSerializable = UndoRedoItemSerializable;
......@@ -3883,6 +3902,7 @@ UndoRedoAutoFilters.prototype = {
window['AscCommonExcel'].UndoRedoRowCol = UndoRedoRowCol;
window['AscCommonExcel'].UndoRedoComment = UndoRedoComment;
window['AscCommonExcel'].UndoRedoAutoFilters = UndoRedoAutoFilters;
window['AscCommonExcel'].UndoRedoSparklines = UndoRedoSparklines;
window['AscCommonExcel'].g_oUndoRedoWorkbook = null;
window['AscCommonExcel'].g_oUndoRedoCell = null;
......@@ -3891,4 +3911,5 @@ UndoRedoAutoFilters.prototype = {
window['AscCommonExcel'].g_oUndoRedoCol = null;
window['AscCommonExcel'].g_oUndoRedoComment = null;
window['AscCommonExcel'].g_oUndoRedoAutoFilters = null;
window['AscCommonExcel'].g_oUndoRedoSparklines = null;
})(window);
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