Commit f14a4684 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Merged revision(s) r64233, r64234 from...

Merged revision(s) r64233, r64234 from AVS/Sources/TeamlabOffice/branches/OfficeWebUnion* delete handleMessage* add ;

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64467 954022d7-b5bf-4e40-9824-e11837661b57
parent 35d6bca0
......@@ -3581,26 +3581,6 @@ function CEditorPage(api)
}
}
var _message_update = "zero_delay_update";
function handleMessage(event)
{
if (event.source == window && event.data == _message_update)
{
var oWordControl = editor.WordControl;
event.stopPropagation();
oWordControl.OnPaint();
if (null != oWordControl.m_oLogicDocument)
{
oWordControl.m_oDrawingDocument.UpdateTargetFromPaint = true;
oWordControl.m_oLogicDocument.CheckTargetUpdate();
oWordControl.m_oDrawingDocument.UpdateTargetFromPaint = false;
//setTimeout("oWordControl.OnPaint();", 10);
}
}
}
//if(window.addEventListener)
// window.addEventListener("message", handleMessage, true);
function sendStatus(Message)
{
editor.sync_StatusMessage(Message);
......
......@@ -3174,7 +3174,7 @@ asc_docs_api.prototype.AddTextArt = function(nStyle)
if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props) === false) {
this.WordControl.m_oLogicDocument.Add_TextArt(nStyle);
}
}
};
asc_docs_api.prototype.canGroup = function()
......
......@@ -4246,24 +4246,6 @@ function CEditorPage(api)
}
var _message_update = "zero_delay_update";
function handleMessage(event)
{
if (event.source == window && event.data == _message_update)
{
var oWordControl = editor.WordControl;
event.stopPropagation();
oWordControl.OnPaint();
if (null != oWordControl.m_oLogicDocument)
{
oWordControl.m_oDrawingDocument.UpdateTargetFromPaint = true;
oWordControl.m_oLogicDocument.CheckTargetUpdate();
oWordControl.m_oDrawingDocument.UpdateTargetFromPaint = false;
//setTimeout("oWordControl.OnPaint();", 10);
}
}
}
//if(window.addEventListener)
// window.addEventListener("message", handleMessage, true);
function sendStatus(Message)
{
......
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