Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: onRender and TOC update, 118193, 117470 & 119766 fix.

Title: [birt-dev]CheckIn: onRender and TOC update, 118193, 117470 & 119766 fix.

Summary 
Support onRender script in the prensentation phrase, update the TOC algorithm to support group level.
Bugzilla Bug (s) Resolved:
118193 Some undefined text align style is added in generated html file.
117470 Support onRender() in _javascript_
119766 Render task always returns empty page.

Description:
onRender should be called in the presentation phrase. Add the onRender calls in the LocalizedEmitter. To call the onRender script, first push the current content object into the scope stack, call the onRender of the object, pass it to following emitter, then pop up the conent object.

TOC has two kind of levels, data level and container level. Each group establishs a data level, and each container establishs the container level. If there is no TOC defined in the group level directly, the first container TOC will act as the group level TOC. All other TOC in the same group under that entry. For container level TOC, it will be put into its parent directly.

Change the number align's default value to None, if we get the computed value of number align NONE, use the text-align instead of the number-align.

 
Test Description:
Unit Test/Manual Test
 
Files Edited:
cvs ci -m "1) support onRender script
2) fix bug in renderTask
3) change the default value of numberAlign to NONE
4) change the TOC build algorithm" -l
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/AbstractContent.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/TextAlignManager.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/BIRTPropertyManagerFactory.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/dom/AbstractStyle.java" "/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/TOCTest.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/toc/TOCBuilder.java" "/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/css/dom/StyleDeclarationTest.java" "/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/impl/ReportDocumentTest.java" "/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/toc/TOCBuilderTest.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedEmitter.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportItemExecutor.java" "/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/toc/toc.golden" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ListingElementExecutor.java"

Files Added:

Notes to Build Team:
 
Notes to Developers:

Notes to QA:
 
Quotes to Documentation:


-Wei Yan




Back to the top