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/src/org/eclipse/birt/report/model/api/ModuleHandle.java
{
		CustomMsgCommand command = new CustomMsgCommand( getModule( ) );
		command.addTranslation( resourceKey, locale, text );
	}
	/**
	 * Adds the validation listener, which implements
	 * <code>IValidationListener</code>. A listener receives notifications
	 * each time an element is validated.
	 * 
	 * @param listener
	 *            the validation listener.
	 */
	public void addValidationListener( IValidationListener listener )
	{
		getModule( ).addValidationListener( listener );
	}
	/**
	 * Checks this whole report. Only one <code>ValidationEvent</code> will be
	 * sent, which contains all error information of this check.
	 */
	public void checkReport( )
	{
		
		module.semanticCheck( module );
		ValidationEvent event = new ValidationEvent( module, null,
				getErrorList( ) );
		module.broadcastValidationEvent( module, event );
	}
	/**
	 * Closes the design. The report design handle is no longer valid after