[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - android/mobile-config.py

Miklos Vajna vmiklos at collabora.co.uk
Thu Jan 22 04:12:14 PST 2015


 android/mobile-config.py |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit e12d566b9563272b5bde75099977e8c2a7084ed0
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Jan 22 13:11:12 2015 +0100

    android: disable Impress View -> Slide Pane
    
    Change-Id: I5a3c014894fe74781cf050f3cd2ce2bcc0395cb3

diff --git a/android/mobile-config.py b/android/mobile-config.py
index 93e08c6..aa5d86f 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.


More information about the Libreoffice-commits mailing list