Bug 122850 Table/list should not be able to be inserted in Master Page mode.
Description: Table/list should not be able to be inserted in Master Page mode. Steps to reproduce: 1. New a report and transfer to Master Page mode. 2. New a datasource and dataset 3. Drag a list/table to page header/footer, bind it to dataset and drag some columns inside. 4. Save and preview Expected result: Insert list/table item in master page should be forbidden. Actual result: They are allowed and preview showed "undefine" in page
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
for ( int i = 0; i < slotCount; i++ )
		{
			ContainerSlot contentSlot = getSlot( i );
			Iterator iter = contentSlot.iterator( );
			while ( iter.hasNext( ) )
			{
				Object content = iter.next( );
				if ( content instanceof TemplateElement )
					return true;
				else if ( ( (DesignElement) content )
						.isContainTamplateElement( ) )
					return true;
			}
		}
		return false;
	}
	/**
	 * Checks whether this element is based on a template parameter definition
	 * or not.
	 * 
	 * @param module
	 *            the root module
	 * @return true if this element is based on a template parameter definition,
	 *         otherwise false
	 */
	public boolean isTemplateParameterValue( Module module )
	{
		return getTemplateParameterElement( module ) != null;
	}
}