[Libreoffice-commits] online.git: loleaflet/src
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 17 12:29:36 UTC 2020
loleaflet/src/control/Control.NotebookbarBuilder.js | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit a1345dbebddafeaef9270d7e168041b0da99aaa1
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Fri Jul 17 11:31:04 2020 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Jul 17 14:29:18 2020 +0200
notebookbar: use native hyperlink dialog
Change-Id: If8abe43fba4c46b8273214f54a30b425cf48aeff
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98945
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/loleaflet/src/control/Control.NotebookbarBuilder.js b/loleaflet/src/control/Control.NotebookbarBuilder.js
index 8f65d0b37..707045f71 100644
--- a/loleaflet/src/control/Control.NotebookbarBuilder.js
+++ b/loleaflet/src/control/Control.NotebookbarBuilder.js
@@ -32,6 +32,7 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
this._toolitemHandlers['.uno:Color'] = this._colorControl;
this._toolitemHandlers['.uno:FillColor'] = this._colorControl;
+ this._toolitemHandlers['.uno:HyperlinkDialog'] = this._insertHyperlinkControl;
this._toolitemHandlers['.uno:InsertTable'] = this._insertTableControl;
this._toolitemHandlers['.uno:InsertGraphic'] = this._insertGraphicControl;
this._toolitemHandlers['.uno:InsertAnnotation'] = this._insertAnnotationControl;
@@ -334,6 +335,15 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
return false;
},
+ _insertHyperlinkControl: function(parentContainer, data, builder) {
+ var control = builder._unoToolButton(parentContainer, data, builder);
+
+ $(control.container).unbind('click');
+ $(control.container).click(function () {
+ builder.map.showHyperlinkDialog();
+ });
+ },
+
_insertTableControl: function(parentContainer, data, builder) {
var control = builder._unoToolButton(parentContainer, data, builder);
More information about the Libreoffice-commits
mailing list