#NEWLINE# @ staticmethod #NEWLINE# def shape_elm_factory( tagname , ph_type , idx ) : #NEWLINE# #INDENT# ( root_bldr , nvXxPr_bldr ) = { #NEWLINE# #INDENT# 'sp' : ( an_sp ( ) . with_nsdecls ( 'p' ) , an_nvSpPr ( ) ) , #NEWLINE# 'pic' : ( an_sp ( ) . with_nsdecls ( 'p' ) , an_nvPicPr ( ) ) , #NEWLINE# 'graphicFrame' : ( a_graphicFrame ( ) . with_nsdecls ( 'p' ) , an_nvGraphicFramePr ( ) ) , #NEWLINE# #UNINDENT# } [ tagname ] #NEWLINE# ph_bldr = { #NEWLINE# #INDENT# None : a_ph ( ) . with_idx ( idx ) , #NEWLINE# 'obj' : a_ph ( ) . with_idx ( tagname ) , #NEWLINE# 'title' : a_ph ( ) . with_type ( 'title' ) , #NEWLINE# 'body' : a_ph ( ) . with_type ( 'body' ) . with_idx ( idx ) , #NEWLINE# 'pic' : a_ph ( ) . with_type ( 'pic' ) . with_idx ( idx ) , #NEWLINE# 'tbl' : a_ph ( ) . with_type ( 'tbl' ) . with_idx ( idx ) , #NEWLINE# #UNINDENT# } [ ph_type ] #NEWLINE# return root_bldr . with_child ( nvXxPr_bldr . with_child ( an_nvPr ( ) . with_child ( ph_bldr ) ) ) . element