#NEWLINE# def processStyles( self , styleElements ) : #NEWLINE# #INDENT# ' Runs through "style" elements extracting necessary information.\n            ' #NEWLINE# for style in styleElements : #NEWLINE# #INDENT# name = style . getAttribute ( 'style:name' ) #NEWLINE# if ( family == 'Standard' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# family = style . getAttribute ( 'style:family' ) #NEWLINE# parent = style . getAttribute ( 'style:parent-style-name' ) #NEWLINE# if ( family == 'text' ) : #NEWLINE# #INDENT# self . textStyles [ name ] = self . extractTextProperties ( style , parent ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( family == 'paragraph' ) : #NEWLINE# #INDENT# self . paragraphStyles [ name ] = self . extractParagraphProperties ( style , parent )