Bug 180089 BIRT model - TOC predefined styles
In ROM we need to support predefined styles for TOC too. This will allow user to easily create a TOC style, by creating one of two styles. Suggestion i have is - TOC ( Applies to all TOC nodes ) - TOC-level1 ( If defined applies to first level toc nodes ) - TOC-level2 ........... - TOC-level5
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportDesignHandleTest.java
List styles = designHandle.getAllStyles( );
		assertEquals( 5, styles.size( ) );
		try
		{
			designHandle.addCss( sheetHandle );
			fail( );
		}
		catch ( CssException e )
		{
			assertEquals( CssException.DESIGN_EXCEPTION_DUPLICATE_CSS, e
					.getErrorCode( ) );
		}
		
		LabelHandle labelHandle = designHandle.getElementFactory( ).newLabel(
				"label" );
		designHandle.getBody( ).add( labelHandle );
		labelHandle.setStyle( (SharedStyleHandle) styles.get( 0 ) );
		
		assertTrue( designHandle.canDropCssStyleSheet( sheetHandle ) );
		
		ElementRefValue value = (ElementRefValue) labelHandle.getElement( )
				.getLocalProperty( designHandle.getModule( ), "style" );
		assertTrue( value.isResolved( ) );
		designHandle.dropCss( sheetHandle );
		assertFalse( value.isResolved( ) );
		assertNull( designHandle.includeCssesIterator( ).next( ) );
		assertNull( labelHandle.getStyle( ) );
		assertFalse( designHandle.canDropCssStyleSheet( sheetHandle ) );
		assertNull ( sheetHandle.getContainerHandle( ) );