diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-17 13:00:55 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-17 13:01:41 +0100 |
commit | 3646640458c797498def2810bc282cd873d6b55e (patch) | |
tree | e657cf66fbb2e4e78b50ca191250b03204d71422 /android | |
parent | 7bb1c7397076d9085c62f828cc8868777cd29a94 (diff) |
android: turn off text and table boundaries in the viewer
Change-Id: I9923332372c1a09a734f3c6fd1bbd5989c6dc5d3
Diffstat (limited to 'android')
-rwxr-xr-x | android/mobile-config.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/android/mobile-config.py b/android/mobile-config.py index 3ad495bc6f1d..998184096a40 100755 --- a/android/mobile-config.py +++ b/android/mobile-config.py @@ -75,14 +75,25 @@ if __name__ == '__main__': print "saved %d of %d bytes: %2.f%%" % (saved, total, saved*100.0/total) # Don't do pointless Word -> Writer and similar conversions when we have no UI. - microsoftImport = '%(component-schema)s[@%(name)s="Common"]/component/group[@%(name)s="Filter"]/group[@%(name)s="Microsoft"]/group[@%(name)s="Import"]/prop' % { + nsDict = { "component-schema": "{http://openoffice.org/2001/registry}component-schema", "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 props = root.findall(microsoftImport) for prop in props: prop.findall("value")[0].text = "false" + # Disable View -> Text Boundaries + for prop in root.findall('%(component-schema)s[@%(name)s="UI"]/templates/group[@%(name)s="ColorScheme"]/group[@%(name)s="DocBoundaries"]/prop' % nsDict): + for value in prop.findall("value"): + value.text = "false" + + # Disable Table -> Table Boundaries + for prop in root.findall('%(component-schema)s[@%(name)s="UI"]/templates/group[@%(name)s="ColorScheme"]/group[@%(name)s="TableBoundaries"]/prop' % 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. |