Commit 9a1aee07 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51427 954022d7-b5bf-4e40-9824-e11837661b57
parent 6abf29c4
...@@ -3770,22 +3770,70 @@ CPresentation.prototype = ...@@ -3770,22 +3770,70 @@ CPresentation.prototype =
} }
else if ( e.KeyCode == 93 || 57351 == e.KeyCode /*в Opera такой код*/ ) // контекстное меню else if ( e.KeyCode == 93 || 57351 == e.KeyCode /*в Opera такой код*/ ) // контекстное меню
{ {
var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( this.TargetPos.X, this.TargetPos.Y, this.TargetPos.PageNum ); // var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( this.TargetPos.X, this.TargetPos.Y, this.TargetPos.PageNum );
var X_abs = ConvertedPos.X; // var X_abs = ConvertedPos.X;
var Y_abs = ConvertedPos.Y; // var Y_abs = ConvertedPos.Y;
editor.sync_ContextMenuCallback( { Type : c_oAscContextMenuTypes.Common, X_abs : X_abs, Y_abs : Y_abs } );
var type;
if(editor.WordControl.Thumbnails.FocusObjType === FOCUS_OBJECT_MAIN)
{
type = c_oAscContextMenuTypes.Main;
if(this.Slides[this.CurPage] )
{
var pos_x = 0, pos_y = 0;
if(this.Slides[this.CurPage].graphicObjects.selectedObjects.length > 0)
{
pos_x = this.Slides[this.CurPage].graphicObjects.selectedObjects[0].x;
pos_y = this.Slides[this.CurPage].graphicObjects.selectedObjects[0].y;
}
var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( pos_x, pos_y, this.PageNum );
var X_abs = ConvertedPos.X;
var Y_abs = ConvertedPos.Y;
editor.sync_ContextMenuCallback(new CMouseMoveData({ Type : type, X_abs : X_abs, Y_abs : Y_abs }) );
}
}
else
{
type = c_oAscContextMenuTypes.Thumbnails;
}
bUpdateSelection = false; bUpdateSelection = false;
bRetValue = true; bRetValue = true;
} }
else if ( e.KeyCode == 121 && true === e.ShiftKey ) // Shift + F10 - контекстное меню else if ( e.KeyCode == 121 && true === e.ShiftKey ) // Shift + F10 - контекстное меню
{ {
var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( this.TargetPos.X, this.TargetPos.Y, this.TargetPos.PageNum ); //var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( this.TargetPos.X, this.TargetPos.Y, this.TargetPos.PageNum );
var X_abs = ConvertedPos.X; //var X_abs = ConvertedPos.X;
var Y_abs = ConvertedPos.Y; //var Y_abs = ConvertedPos.Y;
//
//editor.sync_ContextMenuCallback( { Type : c_oAscContextMenuTypes.Common, X_abs : X_abs, Y_abs : Y_abs } );
editor.sync_ContextMenuCallback( { Type : c_oAscContextMenuTypes.Common, X_abs : X_abs, Y_abs : Y_abs } );
var type;
if(editor.WordControl.Thumbnails.FocusObjType === FOCUS_OBJECT_MAIN)
{
type = c_oAscContextMenuTypes.Main;
if(this.Slides[this.CurPage] )
{
var pos_x = 0, pos_y = 0;
if(this.Slides[this.CurPage].graphicObjects.selectedObjects.length > 0)
{
pos_x = this.Slides[this.CurPage].graphicObjects.selectedObjects[0].x;
pos_y = this.Slides[this.CurPage].graphicObjects.selectedObjects[0].y;
}
var ConvertedPos = this.DrawingDocument.ConvertCoordsToCursorWR( pos_x, pos_y, this.PageNum );
var X_abs = ConvertedPos.X;
var Y_abs = ConvertedPos.Y;
editor.sync_ContextMenuCallback(new CMouseMoveData({ Type : type, X_abs : X_abs, Y_abs : Y_abs }) );
}
}
else
{
type = c_oAscContextMenuTypes.Thumbnails;
}
bUpdateSelection = false; bUpdateSelection = false;
bRetValue = true; bRetValue = true;
......
...@@ -254,12 +254,12 @@ CGraphicObjects.prototype = { ...@@ -254,12 +254,12 @@ CGraphicObjects.prototype = {
} }
else else
{ {
if(!group_selected_objects[i].canResize()) if(!this.State.group.canResize())
{ {
drawingDocument.SetCursorType("default"); drawingDocument.SetCursorType("default");
return; return;
} }
var card_direction = group_selected_objects[i].getCardDirectionByNum(hit_to_handles); var card_direction = this.State.group.getCardDirectionByNum(hit_to_handles);
drawingDocument.SetCursorType(CURSOR_TYPES_BY_CARD_DIRECTION[card_direction]); drawingDocument.SetCursorType(CURSOR_TYPES_BY_CARD_DIRECTION[card_direction]);
} }
} }
......
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