loleaflet/html/framed.doc.html           |    2 ++
 loleaflet/src/control/Control.Menubar.js |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 50f4b49da5e6d656dffb690ca0d366c50aed9bf0
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Fri Jul 12 19:14:21 2019 -0400
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Wed Aug 14 19:27:55 2019 +0200

    leaflet: support show/hide of Insert>Section menu entry
    
    Change-Id: I89ccfcb7f9e091b26f1f67ec889556bfc07295a3
    Reviewed-on: https://gerrit.libreoffice.org/77434
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/html/framed.doc.html b/loleaflet/html/framed.doc.html
index 80f842c40..cd91d4f0e 100644
--- a/loleaflet/html/framed.doc.html
+++ b/loleaflet/html/framed.doc.html
@@ -139,6 +139,8 @@
       <button onclick="show_commands('save'); return false;">Show Save 
Commands</button></br>
       <button onclick="hide_commands('print'); return false;">Hide Print 
Commands</button>
       <button onclick="show_commands('print'); return false;">Show Print 
Commands</button></br></br>
+      <button onclick="hide_commands('insertsection'); return false;">Hide 
Insert>Section Commands</button>
+      <button onclick="show_commands('insertsection'); return false;">Show 
Insert>Section Commands</button></br>
       <button onclick="disable_default_uiaction('UI_Save', true); return 
false;">Disable default save action</button></br>
       <button onclick="disable_default_uiaction('UI_Save', false); return 
false;">Enable default save action</button></br></br>
     </form>
diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index fa05f48b7..3d7dbee1e 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -71,7 +71,7 @@ L.Control.Menubar = L.Control.extend({
                                {name: _UNO('.uno:InsertAnnotation', 'text'), 
id: 'insertcomment', type: 'action'},
                                {uno: '.uno:InsertObjectChart'},
                                {type: 'separator'},
-                               {uno: '.uno:InsertSection'},
+                               {uno: '.uno:InsertSection', id: 
'insertsection'},
                                {name: _UNO('.uno:InsertField', 'text'), type: 
'menu', menu: [
                                        {uno: '.uno:InsertPageNumberField'},
                                        {uno: '.uno:InsertPageCountField'},
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to