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/parser/TableItemParseTest.java
HideRule hideRule = StructureFactory.createHideRule( );
		propHandle.addItem( hideRule );
		hideRule.setFormat( DesignChoiceConstants.FORMAT_TYPE_REPORTLET );
		hideRule.setExpression( "new expression of " 
				+ DesignChoiceConstants.FORMAT_TYPE_REPORTLET );
		SlotHandle groupSlot = tableHandle.getGroups( );
		assertNotNull( groupSlot );
		assertEquals( 1, groupSlot.getCount( ) );
		RowHandle rowHandle = (RowHandle) tableHandle.getHeader( ).get( 0 );
		testWriteVisibilityRules( rowHandle );
		TableGroupHandle group = (TableGroupHandle) groupSlot.get( 0 );
		group.setName( "new group name" ); 
		group.setInterval( DesignChoiceConstants.INTERVAL_DAY );
		group.setIntervalRange( 99 );
		group.setKeyExpr( "new expression" ); 
		group.setTocExpression( "new toc expression" ); 
		group.setEventHandlerClass( "birt.js.newGroup1Handler" ); 
		group.setOnPrepare( "new prepare on group" ); 
		
		SlotHandle detailSlot = tableHandle.getDetail( );
		assertNotNull( detailSlot );
		assertEquals( 1, detailSlot.getCount( ) );
		RowHandle row = (RowHandle) detailSlot.get( 0 );
		
		row.setSuppressDuplicates( false );
		
		row.setEventHandlerClass( "birt.js.newRowHandler" ); 
		row.setOnCreate( "new create on row" ); 
		row.setOnPrepare( "new prepare on row" ); 
		row.setOnRender( null );