Kaydet (Commit) 00469570 authored tarafından Miklos Vajna's avatar Miklos Vajna

android: disable Impress View -> Slide Pane

Change-Id: I5a3c014894fe74781cf050f3cd2ce2bcc0395cb3
üst 718e46c1
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment