scripts/unocommands.py | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-)
New commits: commit d1e9caf47052903e54455074d7455a9ee9f41926 Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Tue Jun 23 14:05:00 2020 +0200 Commit: Aron Budea <aron.bu...@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.bu...@collabora.com> Reviewed-by: Aron Budea <aron.bu...@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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits