#NEWLINE# def _write_calc_pr( self ) : #NEWLINE# #INDENT# attributes = [ ( 'calcId' , self . calc_id ) ] #NEWLINE# if ( self . calc_mode == 'manual' ) : #NEWLINE# #INDENT# attributes . append ( ( 'calcMode' , self . calc_mode ) ) #NEWLINE# attributes . append ( ( 'calcOnSave' , '0' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . calc_mode == 'autoNoTable' ) : #NEWLINE# #INDENT# attributes . append ( ( 'calcMode' , self . calc_mode ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . calc_on_load : #NEWLINE# #INDENT# attributes . append ( ( 'fullCalcOnLoad' , '1' ) ) #NEWLINE# #UNINDENT# self . _xml_empty_tag ( 'calcPr' , attributes )