Commit 6454794f authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

only tabs

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53958 954022d7-b5bf-4e40-9824-e11837661b57
parent 340e7a69
......@@ -4639,7 +4639,6 @@
.restore();
}
}
};
WorksheetView.prototype.prepareDepCells = function (se){
......@@ -6271,6 +6270,7 @@
ret = this._calcActiveRangeOffset();
}
if (!this.isCellEditMode && (sc !== ar.startCol || sr !== ar.startRow || isChangeSelectionShape)) {
if (!this.isSelectionDialogMode) {
this.handlers.trigger("selectionNameChanged", this.getSelectionName(/*bRangeText*/false));
......@@ -7276,7 +7276,6 @@
return;
var range;
var canChangeColWidth = c_oAscCanChangeColWidth.none;
var selectionRange;
var bIsUpdate = true;
if (onlyActive) {
......@@ -7311,7 +7310,6 @@
return border;
}
selectionRange = arn.clone();
History.Create_NewPoint();
History.StartTransaction();
......@@ -7518,8 +7516,8 @@
}
buildRecalc(t.model.workbook);
unLockDraw(t.model.workbook);
arn = selectData[0];
selectionRange = arn.clone(true);
var arn = selectData[0];
var selectionRange = arn.clone(true);
//добавляем автофильтры и форматированные таблицы
if(isLocal === true && val.lStorage && val.lStorage.autoFilters && val.lStorage.autoFilters.length)
......@@ -8789,7 +8787,6 @@
};
switch (prop) {
case "colWidth":
functionModelAction = function () {
pad = t.width_padding * 2 + t.width_1px;
......@@ -8978,6 +8975,7 @@
break;
case "delCell":
var isCheckChangeAutoFilter;
bUndoRedo = val.range != undefined;
if (val && val.range) {
_updateRangeDel = val.range;
......@@ -8988,7 +8986,7 @@
range = t.model.getRange3(_updateRangeDel.r1, _updateRangeDel.c1, _updateRangeDel.r2, _updateRangeDel.c2);
switch (val) {
case c_oAscDeleteOptions.DeleteCellsAndShiftLeft:
var isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftLeft, prop, bUndoRedo);
isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftLeft, prop, bUndoRedo);
if(!isCheckChangeAutoFilter)
return;
......@@ -9013,7 +9011,7 @@
gc_nMaxCol0, _updateRangeDel.r2), null, onChangeWorksheetCallback);
return;
case c_oAscDeleteOptions.DeleteCellsAndShiftTop:
var isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftTop, prop, bUndoRedo);
isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteCellsAndShiftTop, prop, bUndoRedo);
if(!isCheckChangeAutoFilter)
return;
......@@ -9038,7 +9036,7 @@
_updateRangeDel.c2, gc_nMaxRow0), null, onChangeWorksheetCallback);
return;
case c_oAscDeleteOptions.DeleteColumns:
var isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteColumns, prop, bUndoRedo);
isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteColumns, prop, bUndoRedo);
if(!isCheckChangeAutoFilter)
return;
functionModelAction = function () {
......@@ -9060,7 +9058,7 @@
onChangeWorksheetCallback);
return;
case c_oAscDeleteOptions.DeleteRows:
var isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteRows, prop, bUndoRedo);
isCheckChangeAutoFilter = t.autoFilters.isActiveCellsCrossHalfFTable(_updateRangeDel, c_oAscDeleteOptions.DeleteRows, prop, bUndoRedo);
if(!isCheckChangeAutoFilter)
return;
functionModelAction = function () {
......@@ -9445,8 +9443,7 @@
maxC = ar.startCol;
maxR = this.rows.length - 1;
}
}
else {
} else {
// Идем назад с последней
c = this.cols.length - 1;
r = this.rows.length - 1;
......@@ -9552,7 +9549,6 @@
};
WorksheetView.prototype._replaceCellsText = function (aReplaceCells, valueForSearching, options) {
var oSelectionHistory = this.activeRange.clone();
History.Create_NewPoint();
History.StartTransaction();
......@@ -9730,7 +9726,7 @@
var ftext = val.reduce(function (pv,cv) {return pv + cv.text;}, "");
var ret = true;
// ToDo - при вводе формулы в заголовок автофильтра надо писать "0"
c.setValue(ftext, function(r){ ret = r;} );
c.setValue(ftext, function(r){ret = r;});
if(!ret) {
t.isFormulaEditMode = oldMode;
History.EndTransaction();
......
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