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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49924 954022d7-b5bf-4e40-9824-e11837661b57
parent 8d463eda
...@@ -1451,6 +1451,8 @@ function CEditorPage(api) ...@@ -1451,6 +1451,8 @@ function CEditorPage(api)
// return; // return;
var oWordControl = oThis; var oWordControl = oThis;
if (!global_mouseEvent.IsLocked)
return;
if (oWordControl.DemonstrationManager.Mode) if (oWordControl.DemonstrationManager.Mode)
{ {
......
...@@ -1610,6 +1610,8 @@ function CEditorPage(api) ...@@ -1610,6 +1610,8 @@ function CEditorPage(api)
// return; // return;
var oWordControl = oThis; var oWordControl = oThis;
if (!global_mouseEvent.IsLocked)
return;
if (this.id == "id_viewer" && oThis.m_oOverlay.HtmlElement.style.display == "block" && undefined == bIsWindow) if (this.id == "id_viewer" && oThis.m_oOverlay.HtmlElement.style.display == "block" && undefined == bIsWindow)
return; return;
......
...@@ -4801,7 +4801,7 @@ asc_docs_api.prototype.AddImageUrlAction = function(url, imgProp) ...@@ -4801,7 +4801,7 @@ asc_docs_api.prototype.AddImageUrlAction = function(url, imgProp)
} }
else else
{ {
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = function(_image) this.asyncImageEndLoaded2 = function(_image)
{ {
var _w = Math.max(1, Page_Width - (X_Left_Margin + X_Right_Margin)); var _w = Math.max(1, Page_Width - (X_Left_Margin + X_Right_Margin));
...@@ -4846,7 +4846,7 @@ asc_docs_api.prototype.AddImageUrlAction = function(url, imgProp) ...@@ -4846,7 +4846,7 @@ asc_docs_api.prototype.AddImageUrlAction = function(url, imgProp)
this.WordControl.m_oLogicDocument.Add_InlineImage(_w, _h, src, null, true); this.WordControl.m_oLogicDocument.Add_InlineImage(_w, _h, src, null, true);
} }
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = null; this.asyncImageEndLoaded2 = null;
} }
...@@ -4999,7 +4999,7 @@ asc_docs_api.prototype.ShapeApply = function(shapeProps) ...@@ -4999,7 +4999,7 @@ asc_docs_api.prototype.ShapeApply = function(shapeProps)
} }
else else
{ {
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
var oProp = shapeProps; var oProp = shapeProps;
this.asyncImageEndLoaded2 = function(_image) this.asyncImageEndLoaded2 = function(_image)
...@@ -5007,7 +5007,7 @@ asc_docs_api.prototype.ShapeApply = function(shapeProps) ...@@ -5007,7 +5007,7 @@ asc_docs_api.prototype.ShapeApply = function(shapeProps)
this.WordControl.m_oLogicDocument.ShapeApply(oProp); this.WordControl.m_oLogicDocument.ShapeApply(oProp);
this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url); this.WordControl.m_oDrawingDocument.DrawImageTextureFillShape(image_url);
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = null; this.asyncImageEndLoaded2 = null;
} }
} }
...@@ -5626,7 +5626,7 @@ asc_docs_api.prototype.asyncFontsDocumentStartLoaded = function() ...@@ -5626,7 +5626,7 @@ asc_docs_api.prototype.asyncFontsDocumentStartLoaded = function()
// здесь прокинуть евент о заморозке меню // здесь прокинуть евент о заморозке меню
// и нужно вывести информацию в статус бар // и нужно вывести информацию в статус бар
if (this.isPasteFonts_Images) if (this.isPasteFonts_Images)
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadFont);
else if (this.isSaveFonts_Images) else if (this.isSaveFonts_Images)
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont); this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont);
else else
...@@ -5667,7 +5667,7 @@ asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function() ...@@ -5667,7 +5667,7 @@ asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function()
{ {
// все, шрифты загружены. Теперь нужно подгрузить картинки // все, шрифты загружены. Теперь нужно подгрузить картинки
if (this.isPasteFonts_Images) if (this.isPasteFonts_Images)
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont); this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadFont);
else if (this.isSaveFonts_Images) else if (this.isSaveFonts_Images)
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont); this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont);
else else
...@@ -5683,7 +5683,7 @@ asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function() ...@@ -5683,7 +5683,7 @@ asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function()
if (_count > 0) if (_count > 0)
{ {
this.EndActionLoadImages = 2; this.EndActionLoadImages = 2;
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
} }
var _oldAsyncLoadImages = this.ImageLoader.bIsAsyncLoadDocumentImages; var _oldAsyncLoadImages = this.ImageLoader.bIsAsyncLoadDocumentImages;
...@@ -5888,6 +5888,9 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function() ...@@ -5888,6 +5888,9 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function()
} }
else if (this.EndActionLoadImages == 2) else if (this.EndActionLoadImages == 2)
{ {
if (this.isPasteFonts_Images)
this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadImage);
else
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage); this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
} }
......
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