Commit 38021ef5 authored by Ilya Kirillov's avatar Ilya Kirillov

Добавлена функция для переназначения Url у картинок.

parent da2ae2bc
...@@ -75,7 +75,19 @@ CDocumentContentBase.prototype.Get_AllImageUrls = function(arrUrls) ...@@ -75,7 +75,19 @@ CDocumentContentBase.prototype.Get_AllImageUrls = function(arrUrls)
return arrUrls; return arrUrls;
}; };
/**
* Переназначаем ссылки на картинки.
* @param {Object} mapUrls - Мап, в котором ключ - это старая ссылка, а значение - новая.
*/
CDocumentContentBase.prototype.Reassign_ImageUrls = function(mapUrls)
{
var arrDrawings = this.Get_AllDrawingObjects();
for (var nIndex = 0, nCount = arrDrawings.length; nIndex < nCount; ++nIndex)
{
var oDrawing = arrDrawings[nIndex];
oDrawing.Reassign_ImageUrls(mapUrls);
}
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Private area // Private area
......
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