Commit 675e16b3 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

workbook.dependencyFormulas.delTableName при undo

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66608 954022d7-b5bf-4e40-9824-e11837661b57
parent 839d09c3
......@@ -1195,7 +1195,8 @@ var maxIndividualValues = 10000;
if(cloneData.Ref.isEqual(aWs.TableParts[l].Ref))
{
this._cleanStyleTable(cloneData.Ref);
aWs.TableParts.splice(l,1);
aWs.workbook.dependencyFormulas.delTableName(aWs.TableParts[l].DisplayName,aWs.getName());
aWs.TableParts.splice(l,1);
}
}
}
......@@ -3442,6 +3443,9 @@ var maxIndividualValues = 10000;
}
newFilter.DisplayName = aWs.workbook.dependencyFormulas.getNextTableName(aWs, ref);
//для Redo надо выставлять имя которое было, а не генерить новое
//newFilter.DisplayName = aWs.workbook.dependencyFormulas.addTableName(cloneData.DisplayName, aWs, cloneData.Ref);
newFilter.TableStyleInfo = new TableStyleInfo();
newFilter.TableStyleInfo.Name = style;
......@@ -4085,26 +4089,26 @@ var maxIndividualValues = 10000;
{
aWs.setRowHidden(false, filter.Ref.r1, filter.Ref.r2);
}
},
_openHiddenRowsAfterDeleteColumn: function(autoFilter, colId)
{
var ref = autoFilter.Ref;
var filterColumns = autoFilter.FilterColumns;
var aWs = this._getCurrentWS();
colId = this._getTrueColId(autoFilter, colId);
for(var i = ref.r1 + 1; i <= ref.r2; i++)
{
if(aWs.getRowHidden(i) === false)
continue;
if(!this._hiddenAnotherFilter(filterColumns, colId, i, ref.c1))//filter another button
{
aWs.setRowHidden(false, i, i);
}
}
},
_openHiddenRowsAfterDeleteColumn: function(autoFilter, colId)
{
var ref = autoFilter.Ref;
var filterColumns = autoFilter.FilterColumns;
var aWs = this._getCurrentWS();
colId = this._getTrueColId(autoFilter, colId);
for(var i = ref.r1 + 1; i <= ref.r2; i++)
{
if(aWs.getRowHidden(i) === false)
continue;
if(!this._hiddenAnotherFilter(filterColumns, colId, i, ref.c1))//filter another button
{
aWs.setRowHidden(false, i, i);
}
}
},
_openAllHiddenRowsByFilter: function(filter)
......@@ -4255,11 +4259,11 @@ var maxIndividualValues = 10000;
{
if(this._crossRange(activeCells,range))
{
//если мы находимся в общем фильтре и нажали на кнопку общего фильтра - тогда нет ошибки
if(!(allF[i].getType() === g_nFiltersType.autoFilter && allF[i].Ref.r1 === activeCells.r1))
{
if(!(aWs.AutoFilter && i == 0 && isAll == true)/* && allF[i].AutoFilter !== undefined*/)
num = 'error';
//если мы находимся в общем фильтре и нажали на кнопку общего фильтра - тогда нет ошибки
if(!(allF[i].getType() === g_nFiltersType.autoFilter && allF[i].Ref.r1 === activeCells.r1))
{
if(!(aWs.AutoFilter && i == 0 && isAll == true)/* && allF[i].AutoFilter !== undefined*/)
num = 'error';
}
}
......
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