Bug 142694 Ability to set a default name for file when getting preview as pdf
Actually the name of file, in preview as pdf, is always: "run[1].pdf". It would be very useful to have the ability to set a differente default name for file. Even the name of file could be resulting from an input parameter. This enhancement serves to user having to create a lot of reports, in Report Designer, and every time he have to write the name of report before to save in pdf.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java
protected void doPreService( HttpServletRequest request,
			HttpServletResponse response ) throws ServletException, IOException
	{
		if ( IBirtConstants.SERVLET_PATH_DOWNLOAD.equalsIgnoreCase( request
				.getServletPath( ) ) )
		{
			response.setContentType( "application/csv;charset=utf-8" ); 
			response.setHeader(
					"Content-Disposition", "inline; filename=exportdata.csv" ); 
		}
		else if ( ParameterAccessor.PARAM_FORMAT_PDF
				.equalsIgnoreCase( ParameterAccessor.getFormat( request ) ) )
		{
			response.setContentType( "application/pdf" ); 
		}
		else
		{
			response.setContentType( "text/html;charset=utf-8" ); 
			response.setHeader( "cache-control", "no-cache" ); 
		}
	}
	/**
	 * Render the report in html/pdf format by calling engine service.
	 * 
	 * @param request
	 *            incoming http request
	 * @param response
	 *            http response
	 * @exception ServletException
	 * @exception IOException