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,17 +4369,23 @@ function DrawingObjects() {
for ( var i = 0; i < aObjects.length; i++ ) {
var obj = aObjects[i];
if (obj.graphicObject.Id == id) {
if (obj.isChart())
if ( obj.graphicObject.Id == id ) {
if ( obj.isChart() ) {
if ( _this.controller.curState.id == STATES_ID_CHART_TEXT_ADD )
return c_oAscSelectionType.RangeShapeText;
return c_oAscSelectionType.RangeChart;
}
if (obj.graphicObject.isImage())
if ( obj.graphicObject.isImage() )
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 undefined;
}
......
......@@ -187,7 +187,8 @@ var c_oAscSelectionType = {
RangeMax: 4,
RangeImage: 5,
RangeChart: 6,
RangeShape: 7
RangeShape: 7,
RangeShapeText: 8
};
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