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

Для контекстного меню диаграмм и шейпов(RangeShapeText)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49298 954022d7-b5bf-4e40-9824-e11837661b57
parent ee574ecd
...@@ -4369,15 +4369,21 @@ function DrawingObjects() { ...@@ -4369,15 +4369,21 @@ function DrawingObjects() {
for ( var i = 0; i < aObjects.length; i++ ) { for ( var i = 0; i < aObjects.length; i++ ) {
var obj = aObjects[i]; var obj = aObjects[i];
if (obj.graphicObject.Id == id) { if ( obj.graphicObject.Id == id ) {
if (obj.isChart()) if ( obj.isChart() ) {
if ( _this.controller.curState.id == STATES_ID_CHART_TEXT_ADD )
return c_oAscSelectionType.RangeShapeText;
return c_oAscSelectionType.RangeChart; return c_oAscSelectionType.RangeChart;
}
if (obj.graphicObject.isImage()) if ( obj.graphicObject.isImage() )
return c_oAscSelectionType.RangeImage; return c_oAscSelectionType.RangeImage;
if (obj.graphicObject.isShape() || obj.graphicObject.isGroup()) if ( obj.graphicObject.isShape() || obj.graphicObject.isGroup() ) {
if ( _this.controller.curState.id == STATES_ID_TEXT_ADD )
return c_oAscSelectionType.RangeShapeText;
return c_oAscSelectionType.RangeShape; return c_oAscSelectionType.RangeShape;
}
} }
} }
return undefined; return undefined;
......
...@@ -187,7 +187,8 @@ var c_oAscSelectionType = { ...@@ -187,7 +187,8 @@ var c_oAscSelectionType = {
RangeMax: 4, RangeMax: 4,
RangeImage: 5, RangeImage: 5,
RangeChart: 6, RangeChart: 6,
RangeShape: 7 RangeShape: 7,
RangeShapeText: 8
}; };
var c_oAscLegendMarkerType = { var c_oAscLegendMarkerType = {
......
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