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
hideHandle = (HideRuleHandle) rules.next( );
		assertNotNull( hideHandle );
		hideHandle.setFormat( DesignChoiceConstants.FORMAT_TYPE_REPORTLET );
		hideHandle.setExpression( "new rule 2" ); 
	}
	/**
	 * This test writes the design file and compare it with golden file.
	 * 
	 * @throws Exception
	 * 
	 */
	public void testWriter( ) throws Exception
	{
		openDesign( fileName );
		TableHandle tableHandle = (TableHandle) designHandle
				.findElement( "My table" ); 
		assertNotNull( tableHandle );
		tableHandle.setEventHandlerClass( "birt.js.newTableHandler" ); 
		tableHandle.setOnCreate( "new create on table" ); 
		tableHandle.setOnPrepare( "new prepare on table" ); 
		tableHandle.setOnRender( "new render on table" ); 
		tableHandle.setRepeatHeader( false );
		tableHandle.setCaption( "new caption" ); 
		tableHandle.setCaptionKey( "new caption key" ); 
		
		ColumnHandle column = (ColumnHandle) tableHandle.getColumns( ).get( 2 );
		PropertyHandle propHandle = column
				.getPropertyHandle( TableColumn.VISIBILITY_PROP );
		propHandle.setValue( null );