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
public void testSetFileName( ) throws Exception
	{
		
		designHandle.setFileName( "http:www.eclipse.org/ima#ge  \\s/" ); 
		assertEqualsOnWindows(
				"http:www.eclipse.org/ima%23ge  /s/", designHandle 
						.getSystemId( ).toString( ) );
		designHandle
				.setFileName( "http:hello.com/\u4e0d\u5b58\u5728\u7684\u5355\u4f4d" ); 
		assertEquals( "http:hello.com/", designHandle 
				.getSystemId( ).toString( ) );
		designHandle
				.setFileName( "http:hello.com/\u4e0d\u5b58/index.rtpdesign" ); 
		assertEquals( "http:hello.com/\u4e0d\u5b58/", designHandle 
				.getSystemId( ).toString( ) );
		designHandle.setFileName( "/usr/home/birt/report.xml" ); 
		assertEquals(
				new File( "/usr/home/birt/report.xml" ).getParentFile( ).toURL( ) 
						.toString( ), designHandle.getSystemId( ).toString( ) );
		designHandle.setFileName( "C:\\reports\\1.xml" ); 
		assertEqualsOnWindows( "file:/C:/reports", designHandle 
				.getSystemId( ).toString( ) );
		designHandle.setFileName( "1.xml" ); 
		assertNotNull( designHandle.getModule( ).getSystemId( ) );
		assertEquals( new File( "1.xml" ).getAbsoluteFile( ).getParentFile( ) 
				.toURL( ).toExternalForm( ), designHandle.getSystemId( )
				.toString( ) );
	}
	/**
	 * Tests the copy-rename-add methods about the embedded images.