'Loads an ODT file.'

def load(self, filepath):

    zip = zipfile.ZipFile(filepath)
    styles_doc = xml.dom.minidom.parseString(zip.read('styles.xml'))
    fontfacedecls = styles_doc.getElementsByTagName('office:font-face-decls')
    if fontfacedecls:
        self.processFontDeclarations(fontfacedecls[0])
    self.processStyles(styles_doc.getElementsByTagName('style:style'))
    self.processListStyles(styles_doc.getElementsByTagName('text:list-style'))
    self.content = xml.dom.minidom.parseString(zip.read('content.xml'))
    fontfacedecls = self.content.getElementsByTagName('office:font-face-decls')
    if fontfacedecls:
        self.processFontDeclarations(fontfacedecls[0])
    self.processStyles(self.content.getElementsByTagName('style:style'))
    self.processListStyles(self.content.getElementsByTagName('text:list-style'))
