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
assertEquals( e.getErrorCode( ),
					ContentException.DESIGN_EXCEPTION_SLOT_NOT_FOUND );
		}
		
		label1 = factory.newLabel( "Label1" );
		container1.getReportItems( ).add( label1 );
		slot = container1.getReportItems( );
		assertNotNull( slot );
		assertEquals( slot.getCount( ), 1 );
		assertEquals( slot.get( 0 ), label1 );
		assertTrue( ns.contains( "Label1" ) );
		assertEquals( container1, label1.getContainer( ) );
		
		LabelHandle label2 = factory.newLabel( null );
		try
		{
			SlotHandle sh = new SlotHandle( label1, 0 );
			sh.add( label2.getElement( ).getHandle( design ) );
			fail( );
		}
		catch ( ContentException e )
		{
			assertEquals( label1.getElement( ), e.getElement( ) );
			assertEquals( e.getSlot( ), 0 );
			assertEquals( e.getErrorCode( ),
					ContentException.DESIGN_EXCEPTION_NOT_CONTAINER );
		}
		
		StyleHandle style = factory.newStyle( "Foo" ); 
		style.getElement( ).setName( null );