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/Module.java
}
		
		if ( sendEvent )
			broadcast( new PropertyEvent( this, Module.IMAGES_PROP ) );
	}
	/**
	 * Updates the element reference which refers to the given library.
	 * 
	 * @param target
	 *            the library whose element references are updated.
	 * @param slotId
	 *            the id of themes/styles slot
	 */
	private void updateReferenceableClients( DesignElement target, int slotId )
	{
		ContainerSlot slot = target.getSlot( slotId );
		Iterator iter = slot.iterator( );
		while ( iter.hasNext( ) )
		{
			DesignElement element = (DesignElement) iter.next( );
			assert element instanceof ReferenceableElement;
			ReferenceableElement referenceableElement = (ReferenceableElement) element;
			
			updateClientReferences( referenceableElement );
			
			if ( referenceableElement instanceof Theme )
				updateReferenceableClients( referenceableElement,
						Theme.STYLES_SLOT );
		}
	}