[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - scripts/unocommands.py
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 24 13:53:23 UTC 2020
scripts/unocommands.py | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
New commits:
commit aa6d05c787b73892dc4e55e922ceb2db93e62220
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Tue Jun 23 14:05:00 2020 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Jun 24 15:53:04 2020 +0200
Add more source files to scripts/unocommands.py
Change-Id: I395f1fdd761f94018c75fa5bf48d64aff0335c27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96881
Tested-by: Andras Timar <andras.timar at collabora.com>
Reviewed-by: Andras Timar <andras.timar 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