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
assertTrue( row.suppressDuplicates( ) );
		
		assertEquals( "birt.js.myDetailRowHandler", row 
				.getEventHandlerClass( ) );
		
		assertEquals( "create on the row", row.getOnCreate( ) ); 
		assertEquals( "render on the row", row.getOnRender( ) ); 
		assertEquals( "prepare on the row", row.getOnPrepare( ) ); 
		ColumnHandle column = (ColumnHandle) table.getColumns( ).get( 2 );
		assertTrue( column
				.getBooleanProperty( TableColumn.SUPPRESS_DUPLICATES_PROP ) );
		
		Iterator hideRules = column.visibilityRulesIterator( );
		assertTrue( hideRules.hasNext( ) );
		HideRuleHandle hideRule = (HideRuleHandle) hideRules.next( );
		assertEquals( DesignChoiceConstants.FORMAT_TYPE_VIEWER, hideRule
				.getFormat( ) );
		assertEquals( "viewer, 10 people", hideRule.getExpression( ) ); 
		SlotHandle cells = row.getCells( );
		assertNotNull( cells );
		assertEquals( 1, cells.getCount( ) );
		CellHandle cell = (CellHandle) cells.get( 0 );
		
		assertEquals( "birt.js.myDetailCellHandler", cell 
				.getEventHandlerClass( ) );
		
		assertEquals( "create on the cell", cell.getOnCreate( ) ); 
		assertEquals( "render on the cell", cell.getOnRender( ) ); 
		assertEquals( "prepare on the cell", cell.getOnPrepare( ) );