[Libreoffice-commits] online.git: loleaflet/src
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 25 10:52:14 UTC 2020
loleaflet/src/control/Control.NotebookbarBuilder.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit 5e4f9b45541acf44d02dab4945b574feb53d381a
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jun 16 14:10:51 2020 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Jun 25 12:51:56 2020 +0200
notebookbar: styles preview next/prev buttons
Change-Id: I827e84bc36dad3c29178b17c42b2623b69d9786f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97105
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 e344e693f..66c66adf7 100644
--- a/loleaflet/src/control/Control.NotebookbarBuilder.js
+++ b/loleaflet/src/control/Control.NotebookbarBuilder.js
@@ -45,6 +45,9 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
this._toolitemHandlers['.uno:Presentation'] = this._startPresentationControl;
this._toolitemHandlers['.uno:Save'] = this._saveControl;
+ this._toolitemHandlers['up'] = this._toolbarItemControl;
+ this._toolitemHandlers['down'] = this._toolbarItemControl;
+
this._toolitemHandlers['.uno:SelectWidth'] = function() {};
this._toolitemHandlers['.uno:SetOutline'] = function() {};
this._toolitemHandlers['.uno:DesignerDialog'] = function() {};
@@ -374,6 +377,16 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
}
},
+ _toolbarItemControl: function(parentContainer, data, builder) {
+ builder.options.useInLineLabelsForUnoButtons = false;
+ var control = builder._unoToolButton(parentContainer, data, builder);
+
+ $(control.container).unbind('click');
+ $(control.container).click(function () {
+ builder.callback('toolbox', 'click', {id: data.parent.id}, data.command, builder);
+ });
+ },
+
_lineSpacingControl: function(parentContainer, data, builder) {
var control = builder._unoToolButton(parentContainer, data, builder);
More information about the Libreoffice-commits
mailing list