Commit db04af1f 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@54571 954022d7-b5bf-4e40-9824-e11837661b57
parent e69ef239
......@@ -5,6 +5,8 @@
this.IsLockObjectsEnable = false;
this.LogicDocument = null;
this.CanvasHitContext = CreateHitControl();
this.m_dTargetSize = 0;
this.m_lCurrentPage = -1;
......@@ -24,10 +26,18 @@
this.IsKeyDownButNoPress = false;
this.bIsUseKeyPress = false;
this.AutoShapesTrackLockPageNum = -1;
}
CDrawingDocument.prototype =
{
AfterLoad : function()
{
this.m_oWordControl = this;
this.LogicDocument = window.editor.WordControl.m_oLogicDocument;
this.LogicDocument.DrawingDocument = this;
},
RenderPage : function(nPageIndex)
{
var _graphics = new CDrawingStream();
......@@ -147,7 +157,7 @@ CDrawingDocument.prototype =
return { X : _return[0], Y : _return[1], Error: _return[2] };
},
// targer
// target
TargetStart : function()
{
this.Native["DD_TargetStart"]();
......@@ -453,6 +463,7 @@ CDrawingDocument.prototype =
// проверки - внутри
this.Native["DD_Overlay_DrawTableOutline"]();
/*
// drawShapes (+ track)
if (this.LogicDocument.DrawingObjects)
{
......@@ -469,6 +480,7 @@ CDrawingDocument.prototype =
this.AutoShapesTrack.CorrectOverlayBounds();
}
}
*/
this.Native["DD_Overlay_DrawTableTrack"]();
this.Native["DD_Overlay_DrawFrameTrack"]();
......@@ -627,6 +639,32 @@ CDrawingDocument.prototype =
var retValue = this.LogicDocument.OnKeyPress(global_keyboardEvent);
this.EndUpdateOverlay();
return retValue;
},
///////////////////////////////////////////
StartTableStylesCheck : function()
{
},
EndTableStylesCheck : function()
{
},
CheckTableStyles : function(tableLook)
{
},
SendControlColors : function()
{
},
SendThemeColorScheme : function()
{
},
DrawImageTextureFillShape : function()
{
},
DrawGuiCanvasTextProps : function()
{
}
};
......
......@@ -229,6 +229,9 @@ function NativeOpenFile()
{
_api = new window["asc_docs_api"]("");
_api.asc_nativeOpenFile(doc_bin);
if (_api.WordControl.m_oDrawingDocument.AfterLoad)
_api.WordControl.m_oDrawingDocument.AfterLoad();
}
else
{
......@@ -251,6 +254,9 @@ function NativeOpenFile2()
{
_api = new window["asc_docs_api"]("");
_api.asc_nativeOpenFile(doc_bin);
if (_api.WordControl.m_oDrawingDocument.AfterLoad)
_api.WordControl.m_oDrawingDocument.AfterLoad();
}
else
{
......@@ -404,4 +410,4 @@ window.native.Call_OnKeyUp = function(e)
window.native.Call_CalculateResume = function()
{
Document_Recalculate_Page();
}
};
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