Commit 671f5329 authored by Igor.Zotov's avatar Igor.Zotov

убрал неиспользуемый параметр из insertColumn/insertRow

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59300 954022d7-b5bf-4e40-9824-e11837661b57
parent 1bdb52da
...@@ -1250,21 +1250,14 @@ ...@@ -1250,21 +1250,14 @@
} }
}, },
//при вставке пользователем колонки изменяем фильтры //при вставке пользователем колонки изменяем фильтры
insertColumn: function(type, val, ar, insertType) insertColumn: function(type, val, insertType)
{ {
var activeCells; var activeCells;
var DeleteColumns = ((insertType == c_oAscDeleteOptions.DeleteColumns && type == 'delCell') || insertType == c_oAscInsertOptions.InsertColumns) ? true : false; var DeleteColumns = ((insertType == c_oAscDeleteOptions.DeleteColumns && type == 'delCell') || insertType == c_oAscInsertOptions.InsertColumns) ? true : false;
if(typeof val == 'object')
{
activeCells = val.clone(); activeCells = val.clone();
val = activeCells.c2 - activeCells.c1 + 1; val = activeCells.c2 - activeCells.c1 + 1;
}
else
{
activeCells = ar;
if(!val)
val = activeCells.c2 - activeCells.c1 + 1;
}
if(DeleteColumns)//в случае, если удаляем столбцы, тогда расширяем активную область область по всем строкам if(DeleteColumns)//в случае, если удаляем столбцы, тогда расширяем активную область область по всем строкам
{ {
...@@ -1284,21 +1277,13 @@ ...@@ -1284,21 +1277,13 @@
this._changeFiltersAfterColumn(colInsert,val,'insCol',activeCells, insertType); this._changeFiltersAfterColumn(colInsert,val,'insCol',activeCells, insertType);
}, },
//при вставке пользователем строки изменяем фильтры //при вставке пользователем строки изменяем фильтры
insertRows: function(type, val, ar, insertType) insertRows: function(type, val, insertType)
{ {
var activeCells; var activeCells;
var DeleteRows = ((insertType == c_oAscDeleteOptions.DeleteRows && type == 'delCell') || insertType == c_oAscInsertOptions.InsertRows) ? true : false; var DeleteRows = ((insertType == c_oAscDeleteOptions.DeleteRows && type == 'delCell') || insertType == c_oAscInsertOptions.InsertRows) ? true : false;
if(typeof val == 'object')
{
activeCells = val.clone(); activeCells = val.clone();
val = activeCells.r2 - activeCells.r1 + 1; val = activeCells.r2 - activeCells.r1 + 1;
}
else
{
activeCells = ar;
if(!val)
val = activeCells.r2 - activeCells.r1 + 1;
}
if(DeleteRows)//в случае, если удаляем строки, тогда расширяем активную область область по всем столбцам if(DeleteRows)//в случае, если удаляем строки, тогда расширяем активную область область по всем столбцам
{ {
......
...@@ -9429,7 +9429,7 @@ ...@@ -9429,7 +9429,7 @@
case "insColBefore": case "insColBefore":
functionModelAction = function () { functionModelAction = function () {
fullRecalc = true; fullRecalc = true;
t.autoFilters.insertColumn(prop, val, arn); t.autoFilters.insertColumn(prop, val);
t.model.insertColsBefore(arn.c1, val); t.model.insertColsBefore(arn.c1, val);
}; };
oChangeData.added = new asc_Range(arn.c1, 0, arn.c1 + val - 1, gc_nMaxRow0); oChangeData.added = new asc_Range(arn.c1, 0, arn.c1 + val - 1, gc_nMaxRow0);
...@@ -9439,7 +9439,7 @@ ...@@ -9439,7 +9439,7 @@
case "insColAfter": case "insColAfter":
functionModelAction = function () { functionModelAction = function () {
fullRecalc = true; fullRecalc = true;
t.autoFilters.insertColumn(prop, val, arn); t.autoFilters.insertColumn(prop, val);
t.model.insertColsAfter(arn.c2, val); t.model.insertColsAfter(arn.c2, val);
}; };
oChangeData.added = new asc_Range(arn.c2, 0, arn.c2 + val - 1, gc_nMaxRow0); oChangeData.added = new asc_Range(arn.c2, 0, arn.c2 + val - 1, gc_nMaxRow0);
...@@ -9546,7 +9546,7 @@ ...@@ -9546,7 +9546,7 @@
fullRecalc = true; fullRecalc = true;
if(isCheckChangeAutoFilter === true) if(isCheckChangeAutoFilter === true)
{ {
t.autoFilters.insertColumn(prop, _updateRangeIns, arn); t.autoFilters.insertColumn(prop, _updateRangeIns);
} }
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
...@@ -9571,7 +9571,7 @@ ...@@ -9571,7 +9571,7 @@
fullRecalc = true; fullRecalc = true;
if(isCheckChangeAutoFilter === true) if(isCheckChangeAutoFilter === true)
{ {
t.autoFilters.insertRows(prop,_updateRangeIns, _updateRangeIns); t.autoFilters.insertRows(prop,_updateRangeIns);
} }
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
...@@ -9592,7 +9592,7 @@ ...@@ -9592,7 +9592,7 @@
t.model.insertColsBefore(_updateRangeIns.c1, _updateRangeIns.c2 - _updateRangeIns.c1 + 1); t.model.insertColsBefore(_updateRangeIns.c1, _updateRangeIns.c2 - _updateRangeIns.c1 + 1);
t.autoFilters.insertColumn(prop, _updateRangeIns, arn, c_oAscInsertOptions.InsertColumns); t.autoFilters.insertColumn(prop, _updateRangeIns, c_oAscInsertOptions.InsertColumns);
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
...@@ -9612,7 +9612,7 @@ ...@@ -9612,7 +9612,7 @@
fullRecalc = true; fullRecalc = true;
t.model.insertRowsBefore(_updateRangeIns.r1, _updateRangeIns.r2 - _updateRangeIns.r1 + 1); t.model.insertRowsBefore(_updateRangeIns.r1, _updateRangeIns.r2 - _updateRangeIns.r1 + 1);
t.autoFilters.insertRows(prop,_updateRangeIns, arn, c_oAscInsertOptions.InsertRows); t.autoFilters.insertRows(prop,_updateRangeIns, c_oAscInsertOptions.InsertRows);
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
...@@ -9650,7 +9650,7 @@ ...@@ -9650,7 +9650,7 @@
if (range.deleteCellsShiftLeft()) { if (range.deleteCellsShiftLeft()) {
fullRecalc = true; fullRecalc = true;
if(isCheckChangeAutoFilter === true) if(isCheckChangeAutoFilter === true)
t.autoFilters.insertColumn(prop, _updateRangeDel, arn, c_oAscDeleteOptions.DeleteCellsAndShiftLeft); t.autoFilters.insertColumn(prop, _updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftLeft);
t.cellCommentator.updateCommentsDependencies(false, val, _updateRangeDel); t.cellCommentator.updateCommentsDependencies(false, val, _updateRangeDel);
t.objectRender.updateDrawingObject(false, val, _updateRangeDel); t.objectRender.updateDrawingObject(false, val, _updateRangeDel);
} }
...@@ -9677,7 +9677,7 @@ ...@@ -9677,7 +9677,7 @@
if (range.deleteCellsShiftUp()) { if (range.deleteCellsShiftUp()) {
fullRecalc = true; fullRecalc = true;
if(isCheckChangeAutoFilter === true) if(isCheckChangeAutoFilter === true)
t.autoFilters.insertRows(prop, _updateRangeDel, _updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftTop); t.autoFilters.insertRows(prop, _updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftTop);
t.cellCommentator.updateCommentsDependencies(false, val, _updateRangeDel); t.cellCommentator.updateCommentsDependencies(false, val, _updateRangeDel);
t.objectRender.updateDrawingObject(false, val, _updateRangeDel); t.objectRender.updateDrawingObject(false, val, _updateRangeDel);
} }
...@@ -9702,7 +9702,7 @@ ...@@ -9702,7 +9702,7 @@
History.Create_NewPoint(); History.Create_NewPoint();
History.StartTransaction(); History.StartTransaction();
t.model.removeCols(_updateRangeDel.c1, _updateRangeDel.c2); t.model.removeCols(_updateRangeDel.c1, _updateRangeDel.c2);
t.autoFilters.insertColumn(prop,_updateRangeDel, arn, c_oAscDeleteOptions.DeleteColumns); t.autoFilters.insertColumn(prop,_updateRangeDel, c_oAscDeleteOptions.DeleteColumns);
History.EndTransaction(); History.EndTransaction();
t.objectRender.updateDrawingObject(false, val, _updateRangeDel); t.objectRender.updateDrawingObject(false, val, _updateRangeDel);
...@@ -9727,7 +9727,7 @@ ...@@ -9727,7 +9727,7 @@
History.Create_NewPoint(); History.Create_NewPoint();
History.StartTransaction(); History.StartTransaction();
t.model.removeRows(_updateRangeDel.r1, _updateRangeDel.r2); t.model.removeRows(_updateRangeDel.r1, _updateRangeDel.r2);
t.autoFilters.insertRows(prop,_updateRangeDel, arn, c_oAscDeleteOptions.DeleteRows); t.autoFilters.insertRows(prop,_updateRangeDel, c_oAscDeleteOptions.DeleteRows);
History.EndTransaction(); History.EndTransaction();
t.objectRender.updateDrawingObject(false, val, _updateRangeDel); t.objectRender.updateDrawingObject(false, val, _updateRangeDel);
......
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