[Libreoffice-commits] online.git: Branch 'libreoffice-7-0' - scripts/unocommands.py

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 24 13:02:38 UTC 2020


 scripts/unocommands.py |   37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

New commits:
commit d1e9caf47052903e54455074d7455a9ee9f41926
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Tue Jun 23 14:05:00 2020 +0200
Commit:     Aron Budea <aron.budea at collabora.com>
CommitDate: Wed Jun 24 15:02:20 2020 +0200

    Add more source files to scripts/unocommands.py
    
    Change-Id: I395f1fdd761f94018c75fa5bf48d64aff0335c27
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96882
    Tested-by: Aron Budea <aron.budea at collabora.com>
    Reviewed-by: Aron Budea <aron.budea at collabora.com>

diff --git a/scripts/unocommands.py b/scripts/unocommands.py
index 59aa19d84..549216c7f 100755
--- a/scripts/unocommands.py
+++ b/scripts/unocommands.py
@@ -123,12 +123,47 @@ def extractContextCommands(path):
 def extractToolbarCommands(path):
     commands = []
 
-    # extract from the menu specifications
+    # extract from the toolbars
     f = open(path + '/loleaflet/src/control/Control.Toolbar.js', 'r')
     for line in f:
         if line.find("_UNO(") >= 0:
             commands += commandFromMenuLine(line)
 
+    f = open(path + '/loleaflet/src/control/Control.MobileBottomBar.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
+    f = open(path + '/loleaflet/src/control/Control.MobileTopBar.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
+    f = open(path + '/loleaflet/src/control/Control.NotebookbarBuilder.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
+    f = open(path + '/loleaflet/src/control/Control.PresentationBar.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
+    f = open(path + '/loleaflet/src/control/Control.SearchBar.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
+    f = open(path + '/loleaflet/src/control/Control.StatusBar.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
+    f = open(path + '/loleaflet/src/control/Control.TopToolbar.js', 'r')
+    for line in f:
+        if line.find("_UNO(") >= 0:
+            commands += commandFromMenuLine(line)
+
     # may the list unique
     return set(commands)
 


More information about the Libreoffice-commits mailing list