writeStyle( report.getStyle( i ) );
writeStyle( (StyleDesign) report.getStyle( i ) );
		public void writeReport( Report report, boolean hasStyle )		{			this.hasStyle = hasStyle;			out.println( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" ); //$NON-NLS-1$			pushTag( "report" ); //$NON-NLS-1$			attribute( "units", report.getUnit( ) ); //$NON-NLS-1$			/*if ( report.getDataSourceCount( ) > 0 )			{				pushTag( "data-sources" );				for ( int i = 0; i < report.getDataSourceCount( ); i++ )				{					writeDataSource( report.getDataSource( i ) );				}				popTag( );			}			if ( report.getDataSetCount( ) > 0 )			{				pushTag( "data-sets" );				for ( int i = 0; i < report.getDataSetCount( ); i++ )				{					writeDataSet( report.getDataSet( i ) );				}				popTag( );			}*/			if ( hasStyle && report.getStyleCount( ) > 0 )			{				pushTag( "styles" ); //$NON-NLS-1$				for ( int i = 0; i < report.getStyleCount( ); i++ )				{					writeStyle( report.getStyle( i ) );				}				popTag( );			}			writePageSetup( report.getPageSetup( ) );			if ( report.getContentCount( ) > 0 )			{				pushTag( "body" ); //$NON-NLS-1$				for ( int i = 0; i < report.getContentCount( ); i++ )				{					report.getContent( i ).accept( this );				}				popTag( );			}			popTag( );			out.flush( );		}