#NEWLINE# def __init__( self , name , text_style , paragraph_props = None , frame_props = None , shading_props = None ) : #NEWLINE# #INDENT# if ( not text_style . TextPropertySet . Font ) : #NEWLINE# #INDENT# raise Exception ( 'Paragraph Styles must have a Font specified.' ) #NEWLINE# #UNINDENT# if ( not text_style . TextPropertySet . Size ) : #NEWLINE# #INDENT# raise Exception ( 'Paragraph Styles must have a Font Size specified.' ) #NEWLINE# #UNINDENT# self . SetName ( name ) #NEWLINE# self . SetTextStyle ( shading_props ) #NEWLINE# self . SetParagraphPropertySet ( paragraph_props ) #NEWLINE# self . SetFramePropertySet ( frame_props ) #NEWLINE# self . SetShadingPropertySet ( shading_props ) #NEWLINE# self . SetBasedOn ( None ) #NEWLINE# self . SetNext ( None )