#NEWLINE# def _get_align_properties( self ) : #NEWLINE# #INDENT# changed = 0 #NEWLINE# align = [ ] #NEWLINE# if ( self . text_h_align or self . text_v_align or self . indent or self . rotation or self . text_wrap or self . shrink or self . reading_order ) : #NEWLINE# #INDENT# changed = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( changed , align ) #NEWLINE# #UNINDENT# if ( self . indent and ( self . text_h_align != 1 ) and ( self . text_h_align != 3 ) and ( self . text_h_align != 7 ) ) : #NEWLINE# #INDENT# self . text_h_align = 1 #NEWLINE# #UNINDENT# if self . text_wrap : #NEWLINE# #INDENT# self . shrink = 0 #NEWLINE# #UNINDENT# if ( self . text_h_align == 4 ) : #NEWLINE# #INDENT# self . shrink = 0 #NEWLINE# #UNINDENT# if ( self . text_h_align == 5 ) : #NEWLINE# #INDENT# self . shrink = 0 #NEWLINE# #UNINDENT# if ( self . text_h_align == 7 ) : #NEWLINE# #INDENT# self . shrink = 0 #NEWLINE# #UNINDENT# if ( self . text_h_align != 7 ) : #NEWLINE# #INDENT# self . just_distrib = 0 #NEWLINE# #UNINDENT# if self . indent : #NEWLINE# #INDENT# self . just_distrib = 0 #NEWLINE# #UNINDENT# continuous = 'centerContinuous' #NEWLINE# if ( self . text_h_align == 1 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , 'left' ) ) #NEWLINE# #UNINDENT# if ( self . text_h_align == 2 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , 'center' ) ) #NEWLINE# #UNINDENT# if ( self . text_h_align == 3 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , 'right' ) ) #NEWLINE# #UNINDENT# if ( self . text_h_align == 4 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , 'fill' ) ) #NEWLINE# #UNINDENT# if ( self . text_h_align == 5 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , 'justify' ) ) #NEWLINE# #UNINDENT# if ( self . text_h_align == 6 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , continuous ) ) #NEWLINE# #UNINDENT# if ( self . text_h_align == 7 ) : #NEWLINE# #INDENT# align . append ( ( 'horizontal' , 'distributed' ) ) #NEWLINE# #UNINDENT# if self . just_distrib : #NEWLINE# #INDENT# align . append ( ( 'justifyLastLine' , 1 ) ) #NEWLINE# #UNINDENT# if ( self . text_v_align == 1 ) : #NEWLINE# #INDENT# align . append ( ( 'vertical' , 'top' ) ) #NEWLINE# #UNINDENT# if ( self . text_v_align == 2 ) : #NEWLINE# #INDENT# align . append ( ( 'vertical' , 'center' ) ) #NEWLINE# #UNINDENT# if ( self . text_v_align == 4 ) : #NEWLINE# #INDENT# align . append ( ( 'vertical' , 'justify' ) ) #NEWLINE# #UNINDENT# if ( self . text_v_align == 5 ) : #NEWLINE# #INDENT# align . append ( ( 'vertical' , 'distributed' ) ) #NEWLINE# #UNINDENT# if self . indent : #NEWLINE# #INDENT# align . append ( ( 'indent' , self . indent ) ) #NEWLINE# #UNINDENT# if self . rotation : #NEWLINE# #INDENT# align . append ( ( 'textRotation' , self . rotation ) ) #NEWLINE# #UNINDENT# if self . text_wrap : #NEWLINE# #INDENT# align . append ( ( 'wrapText' , 1 ) ) #NEWLINE# #UNINDENT# if self . shrink : #NEWLINE# #INDENT# align . append ( ( 'shrinkToFit' , 1 ) ) #NEWLINE# #UNINDENT# if ( self . reading_order == 1 ) : #NEWLINE# #INDENT# align . append ( ( 'readingOrder' , 1 ) ) #NEWLINE# #UNINDENT# if ( self . reading_order == 2 ) : #NEWLINE# #INDENT# align . append ( ( 'readingOrder' , 2 ) ) #NEWLINE# #UNINDENT# return ( changed , align )