diff options
-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. |