[Libreoffice-commits] online.git: Branch 'feature/jsdialogs' - loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 26 09:32:31 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 60c7d49480fa5459691f5f5d248060acc007877c
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Sep 26 11:32:02 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Sep 26 11:32:02 2019 +0200
jsdialogs: add dummy line width control
Change-Id: I02a73be820ddeaf6e6f308d05a7388d0e43a13bb
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 164f1aaaa..98605e992 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -40,8 +40,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
this._controlHandlers['toolbox'] = this._containerHandler;
this._controlHandlers['toolitem'] = this._toolitemHandler;
- this._toolitemHandlers['.uno:SelectWidth'] = this._ignoreHandler;
this._toolitemHandlers['.uno:XLineColor'] = this._colorControl;
+ this._toolitemHandlers['.uno:SelectWidth'] = this._lineWidthControl;
this._currentDepth = 0;
},
@@ -51,7 +51,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
var handler = builder._toolitemHandlers[data.command];
if (handler)
- handler(parentContainer, data, this);
+ handler(parentContainer, data, builder);
else
console.warn('Unsupported toolitem type: \"' + data.command + '\"');
}
@@ -283,6 +283,12 @@ L.Control.JSDialogBuilder = L.Control.extend({
return false;
},
+ _lineWidthControl: function(parentContainer, data, builder) {
+ // TODO: send from the core
+ data.children = [ { text: '0.5' } ];
+ builder._spinfieldControl(parentContainer, data, builder);
+ },
+
build: function(parent, data, currentType, currentIsVertival) {
var currentInsertPlace = parent;
var currentHorizontalRow = parent;
More information about the Libreoffice-commits
mailing list