]> source.dussan.org Git - xmlgraphics-fop.git/commit
Removed the DOM representation of the structure tree.
authorVincent Hennebert <vhennebert@apache.org>
Thu, 24 Nov 2011 17:15:28 +0000 (17:15 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 24 Nov 2011 17:15:28 +0000 (17:15 +0000)
commitc6fb066a02573904f7ca404605f14c800adf80c5
treed73a722e23ae74124b1bcb691d0e6f0b2f0af32f
parentb073a605e44760bcb7add72968a3a2f78cf06d97
Removed the DOM representation of the structure tree.

The structure tree is now directly converted into corresponding PDF objects.
When going the IF route, the structure tree is stored in the form of SAX events that will be re-played when it's time to stream them into the output. This may still change.

* Extracted RFC3066 methods from XMLUtil into new LanguageTags class that can be re-used in a non-XML context.
* Dropped support for accessibility in the old Area Tree XML.
* Added support for the xml:lang property on fo:root, so that the global language can be set for the document without retrieving the language from the first page-sequence.
* Renamed StructureTreeBuilder into more appropriate StructureTreeEventHandler (same for applicable sub-classes)
* Renamed StructureTreeBuildingFOEventHandler into FO2StructureTreeConverter and added test case
* Added test cases for classes in the StructureTreeEventHandler hierarchy

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1205935 13f79535-47bb-0310-9956-ffa450edef68
76 files changed:
src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd
src/java/org/apache/fop/accessibility/DummyStructureTreeEventHandler.java [new file with mode: 0644]
src/java/org/apache/fop/accessibility/FO2StructureTreeConverter.java [new file with mode: 0644]
src/java/org/apache/fop/accessibility/StructureTree.java [deleted file]
src/java/org/apache/fop/accessibility/StructureTree2SAXEventAdapter.java [new file with mode: 0644]
src/java/org/apache/fop/accessibility/StructureTreeBuilder.java [deleted file]
src/java/org/apache/fop/accessibility/StructureTreeBuildingFOEventHandler.java [deleted file]
src/java/org/apache/fop/accessibility/StructureTreeEventHandler.java [new file with mode: 0644]
src/java/org/apache/fop/apps/FOUserAgent.java
src/java/org/apache/fop/area/AreaTreeHandler.java
src/java/org/apache/fop/area/AreaTreeModel.java
src/java/org/apache/fop/area/AreaTreeParser.java
src/java/org/apache/fop/area/RenderPagesModel.java
src/java/org/apache/fop/fo/DelegatingFOEventHandler.java
src/java/org/apache/fop/fo/FOElementMapping.java
src/java/org/apache/fop/fo/FOEventHandler.java
src/java/org/apache/fop/fo/FOTreeBuilder.java
src/java/org/apache/fop/fo/pagination/Root.java
src/java/org/apache/fop/pdf/PDFDocument.java
src/java/org/apache/fop/pdf/PDFProfile.java
src/java/org/apache/fop/pdf/PDFRoot.java
src/java/org/apache/fop/pdf/PDFStructElem.java
src/java/org/apache/fop/render/AbstractRenderer.java
src/java/org/apache/fop/render/Renderer.java
src/java/org/apache/fop/render/intermediate/AbstractIFDocumentHandler.java
src/java/org/apache/fop/render/intermediate/IFConstants.java
src/java/org/apache/fop/render/intermediate/IFDocumentHandler.java
src/java/org/apache/fop/render/intermediate/IFParser.java
src/java/org/apache/fop/render/intermediate/IFRenderer.java
src/java/org/apache/fop/render/intermediate/IFSerializer.java
src/java/org/apache/fop/render/intermediate/IFSerializerMaker.java
src/java/org/apache/fop/render/intermediate/IFStructureTreeBuilder.java [new file with mode: 0644]
src/java/org/apache/fop/render/intermediate/util/IFDocumentHandlerProxy.java
src/java/org/apache/fop/render/pdf/FOToPDFRoleMap.java
src/java/org/apache/fop/render/pdf/PDFDocumentHandler.java
src/java/org/apache/fop/render/pdf/PDFDocumentHandlerMaker.java
src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java
src/java/org/apache/fop/render/pdf/PDFStructureTreeBuilder.java [new file with mode: 0644]
src/java/org/apache/fop/render/xml/XMLRenderer.java
src/java/org/apache/fop/util/LanguageTags.java [new file with mode: 0644]
src/java/org/apache/fop/util/XMLUtil.java
test/accessibility/config-painter.xconf [deleted file]
test/accessibility/config-renderer.xconf [deleted file]
test/accessibility/fop.xconf [new file with mode: 0644]
test/accessibility/pdf/background-image_jpg_repeat.pdf
test/accessibility/pdf/background-image_jpg_single.pdf
test/accessibility/pdf/background-image_png_repeat.pdf
test/accessibility/pdf/background-image_png_single.pdf
test/accessibility/pdf/background-image_svg_repeat.pdf
test/accessibility/pdf/background-image_svg_single.pdf
test/accessibility/pdf/complete.pdf
test/accessibility/pdf/image_jpg.pdf
test/accessibility/pdf/image_png.pdf
test/accessibility/pdf/image_svg.pdf
test/accessibility/pdf/image_wmf.pdf
test/accessibility/pdf/leader.pdf
test/accessibility/pdf/links.pdf
test/accessibility/pdf/role.pdf
test/accessibility/pdf/role_non-standard.pdf
test/accessibility/pdf/text_1.pdf
test/accessibility/pdf/text_2.pdf
test/accessibility/pdf/text_font-embedding.pdf
test/java/org/apache/fop/StandardTestSuite.java
test/java/org/apache/fop/accessibility/FO2StructureTreeConverterTestCase.java [new file with mode: 0644]
test/java/org/apache/fop/accessibility/fo2StructureTree.xsl [new file with mode: 0644]
test/java/org/apache/fop/fo/DelegatingFOEventHandlerTestCase.fo [deleted file]
test/java/org/apache/fop/fo/DelegatingFOEventHandlerTestCase.java
test/java/org/apache/fop/fo/FODocumentParser.java
test/java/org/apache/fop/fo/complete_document.fo [new file with mode: 0644]
test/java/org/apache/fop/fo/extract-events.xsl
test/java/org/apache/fop/fo/properties/CommonAccessibilityHolderTestCase.java
test/java/org/apache/fop/intermediate/IFParserTestCase.java
test/java/org/apache/fop/render/intermediate/IFStructureTreeBuilderTestCase.java [new file with mode: 0644]
test/java/org/apache/fop/render/intermediate/SAXEventRecorderTestCase.java [new file with mode: 0644]
test/java/org/apache/fop/util/LanguageTagsTestCase.java [new file with mode: 0644]
test/java/org/apache/fop/util/XMLUtilTestCase.java [deleted file]