Commit 5b740fd5 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Вставка гиперссылок для шейпов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49369 954022d7-b5bf-4e40-9824-e11837661b57
parent 99088b15
...@@ -2567,10 +2567,15 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2567,10 +2567,15 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}, },
asc_insertHyperlink: function (options) { asc_insertHyperlink: function (options) {
// На всякий случай проверка (вдруг кто собирается вызвать...) var ws = this.wb.getWorksheet();
this.wb.closeCellEditor(); if ( ws.objectRender.selectedGraphicObjectsExists() && ws.objectRender.controller.canAddHyperlink() )
this.wb.getWorksheet().setSelectionInfo("hyperlink", options); ws.objectRender.controller.insertHyperlink(options);
this.wb.restoreFocus(); else {
// На всякий случай проверка (вдруг кто собирается вызвать...)
this.wb.closeCellEditor();
this.wb.getWorksheet().setSelectionInfo("hyperlink", options);
this.wb.restoreFocus();
}
}, },
asc_insertFormula: function (functionName, autoComplet) { asc_insertFormula: function (functionName, autoComplet) {
......
...@@ -173,15 +173,16 @@ DrawingObjectsController.prototype = ...@@ -173,15 +173,16 @@ DrawingObjectsController.prototype =
} }
}, },
insertHyperlink: function (options) { insertHyperlink: function (options) {
if(typeof this.curState.insertHyperlink === "function") if(typeof this.curState.insertHyperlink === "function")
{ {
this.curState.insertHyperlink(options); this.curState.insertHyperlink(options);
} }
}, },
canAddHyperlink: function() {
return true;
},
getParagraphParaPr: function() getParagraphParaPr: function()
{ {
......
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