Bug 180118 Enhance to print out source stack trace in preview mode.[0002]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/RunFragment.java
*/
	protected void build( )
	{
		addChild( new ReportDialogFragment( ) );
		addChild( new DocumentFragment( ) );
	}
	/**
	 * Check if use html format
	 * 
	 * @param request
	 * @return
	 */
	protected boolean __checkHTMLFormat( HttpServletRequest request )
	{
		BaseAttributeBean bean = (BaseAttributeBean) request
				.getAttribute( IBirtConstants.ATTRIBUTE_BEAN );
		assert bean != null;
		
		if ( !ParameterAccessor.isReportParameterExist( request,
				ParameterAccessor.PARAM_REPORT )
				&& !ParameterAccessor.isReportParameterExist( request,
						ParameterAccessor.PARAM_REPORT_DOCUMENT ) )
		{
			return false;
		}
		return super.__checkHTMLFormat( request );
	}
	/**
	 * Handle image operate.
	 *