diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-22 13:11:12 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-26 10:27:44 +0100 |
commit | 004695708fac830282fbffd6aac6dcc72887b43d (patch) | |
tree | 6ba9de8918de522a71de41fd584f7693eb4caa48 /android | |
parent | 718e46c16d8e1749f78f40eeeb54b4f14b375918 (diff) |
android: disable Impress View -> Slide Pane
Change-Id: I5a3c014894fe74781cf050f3cd2ce2bcc0395cb3
Diffstat (limited to 'android')
-rwxr-xr-x | android/mobile-config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/mobile-config.py b/android/mobile-config.py index 93e08c6818eb..aa5d86f65d68 100755 --- a/android/mobile-config.py +++ b/android/mobile-config.py @@ -76,6 +76,7 @@ if __name__ == '__main__': # Don't do pointless Word -> Writer and similar conversions when we have no UI. nsDict = { "component-schema": "{http://openoffice.org/2001/registry}component-schema", + "component-data": "{http://openoffice.org/2001/registry}component-data", "name": "{http://openoffice.org/2001/registry}name", } microsoftImport = '%(component-schema)s[@%(name)s="Common"]/component/group[@%(name)s="Filter"]/group[@%(name)s="Microsoft"]/group[@%(name)s="Import"]/prop' % nsDict @@ -93,6 +94,11 @@ if __name__ == '__main__': for value in prop.findall("value"): value.text = "false" + # Disable Impress View -> Slide Pane + for prop in root.findall('%(component-data)s[@%(name)s="Impress"]/node[@%(name)s="MultiPaneGUI"]/node[@%(name)s="SlideSorterBar"]/node[@%(name)s="Visible"]/prop[@%(name)s="ImpressView"]' % nsDict): + for value in prop.findall("value"): + value.text = "false" + # The namespace prefixes xs and oor are present in attribute *values*, and namespace # declarations for them are needed, even if no actual elements or attributes with these # namespace prefixes are present. Fun. |