Bug 212450 Expose Report Theme for scripting
Use case: Report library: theme.rptlibrary has 2 themes blue and green based on blue.css and green.css. Report design: theme.rptdesign uses theme.rptlibrary. there is a report parameter: theme that allows the user to select blue or green for the report theme. Using scripting, I want to be able to set the theme of the report based on the report parameter. In the script tab, the 'this' variable does not have theme exposed. Desired action: please expose theme to the report.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/element/ReportDesign.java
{
		return new Table(
				( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
						.getTable( name ) );
	}
	public IDynamicText getDynamicText( String name )
	{
		return new DynamicText(
				( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
						.getDynamicText( name ) );
	}
	public ITextItem getTextItem( String name )
	{
		return new TextItem(
				( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
						.getTextItem( name ) );
	}
	public void setDisplayNameKey( String displayNameKey )
			throws ScriptException
	{
		try
		{
			( (org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl )
					.setDisplayNameKey( displayNameKey );
		}
		catch ( SemanticException e )
		{
			throw new ScriptException( e.getLocalizedMessage( ) );
		}
	}