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
SlotHandle groupSlot = table.getGroups( );
		assertNotNull( groupSlot );
		assertEquals( 1, groupSlot.getCount( ) );
		TableGroupHandle group = (TableGroupHandle) groupSlot.get( 0 );
		assertEquals( DesignChoiceConstants.INTERVAL_WEEK, group.getInterval( ) );
		assertTrue( 3.0 == group.getIntervalRange( ) );
		assertEquals( "desc", group.getSortDirection( ) ); 
		assertEquals( "[Country]", group.getKeyExpr( ) ); 
		assertEquals( "[toc Country]", group.getTocExpression( ) );  
		
		assertEquals( "birt.js.myGroup1Handler", group 
				.getEventHandlerClass( ) );
		
		
		
		
		
		
		assertEquals( "prepare on the group", group.getOnPrepare( ) ); 
		
		sorts = group.sortsIterator( );
		sortHandle = (SortKeyHandle) sorts.next( );
		assertEquals( "name", sortHandle.getKey( ) ); 		
		assertEquals( "asc", sortHandle.getDirection( ) ); 
		sortHandle = (SortKeyHandle) sorts.next( );
		assertEquals( "birthday", sortHandle.getKey( ) ); 
		assertEquals( "desc", sortHandle.getDirection( ) ); 
		filters = group.filtersIterator( );
		filterHandle = (FilterConditionHandle) filters.next( );
		assertEquals( "lt", filterHandle.getOperator( ) );