diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-06-23 14:05:00 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-06-24 15:53:04 +0200 |
commit | aa6d05c787b73892dc4e55e922ceb2db93e62220 (patch) | |
tree | 3c29ebf04b1d0e1837a7345128fa2ce52c0d6c93 | |
parent | loleaflet: update UNO command translations (diff) | |
download | online-aa6d05c787b73892dc4e55e922ceb2db93e62220.tar.gz online-aa6d05c787b73892dc4e55e922ceb2db93e62220.zip |
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@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rwxr-xr-x | scripts/unocommands.py | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/scripts/unocommands.py b/scripts/unocommands.py index 59aa19d84a..549216c7fd 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) |