Commit 44fdf327 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48844 954022d7-b5bf-4e40-9824-e11837661b57
parent 8ca9361f
...@@ -75,6 +75,10 @@ function asc_docs_api(name) ...@@ -75,6 +75,10 @@ function asc_docs_api(name)
this.pasteImageMap = null; this.pasteImageMap = null;
this.EndActionLoadImages = 0; this.EndActionLoadImages = 0;
this.isSaveFonts_Images = false;
this.saveImageMap = null;
this.canSave = true;//Флаг нужен чтобы не происходило сохранение пока не завершится предыдущее сохранение
this.ServerIdWaitComplete = false; this.ServerIdWaitComplete = false;
this.ServerImagesWaitComplete = false; this.ServerImagesWaitComplete = false;
...@@ -2933,6 +2937,21 @@ asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function() ...@@ -2933,6 +2937,21 @@ asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function()
this.ImageLoader.LoadDocumentImages(this.pasteImageMap, false); this.ImageLoader.LoadDocumentImages(this.pasteImageMap, false);
return; return;
} }
else if (this.isSaveFonts_Images)
{
var _count = 0;
for (var i in this.saveImageMap)
++_count;
if (_count > 0)
{
this.EndActionLoadImages = 2;
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
}
this.ImageLoader.LoadDocumentImages(this.saveImageMap, false);
return;
}
this.GenerateStyles(); this.GenerateStyles();
// открытие после загрузки документа // открытие после загрузки документа
...@@ -2987,7 +3006,20 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function() ...@@ -2987,7 +3006,20 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function()
this.ImageLoader.bIsLoadDocumentFirst = false; this.ImageLoader.bIsLoadDocumentFirst = false;
// размораживаем меню... и начинаем считать документ // размораживаем меню... и начинаем считать документ
if (false === this.isPasteFonts_Images) if (this.isPasteFonts_Images)
{
this.isPasteFonts_Images = false;
this.pasteImageMap = null;
this.pasteCallback();
this.pasteCallback = null;
}
else if (this.isSaveFonts_Images)
{
this.isSaveFonts_Images = false;
this.saveImageMap = null;
this.pre_SaveCallback();
}
else
{ {
this.ServerImagesWaitComplete = true; this.ServerImagesWaitComplete = true;
if (true == this.ServerIdWaitComplete) if (true == this.ServerIdWaitComplete)
...@@ -2995,13 +3027,6 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function() ...@@ -2995,13 +3027,6 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function()
this.asyncServerIdStartLoaded(); this.asyncServerIdStartLoaded();
} }
else
{
this.isPasteFonts_Images = false;
this.pasteImageMap = null;
this.pasteCallback();
this.pasteCallback = null;
}
} }
asc_docs_api.prototype.OpenDocumentEndCallback = function() asc_docs_api.prototype.OpenDocumentEndCallback = function()
...@@ -3122,6 +3147,11 @@ asc_docs_api.prototype.pre_Paste = function(_fonts, _images, callback) ...@@ -3122,6 +3147,11 @@ asc_docs_api.prototype.pre_Paste = function(_fonts, _images, callback)
this.FontLoader.LoadDocumentFonts2(_fonts); this.FontLoader.LoadDocumentFonts2(_fonts);
} }
asc_docs_api.prototype.pre_SaveCallback = function()
{
CollaborativeEditing.OnEnd_Load_Objects();
}
asc_docs_api.prototype.initEvents2MobileAdvances = function() asc_docs_api.prototype.initEvents2MobileAdvances = function()
{ {
this.WordControl.initEvents2MobileAdvances(); this.WordControl.initEvents2MobileAdvances();
......
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