Commit 491199ec authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

исправлен лок именованных диапазонов, возникавший при любых изменениях не с ИД

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65320 954022d7-b5bf-4e40-9824-e11837661b57
parent 8e5934a8
......@@ -2059,12 +2059,14 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
};
spreadsheet_api.prototype._onUpdateDefinedNames = function(lockElem) {
var dN = this.wbModel.dependencyFormulas.defNameList[lockElem.Element["rangeOrObjectId"]];
if (dN) {
dN.isLock = lockElem["UserId"];
this.handlers.trigger("asc_onRefreshDefNameList");
}
this.handlers.trigger("asc_onLockDefNameManager",c_oAscDefinedNameReason.LockDefNameManager);
if( lockElem.Element.subType == c_oAscLockTypeElemSubType.DefinedNames ){
var dN = this.wbModel.dependencyFormulas.defNameList[lockElem.Element["rangeOrObjectId"]];
if (dN) {
dN.isLock = lockElem["UserId"];
this.handlers.trigger("asc_onRefreshDefNameList");
}
this.handlers.trigger("asc_onLockDefNameManager",c_oAscDefinedNameReason.LockDefNameManager);
}
}
spreadsheet_api.prototype._onUnlockDefName = function() {
......
......@@ -217,7 +217,8 @@ var c_oAscLockTypeElemSubType = {
InsertColumns: 2,
DeleteRows: 3,
InsertRows: 4,
ChangeProperties: 5
ChangeProperties: 5,
DefinedNames: 6
};
var c_oAscRecalcIndexTypes = {
......
......@@ -7642,12 +7642,12 @@
var ret = null;
// Пересчитываем координаты
x *= asc_getcvt( 0/*px*/, 1/*pt*/, this._getPPIX() );
y *= asc_getcvt( 0/*px*/, 1/*pt*/, this._getPPIY() );
y *= asc_getcvt( 0/*px*/, 1/*pt*/, this._getPPIY() );
//если выделена ячейка заголовка ф/т, меняем выделение с ячейки на столбец ф/т
//если выделена вся видимая часть форматированной таблицы, но не выделены последние скрытые строчки
if (null === this.startCellMoveRange)
this.autoFilters.changeSelectionTablePart(this.activeRange);
if (null === this.startCellMoveRange)
this.autoFilters.changeSelectionTablePart(this.activeRange);
var ar = this.activeRange.clone(true);
......@@ -8365,8 +8365,8 @@
{
//показываем плашку для отправки изображений на сервер
api.handlers.trigger("asc_onStartAction", c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
var oObjectsForDownload = GetObjectsForImageDownload(val._aPastedImages);
var oObjectsForDownload = GetObjectsForImageDownload(val._aPastedImages);
var rData = {"id": api.documentId, "c":"imgurls", "vkey": api.documentVKey, "userid": api.documentUserId, "saveindex": g_oDocumentUrls.getMaxIndex(), "data": val._images};
api.fCurCallback = function(input) {
......@@ -8384,15 +8384,15 @@
var name = g_oDocumentUrls.imagePath2Local(elem.path);
aImagesSync.push(name);
var imageElem = oObjectsForDownload && oObjectsForDownload.aBuilderImagesByUrl && oObjectsForDownload.aBuilderImagesByUrl[i] ? oObjectsForDownload.aBuilderImagesByUrl[i] : null;
if(null != imageElem) {
if(imageElem.length)
{
for(var j = 0; j < imageElem.length; j++)
{
if(imageElem[j])
imageElem[j].SetUrl(name);
}
}
if(null != imageElem) {
if(imageElem.length)
{
for(var j = 0; j < imageElem.length; j++)
{
if(imageElem[j])
imageElem[j].SetUrl(name);
}
}
else
imageElem.SetUrl(name);
}
......@@ -9090,7 +9090,7 @@
return;
}
var sheetId = this.model.getId();
var lockInfo = this.collaborativeEditing.getLockInfo(c_oAscLockTypeElem.Object, null, -1, defNameId);
var lockInfo = this.collaborativeEditing.getLockInfo(c_oAscLockTypeElem.Object, c_oAscLockTypeElemSubType.DefinedNames, -1, defNameId);
if (false === this.collaborativeEditing.getCollaborativeEditing()) {
// Пользователь редактирует один: не ждем ответа, а сразу продолжаем редактирование
......
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