#NEWLINE# def load( self , filepath ) : #NEWLINE# #INDENT# ' Loads an ODT file. ' #NEWLINE# zip = zipfile . ZipFile ( self ) #NEWLINE# styles_doc = xml . dom . minidom . parseString ( zip . read ( 'styles.xml' ) ) #NEWLINE# self . processFontDeclarations ( styles_doc . getElementsByTagName ( 'office:font-face-decls' ) [ 0 ] ) #NEWLINE# self . processStyles ( styles_doc . getElementsByTagName ( 'style:style' ) ) #NEWLINE# self . processListStyles ( styles_doc . getElementsByTagName ( 'text:list-style' ) ) #NEWLINE# self . content = xml . dom . minidom . parseString ( zip . read ( 'content.xml' ) ) #NEWLINE# self . processFontDeclarations ( self . content . getElementsByTagName ( 'office:font-face-decls' ) [ 0 ] ) #NEWLINE# self . processStyles ( self . content . getElementsByTagName ( 'style:style' ) ) #NEWLINE# self . processListStyles ( self . content . getElementsByTagName ( 'text:list-style' ) )