Commit 6c8a7d40 authored by Alexander.Trofimov's avatar Alexander.Trofimov

restore cells

parent 4616b950
$(function(){
// Import
var CellFormat = AscCommon.CellFormat;
var fGetFormatedText = function(aFormated)
{
var res = "";
......
......@@ -484,6 +484,4 @@ var c_oAscPopUpSelectorType = {
prot['Func'] = prot.Func;
prot['Range'] = prot.Range;
prot['Table'] = prot.Table;
window['Asc']['c_oAscChangeSelectionFormatTable'] = c_oAscChangeSelectionFormatTable;
window['Asc']['c_oAscChangeTableStyleInfo'] = c_oAscChangeTableStyleInfo;
})(window);
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
function getEmptyWorkbook() {
return "XLSY;v2;5958;BAKAAgAAA7kDAAAEzAMAAABaBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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+wB7AAAA+gBAnAAA+wBvAAAAA2oAAAD6AA77AGEAAAADAAAAARgAAAD6AAYAAABhADoAdABpAG4AdAAByK8AAPsBGgAAAPoABwAAAGEAOgBzAGgAYQBkAGUAAbiCAQD7ARwAAAD6AAgAAABhADoAcwBhAHQATQBvAGQAATBXBQD7AF4AAAD6AKCGAQD7AFIAAAADTQAAAPoADvsARAAAAAIAAAABGgAAAPoABwAAAGEAOgBzAGgAYQBkAGUAASBOAAD7ARwAAAD6AAgAAABhADoAcwBhAHQATQBvAGQAARjkAwD7AksAAAD6AAD7AEIAAAD6AAUAAAA1ADAAMAAwADAAAQYAAAAtADgAMAAwADAAMAACBQAAADUAMAAwADAAMAADBgAAADEAOAAwADAAMAAwAPsAIgEAAAQdAQAA+gEB+wDIAAAAAgAAAABcAAAA+gAAAAAA+wBQAAAAA0sAAAD6AA77AEIAAAACAAAAARgAAAD6AAYAAABhADoAdABpAG4AdAABgDgBAPsBHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAAB4JMEAPsAXgAAAPoAoIYBAPsAUgAAAANNAAAA+gAO+wBEAAAAAgAAAAEaAAAA+gAHAAAAYQA6AHMAaABhAGQAZQABMHUAAPsBHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAABQA0DAPsCRwAAAPoAAPsAPgAAAPoABQAAADUAMAAwADAAMAABBQAAADUAMAAwADAAMAACBQAAADUAMAAwADAAMAADBQAAADUAMAAwADAAMAD7BAQAAAAAAAAA";
}
......
......@@ -132,6 +132,8 @@
/** @constructor */
function asc_CAutoFilterInfo() {
this.tableStyleName = null;
this.tableName = null;
this.isApplyAutoFilter = false; // Кнопка очистить фильтр: false - disable, true - pressed button
this.isAutoFilter = false; // Кнопка автофильтр (также влияет на formatTable и Sort). Возможные состояния:
// - null - мы в пересечении с таблицой (но не полностью в ней)
......
......@@ -3180,49 +3180,50 @@ function Woorksheet(wb, _index, sId){
this.aComments = [];
this.aCommentsCoords = [];
var oThis = this;
this.mergeManager = new RangeDataManager(function(data, from, to) {
if (History.Is_On() && (null != from || null != to)) {
if (null != from) {
this.mergeManager = new RangeDataManager(function(data, from, to){
if(History.Is_On() && (null != from || null != to))
{
if(null != from)
from = from.clone();
}
if (null != to)
if(null != to)
to = to.clone();
var oHistoryRange = from;
if (null == oHistoryRange)
if(null == oHistoryRange)
oHistoryRange = to;
History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeMerge, oThis.getId(), oHistoryRange, new UndoRedoData_FromTo(new UndoRedoData_BBox(from), new UndoRedoData_BBox(to)));
}
//расширяем границы
if (null != to) {
if (to.r2 >= oThis.nRowsCount)
if(null != to){
if(to.r2 >= oThis.nRowsCount)
oThis.nRowsCount = to.r2 + 1;
if (to.c2 >= oThis.nColsCount)
if(to.c2 >= oThis.nColsCount)
oThis.nColsCount = to.c2 + 1;
}
});
this.hyperlinkManager = new RangeDataManager(function(data, from, to, oChangeParam) {
if (History.Is_On() && (null != from || null != to)) {
if (null != from)
this.hyperlinkManager = new RangeDataManager(function(data, from, to, oChangeParam){
if(History.Is_On() && (null != from || null != to))
{
if(null != from)
from = from.clone();
if (null != to)
if(null != to)
to = to.clone();
var oHistoryRange = from;
if (null == oHistoryRange)
if(null == oHistoryRange)
oHistoryRange = to;
var oHistoryData = null;
if (null == from || null == to)
if(null == from || null == to)
oHistoryData = data.clone();
History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeHyperlink, oThis.getId(), oHistoryRange, new AscCommonExcel.UndoRedoData_FromToHyperlink(from, to, oHistoryData));
}
if (null != to)
data.Ref = oThis.getRange3(to.r1, to.c1, to.r2, to.c2); else if (oChangeParam && oChangeParam.removeStyle &&
null != data.Ref)
data.Ref = oThis.getRange3(to.r1, to.c1, to.r2, to.c2);
else if (oChangeParam && oChangeParam.removeStyle && null != data.Ref)
data.Ref.cleanFormat();
//расширяем границы
if (null != to) {
if (to.r2 >= oThis.nRowsCount)
if(null != to){
if(to.r2 >= oThis.nRowsCount)
oThis.nRowsCount = to.r2 + 1;
if (to.c2 >= oThis.nColsCount)
if(to.c2 >= oThis.nColsCount)
oThis.nColsCount = to.c2 + 1;
}
});
......@@ -3234,7 +3235,6 @@ function Woorksheet(wb, _index, sId){
this.aFormulaExt = null;
this.autoFilters = AscCommonExcel.AutoFilters !== undefined ? new AscCommonExcel.AutoFilters(this) : null;
this.sparklineGroups = new sparklineGroups();
this.oDrawingOjectsManager = new DrawingObjectsManager(this);
this.contentChanges = new AscCommon.CContentChanges();
......
"use strict";
"use strict";
(
/**
* @param {jQuery} $
......@@ -1615,9 +1615,9 @@
curFilter.SortState = new SortState();
curFilter.SortState.Ref = new Asc.Range(startCol, curFilter.Ref.r1, startCol, maxFilterRow);
curFilter.SortState.SortConditions = [];
curFilter.SortState.SortConditions[0] = new SortCondition();
curFilter.SortState.SortConditions[0] = new AscCommonExcel.SortCondition();
}
curFilter.SortState.SortConditions[0] = new SortCondition();
curFilter.SortState.SortConditions[0] = new AscCommonExcel.SortCondition();
var cellIdRange = new Asc.Range(startCol, filterRef.r1, startCol, filterRef.r1);
......@@ -3658,7 +3658,7 @@
//filter current button
var checkValue = isDateTimeFormat ? val : text;
if (!currentFilterColumn.Top10 && !currentFilterColumn.CustomFiltersObj &&
!currentFilterColumn.ColorFilter && !currentFilterColumn.isHideValue(checkValue, isDateTimeFormat, null, cell))
!currentFilterColumn.ColorFilter && !currentFilterColumn.isHideValue(checkValue, isDateTimeFormat))
{
if(isOpenHiddenRows)
worksheet.setRowHidden(false, i, i);
......
......@@ -5401,14 +5401,14 @@
}
};
WorksheetView.prototype.prepareDepCells = function(se) {
WorksheetView.prototype.prepareDepCells = function ( se ) {
var activeCell = this.activeRange, mc = this.model.getMergedByCell( activeCell.startRow, activeCell.startCol ), c1 = mc ? mc.c1 : activeCell.startCol, r1 = mc ? mc.r1 : activeCell.startRow, c = this._getVisibleCell( c1, r1 ), nodes = (se == AscCommonExcel.c_oAscDrawDepOptions.Master) ? this.model.workbook.dependencyFormulas.getMasterNodes( this.model.getId(), c.getName() ) : this.model.workbook.dependencyFormulas.getSlaveNodes( this.model.getId(), c.getName() );
if (!nodes) {
if ( !nodes ) {
return;
}
if (!this.depDrawCells) {
if ( !this.depDrawCells ) {
this.depDrawCells = {};
}
......@@ -5420,9 +5420,9 @@
else {
var to = {}, to1, id = AscCommonExcel.getVertexId( this.model.getId(), c.getName() );
to[AscCommonExcel.getVertexId( this.model.getId(), c.getName() )] = this.model.workbook.dependencyFormulas.getNode( this.model.getId(), c.getName() );
to1 = this.model.workbook.dependencyFormulas.getNode(this.model.getId(), c.getName());
for (var id2 in nodes) {
if (this.depDrawCells[id2]) {
to1 = this.model.workbook.dependencyFormulas.getNode( this.model.getId(), c.getName() );
for ( var id2 in nodes ) {
if ( this.depDrawCells[id2] ) {
$.extend( this.depDrawCells[id2].to, to )
}
else {
......@@ -8767,7 +8767,7 @@
this.handlers.trigger( "onErrorEvent", c_oAscError.ID.CannotMoveRange, c_oAscError.Level.NoCritical );
this._cleanSelectionMoveRange();
}
else if ( resmove === -1 && this.af_isCheckMoveRange( arnFrom, arnTo ) ) {
else if (resmove === -1) {
var t = this;
this.model.workbook.handlers.trigger( "asc_onConfirmAction", Asc.c_oAscConfirm.ConfirmReplaceRange, function ( can ) {
if ( can ) {
......
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