Bug 180439 Style on toc doesn't take effect in PDF[0002]
Style on toc doesn't take effect in PDF[0002] Build number: 2.2.0.v20070402-1259 Steps to reproduce: 1.new a label and input "test style for toc" 2.new a style:style1,set Font:Arial,Color:red,size:20,style:Italic,weight:Bolder 3.select the label and set toc "toc" ,choose style:style1 4.preview in web viewer and PDF Expected result: Style on web viewer and PDF both take effects Actual result: In web viewer style takes effects In PDF no effects displayed Error log: N/A
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/TOCHandler.java
/**
	 * get the root of the TOC tree.
	 * @return				The TOC root node
	 */
	public TOCNode getTOCRoot()
	{
		return this.root;
	}
	
	/**
	 * create a PDF outline for tocNode, using the pol as the parent PDF outline.
	 * @param tocNode		The tocNode whose kids need to build a PDF outline tree
	 * @param pol			The parent PDF outline for these kids
	 */
	public void createTOC(TOCNode tocNode, PdfOutline pol)
	{
		if (null == tocNode.getChildren())
			return;
		for (Iterator i = tocNode.getChildren().iterator(); i.hasNext();)
		{
			TOCNode node = (TOCNode)i.next();
			PdfOutline outline = new PdfOutline( pol,
            		PdfAction.gotoLocalPage(node.getBookmark(), false), 
            		node.getDisplayString());
			createTOC( node, outline );
		}
	}
}