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();
if ( ws.objectRender.selectedGraphicObjectsExists() && ws.objectRender.controller.canAddHyperlink() )
ws.objectRender.controller.insertHyperlink(options);
else {
// На всякий случай проверка (вдруг кто собирается вызвать...) // На всякий случай проверка (вдруг кто собирается вызвать...)
this.wb.closeCellEditor(); this.wb.closeCellEditor();
this.wb.getWorksheet().setSelectionInfo("hyperlink", options); this.wb.getWorksheet().setSelectionInfo("hyperlink", options);
this.wb.restoreFocus(); this.wb.restoreFocus();
}
}, },
asc_insertFormula: function (functionName, autoComplet) { asc_insertFormula: function (functionName, autoComplet) {
......
...@@ -173,7 +173,6 @@ DrawingObjectsController.prototype = ...@@ -173,7 +173,6 @@ DrawingObjectsController.prototype =
} }
}, },
insertHyperlink: function (options) { insertHyperlink: function (options) {
if(typeof this.curState.insertHyperlink === "function") if(typeof this.curState.insertHyperlink === "function")
{ {
...@@ -181,7 +180,9 @@ DrawingObjectsController.prototype = ...@@ -181,7 +180,9 @@ DrawingObjectsController.prototype =
} }
}, },
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