'Register a style. But there are three style dictionaries:
office:styles, office:automatic-styles and office:master-styles
Chapter 14'

def __register_stylename(self, element):

    name = element.getAttrNS(STYLENS, u'name')
    if (name is None):
        return
    if (element.parentNode.qname in ((OFFICENS, u'styles'), (OFFICENS, u'automatic-styles'))):
        if self._styles_dict.has_key(name):
            newname = ('M' + name)
            self._styles_ooo_fix[name] = newname
            name = newname
            element.setAttrNS(STYLENS, u'name', name)
        self._styles_dict[name] = element
