Bug 164070 Support widows/orphans properties on text item
Support widows/orphans properties on block text item(label, text, data etc), About the definition of widows/orphans, please refer to CSS spec.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/DesignElementHandleTest.java
assertTrue( myTable.hasSemanticError( ) );
	}
	/**
	 * Tests canContain() method for table or list cannot directly or indirecly
	 * reside in the table header slot.
	 * 
	 * @throws SemanticException
	 */
	public void testCanContainTableHeader( ) throws SemanticException
	{
		createDesign( );
		ElementFactory factory = new ElementFactory( design );
		assertTrue( designHandle.canContain( ReportDesign.DATA_SET_SLOT,
				factory.newOdaDataSet( null, null ) ) );
		assertFalse( designHandle.canContain( ReportDesign.BODY_SLOT, factory
				.newOdaDataSet( null, null ) ) );
		assertFalse( designHandle.canContain( ReportDesign.DATA_SET_SLOT,
				factory.newOdaDataSource( null, null ) ) );
		
		FreeFormHandle form = factory.newFreeForm( null );
		designHandle.getBody( ).add( form );
		assertFalse( form.canContain( FreeForm.REPORT_ITEMS_SLOT, factory
				.newOdaDataSet( null, null ) ) );
		assertFalse( form.canContain( FreeForm.REPORT_ITEMS_SLOT, factory
				.newCell( ) ) );
		assertTrue( form.canContain( FreeForm.REPORT_ITEMS_SLOT, factory
				.newList( null ) ) );
		
		assertFalse( form
				.canContain( FreeForm.REPORT_ITEMS_SLOT, (String) null ) );