/[Apache-SVN]
ViewVC logotype

Revision 267209


Jump to revision: Previous Next
Author: jeremias
Date: Fri Sep 2 14:26:31 2005 UTC (18 years, 9 months ago)
Changed paths: 22
Log Message:
Initial work on enhancing the extension facilities to register special extensions which create so-called ExtensionAttachment objects which are attached to the formatting object they are attached to. These objects can be evaluated by standard or custom layout managers or simply passed through to the area tree (the latter is NYI). The AreaTreeHandler currently takes ExtensionAttachment objects from fo:root and fo:declarations and wraps them in OffDocumentItems that Renderers can react on to provide additional functionality on document-level (like PDF metadata or PostScript media dictionaries). Since the simple-page-master is available directly from the PageViewport the renderer can take ExtensionAttachment objects directly from there (see PSRenderer.renderPage()).
Extension Elements that provide ExtensionAttachments are not added as such to the child element list of a formatting object since they work a little differently and should free memory as soon as possible.

The PostScript extension described in http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript are now fully implemented but under the namespace URI "http://xmlgraphics.apache.org/fop/postscript", not "http://xml.apache.org/fop/extensions". I'll need to look at namespaces again separately, later.
The new PSExtensionElementMapping is currently hard-coded into FOTreeBuilder as are the other ElementMapping classes.

OffDocumentItem is now an interface, AbstractOffDocumentItem now providing the base functionality of the former OffDocumentItem class.
Lots of clean-up and javadocs while working through this, for example: FObj.childNodes is not public anymore. Instead a special method on fo.flow.InstreamForeignObject provides the child in the one case childNodes was directly accessed. PropertyMaker access in FObj is also done through a method now, propertyListTable is now private.

Changed paths

Path Details
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/area/AbstractOffDocumentItem.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeHandler.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/area/BookmarkData.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/area/OffDocumentExtensionAttachment.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/area/OffDocumentItem.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOElementMapping.java modified , text changed , props changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FONode.java modified , text changed , props changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOTreeBuilder.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FObj.java modified , text changed , props changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java modified , text changed , props changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/ExtensionAttachment.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/pagination/Declarations.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/pagination/SimplePageMaster.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InstreamForeignObjectLM.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRenderer.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/ added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSPageSetupCodeElement.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCode.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCodeElement.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26