summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-06-23 14:05:00 +0200
committerAndras Timar <andras.timar@collabora.com>2020-06-24 09:08:25 +0200
commit000c5a9b41089af0800b83c648c4d6432c64dc71 (patch)
treee978f00b2d16100f8a1410c1e0d349948710036c /scripts
parenttypo: .uno:RigthPara -> .uno:RightPara (diff)
downloadonline-000c5a9b41089af0800b83c648c4d6432c64dc71.tar.gz
online-000c5a9b41089af0800b83c648c4d6432c64dc71.zip
Add more source files to scripts/unocommands.py
Change-Id: I395f1fdd761f94018c75fa5bf48d64aff0335c27 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96940 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/unocommands.py37
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)