Commit 1839df88 authored by Sergey Luzyanin's avatar Sergey Luzyanin

double click on ole objects

parent 3127f59b
......@@ -85,6 +85,27 @@ DrawingObjectsController.prototype.getColorMap = function()
return AscFormat.G_O_DEFAULT_COLOR_MAP;
};
DrawingObjectsController.prototype.handleOleObjectDoubleClick = function(drawing, oleObject, e, x, y, pageIndex)
{
var oPresentation = editor && editor.WordControl && editor.WordControl.m_oLogicDocument;
if(oPresentation && false === editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Drawing_Props))
{
var pluginData = new Asc.CPluginData();
pluginData.setAttribute("data", oleObject.m_sData);
pluginData.setAttribute("guid", oleObject.m_sApplicationId);
pluginData.setAttribute("width", oleObject.extX);
pluginData.setAttribute("height", oleObject.extY);
pluginData.setAttribute("widthPix", oleObject.m_nPixWidth);
pluginData.setAttribute("heightPix", oleObject.m_nPixHeight);
pluginData.setAttribute("objectId", oleObject.Id);
editor.asc_pluginRun(oleObject.m_sApplicationId, 0, pluginData);
}
this.changeCurrentState(new AscFormat.NullState(this));
this.oPresentation.OnMouseUp(e, x, y, pageIndex);
},
DrawingObjectsController.prototype.checkSelectedObjectsAndCallback = function(callback, args, bNoSendProps, nHistoryPointType)
{
var check_type = AscCommon.changestype_Drawing_Props, comment;
......
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