loleaflet/css/toolbar.css | 2 ++ loleaflet/js/toolbar.js | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-)
New commits: commit 46b4c62139fd031d0504447c82c0e640e0552e29 Author: Jan Holesovsky <ke...@collabora.com> Date: Thu Jun 28 21:33:34 2018 +0200 Cell borders: Implement the 'More...' button. Change-Id: I3551cec69cf1e4dca02c0fcdbee23a4e06b1e36a diff --git a/loleaflet/css/toolbar.css b/loleaflet/css/toolbar.css index 788dc4e10..d733fe095 100644 --- a/loleaflet/css/toolbar.css +++ b/loleaflet/css/toolbar.css @@ -410,6 +410,8 @@ button.leaflet-control-search-next .w2ui-icon.frame10 { background: url('images/fr010.svg') no-repeat center !important; } .w2ui-icon.frame11 { background: url('images/fr011.svg') no-repeat center !important; } .w2ui-icon.frame12 { background: url('images/fr012.svg') no-repeat center !important; } +.w2ui-icon.frame13 { width: 108px !important; } +#div-frame13 { width: 102px; height: 18px; text-align: center; display: table-cell; vertical-align: middle; cursor: default; } .w2ui-icon.accepttrackedchanges{ background: url('images/lc_accepttrackedchanges.svg') no-repeat center !important; } .w2ui-icon.alignblock{ background: url('images/lc_alignblock.svg') no-repeat center !important; } diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js index b336171b3..34382ea36 100644 --- a/loleaflet/js/toolbar.js +++ b/loleaflet/js/toolbar.js @@ -278,6 +278,8 @@ function setBorders(left, right, bottom, top, horiz, vert) { function setBorderStyle(num) { switch (num) { + case 0: map.sendUnoCommand('.uno:FormatCellBorders'); break; + case 1: setBorders(0, 0, 0, 0, 0, 0); break; case 2: setBorders(1, 0, 0, 0, 0, 0); break; case 3: setBorders(0, 1, 0, 0, 0, 0); break; @@ -642,7 +644,8 @@ function createToolbar() { '<td class="w2ui-tb-image w2ui-icon frame06" onclick="setBorderStyle(6)"></td><td class="w2ui-tb-image w2ui-icon frame07" onclick="setBorderStyle(7)"></td>' + '<td class="w2ui-tb-image w2ui-icon frame08" onclick="setBorderStyle(8)"></td></tr><tr><td class="w2ui-tb-image w2ui-icon frame09" onclick="setBorderStyle(9)"></td>' + '<td class="w2ui-tb-image w2ui-icon frame10" onclick="setBorderStyle(10)"></td><td class="w2ui-tb-image w2ui-icon frame11" onclick="setBorderStyle(11)"></td>' + - '<td class="w2ui-tb-image w2ui-icon frame12" onclick="setBorderStyle(12)"></td></tr></table>' + '<td class="w2ui-tb-image w2ui-icon frame12" onclick="setBorderStyle(12)"></td></tr><tr>' + + '<td colspan="4" class="w2ui-tb-image w2ui-icon frame13" onclick="setBorderStyle(0)"><div id="div-frame13">' + _('More...') + '</div></td></tr></table>' }, {type: 'drop', id: 'insertshapes', img: 'basicshapes_ellipse', hint: _('Insert shapes'), overlay: {onShow: insertShapes}, html: '<div id="insertshape-wrapper"><div id="insertshape-popup" class="insertshape-pop ui-widget ui-widget-content ui-corner-all"><div class="insertshape-grid"></div></div></div>'}, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits