Commit 9a5f4048 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

+ selectGraphicObject

+ Overlay.js

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47623 954022d7-b5bf-4e40-9824-e11837661b57
parent 12c5e0e5
......@@ -2023,6 +2023,7 @@ function DrawingObjects() {
var overlayCtx = null;
var shapeCtx = null;
var shapeOverlayCtx = null;
var autoShapeTrack = null;
var aObjects = null;
var minImageWidth = 20;
......@@ -2054,7 +2055,9 @@ function DrawingObjects() {
overlayCtx = currentSheet.overlayCtx;
shapeCtx = currentSheet.shapeCtx;
shapeOverlayCtx = currentSheet.shapeOverlayCtx;
autoShapeTrack = new CAutoshapeTrack();
autoShapeTrack.init( shapeOverlayCtx, 0, 0, shapeOverlayCtx.m_dWidthMM, shapeOverlayCtx.m_dHeightMM, shapeOverlayCtx.m_lWidthPix , shapeOverlayCtx.m_lHeightPix );
isViewerMode = function() { return worksheet._trigger("getViewerMode"); };
aObjects = [];
......@@ -3881,6 +3884,11 @@ function DrawingObjects() {
return response;
}
_this.selectGraphicObject = function() {
if ( autoShapeTrack )
_this.controller.drawSelection(autoShapeTrack);
}
//-----------------------------------------------------------------------------------
// Graphic object mouse events
//-----------------------------------------------------------------------------------
......
......@@ -158,6 +158,7 @@
<!--for shapes-->
<script src="../Word/Drawing/Graphics.js"></script>
<script src="../Word/Drawing/Overlay.js"></script>
<script src="model/DrawingObjects/DrawingObjectsController.js"></script>
<script src="model/DrawingObjects/States.js"></script>
......
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