aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/AreaTreeHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Bugzilla 42089: Cleanup and restructuring (suggested by Adrian Cumiskey)Andreas L. Delmelle2007-07-071-181/+118
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554094 13f79535-47bb-0310-9956-ffa450edef68
* ArrayList -> List.Jeremias Maerki2007-05-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@535885 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #42067:Jeremias Maerki2007-05-071-1/+2
| | | | | | | Add support for exact positioning of internal PDF links. Submitted by: Paul Vinkenoog <paul.at.vinkenoog.nl> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@535866 13f79535-47bb-0310-9956-ffa450edef68
* Move out all statistics/debug related code into an inner Statistics class.Vincent Hennebert2007-04-201-122/+153
| | | | | | | Patch submitted by Adrian Cumiskey (fop-dev AT cumiskey DOT com) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@530682 13f79535-47bb-0310-9956-ffa450edef68
* changes to support named destinationJay Bryant2007-04-011-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524600 13f79535-47bb-0310-9956-ffa450edef68
* corrected a couple of javadoc warnings issued by checkstyleChris Bowditch2006-08-221-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@433679 13f79535-47bb-0310-9956-ffa450edef68
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-281-5/+6
| | | | | | http://www.apache.org/legal/src-headers.html git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426576 13f79535-47bb-0310-9956-ffa450edef68
* Add bookmarks even if one of the leaves didn't resolve.Jeremias Maerki2006-06-071-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412389 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: basic-links with internal destinations in documents with multiple ↵Jeremias Maerki2006-04-241-2/+14
| | | | | | page-sequences sometimes pointed at the wrong page. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396640 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39118:Jeremias Maerki2006-04-231-2/+61
| | | | | | | | | | | | | Initial support for page-number-citation-last (XSL 1.1). Works without problems only for page-sequence so far. Submitted by: Pierre-Henri Kraus <phkraus.at.skynet.be> Modifications to the patch by jeremias during review: - Tab character removed - Some style fixes and javadoc enhancements - Renamed some methods in AreaTreeHandler to some more speaking names - Changed the ..._basic.xml testcase so it shows a remaining problem: Forward references are not properly resolved, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396243 13f79535-47bb-0310-9956-ffa450edef68
* Merged Temp_API_Finalization branch back into FOP Trunk:Jeremias Maerki2006-03-271-1/+1
| | | | | | | | | | | Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign In addition to that: Deprecated the rest of the Fop constructors. Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet. Some further cleanup on the way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
* The last page sequence should also follow its force-page-count trait.Simon Pepping2006-01-101-10/+13
| | | | | | | | Replace one test case with two leaner test cases, submitted by Gerhard Oettl, see bug 38087. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367775 13f79535-47bb-0310-9956-ffa450edef68
* Also let the last page sequence notify its listeners. Add a check forSimon Pepping2006-01-081-2/+5
| | | | | | | the page count to the test case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367020 13f79535-47bb-0310-9956-ffa450edef68
* Implementation of force-page-count property, patch by Gerhard Oettl,Simon Pepping2006-01-061-2/+15
| | | | | | | somewhat rearranged by me. See bug 38087. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366569 13f79535-47bb-0310-9956-ffa450edef68
* First step towards reactivating CachedRenderPagesModel (helps preparing for ↵Jeremias Maerki2005-12-201-4/+16
| | | | | | | | the intermediate format). Fix some serialization problems in the area tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357982 13f79535-47bb-0310-9956-ffa450edef68
* Fop.java gets two new constructors: Fop(String) and Fop(String, FOUserAgent) ↵Jeremias Maerki2005-11-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | where the String is the MIME type for the desired output format. MimeConstants provides a comprehensive list of MIME types used in Fop.java. Non-standard, FOP-specific MIME types changed to a uniform pattern: application/X-fop-awt-preview, application/X-fop-print and application/X-fop-areatree. RendererFactory now supports manual registration and dynamic discovery of Renderers and FOEventHandlers by their MIME types. Instantitation is done using MIME types everywhere. The RENDER_* constants are mapped to MIME types in Fop.java. RendererFactory is now an instantiable class whose reference is held by FOUserAgent just like it is done for the XLMHandlers. Renderers and FOEventHandlers now each have a *Maker class which is a kind of factory class which is used to register a Renderer/FOEventHandler and additionally serves to provide additional information about the thing, such as the MIME types it supports and if the implementation requires an OutputStream. The command-line gets a new option: -out application/pdf myfile.pdf is the generic way to create an output file. If someone created a WordML output handler and provided the right service resource file he could specify "-out text/xml+msword out.xml". ".out list" lists all MIME types that are available for output. Renderers can now potionally expose a Graphics2DAdapter which in concert with Graphics2DImagePainter can be used by FOP extensions to paint their content directly using a Graphics2D instance. That makes it possible to avoid a detour via SVG/Batik in certain cases. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332549 13f79535-47bb-0310-9956-ffa450edef68
* Initial work on enhancing the extension facilities to register special ↵Jeremias Maerki2005-09-021-2/+27
| | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@267209 13f79535-47bb-0310-9956-ffa450edef68
* Use a more direct notify mechanism for the formatting resultsSimon Pepping2005-07-311-8/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@226627 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #35937: Jeremias Maerki2005-07-301-3/+23
| | | | | | | | | FormattingResults mechanism ported from maintenance branch to trunk. Submitted by: Manuel Mall <mm.at.arcus.com.au> Patch tweaked slightly to avoid the reference of Fop.java into the area package. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@226511 13f79535-47bb-0310-9956-ffa450edef68
* Additional ppm indicator especially interesting for those of us doing ↵Jeremias Maerki2005-05-231-1/+3
| | | | | | high-volume printing. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198667 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Area generated by page-number is now cloned for each addAreas() call.Jeremias Maerki2005-05-171-8/+34
| | | | | | | Bugfix: page-number-citations are now properly resolved. The new method in AreaTreeHandler may not be optimal, but I haven't found a better way, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198642 13f79535-47bb-0310-9956-ffa450edef68
* Merge of branch Temp_KnuthStylePageBreaking back into HEAD.Jeremias Maerki2005-05-131-10/+3
| | | | | | | Temp_KnuthStylePageBreaking branch and HEAD have been tagged prior to the merge, so merging uncommitted work from the branch should be easier. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198627 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2005-02-171-1/+1
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Cleanup of page number handling throughout application. Removed old code from PageSequence.java. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198434 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2005-02-061-14/+2
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Minor variable renaming in PSLM, removed pageCount variable from ATH. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198380 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2005-02-051-1/+1
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Switch to Root's page number counter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198379 13f79535-47bb-0310-9956-ffa450edef68
* Add a facility for the PageSequenceLayoutManager to notify about a new page ↵Jeremias Maerki2005-02-031-3/+17
| | | | | | being added so the rendering statistics work again. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198371 13f79535-47bb-0310-9956-ffa450edef68
* Switched from fox:bookmarks to fo:bookmark-tree (of XSL 1.1 2WD). Two moreGlen Mazza2005-01-021-4/+4
| | | | | | | | bookmark-related FO's (fox:outline and fox:label) need conversion and will be done next. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198216 13f79535-47bb-0310-9956-ffa450edef68
* Changed LayoutManagerMaker.makeLayoutManager(FONode node) to throw aSimon Pepping2004-12-271-2/+8
| | | | | | | | | FOPException, and removed LayoutManagerMaker.makeLayoutManager(FONode node, boolean checkLength). Adapted LayoutManagerMapping, PageSequenceLM and AreaTreeHandler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198212 13f79535-47bb-0310-9956-ffa450edef68
* This patch implements a pluggable LayoutManagers system, accordingSimon Pepping2004-12-241-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | to the ideas of Finn Bock and his patch in bug 30500. Created a LayoutManagerMaker interface, with method makeLayoutManagers(FONode, List), and two convenience methods on top of it. Created an implementation: LayoutManagerMapping. This is along the pattern of FOElementMapping. It creates a Map from FObj class to Maker objects. There are many static inner classes which are subclasses of Maker. Each subclass implements its own version of the make method. FOUserAgent has a setter and getter for LayoutManagerMakerOverride. AreaTreeHandler creates a LayoutManagerMaker, taking the user's override into account, using LayoutManagerMapping as the default. It has a get method for it. The LayoutManager interface has a get method for the AreaTreeHandler object, a reference to which is held in PageSequenceLM, the top of the LM tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198208 13f79535-47bb-0310-9956-ffa450edef68
* Moved the (upcoming) fo:bookmark-tree construction code from AreaTreeHandlerGlen Mazza2004-12-171-53/+23
| | | | | | | to the BookmarkData object. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198203 13f79535-47bb-0310-9956-ffa450edef68
* More code commenting and minor cleanup of bookmark/Resolvable/ATH code.Glen Mazza2004-12-161-8/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198202 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-12-161-1/+1
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Removed Runnable interface from PSLM; new method "activateLayout()" combines former run() and doLayout() methods in PSLM. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198201 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-12-141-7/+12
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: AreaTreeModel detached from BookmarkData; more code commenting. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198200 13f79535-47bb-0310-9956-ffa450edef68
* Moved PDF bookmark creation to endDocument(). (Fixed bug, was beingGlen Mazza2004-12-121-1/+8
| | | | | | | created after each page sequence in document.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198198 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-12-061-18/+2
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Removed pretend "resolution" of still-unresolved idrefs at ATH.endDocument(). This was apparently done to force page rendering of remaining unresolved pages at RenderPagesModel.checkPreparedPages() (which requires a page to be completely resolved before rendering). Replacement code keeps unresolved idrefs unresolved, but explicitly forces page rendering for calls to checkPreparedPages() that originate from ATH.endDocument(). Comments welcome. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198187 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-12-021-6/+10
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: More commenting, changed definition of isResolved() somewhat in LinkResolver and UnresolvedPageNumber. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198183 13f79535-47bb-0310-9956-ffa450edef68
* More commenting, slightly clearer method names.Glen Mazza2004-12-021-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198182 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-12-011-2/+1
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Minor simplifications and more commenting added. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198181 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-11-291-60/+41
| | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) More cleanup/commenting of AreaTreeHandler. Removed the unused (disabled) manual garbage collection code. 2.) Removed renderContainer from Renderer interface, not required. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198177 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-11-271-33/+37
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Removed unused logger from FOEventHandler and commented the AreaTreeHandler to make it more understandable (particularily idref resolving code.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198176 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-281-2/+1
| | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) Changed OffDocumentItem from an interface to an abstract base class. 2.) Removed the "extensions" package. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198105 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-271-6/+6
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Rename of TreeExt interface to somewhat more intuitive OffDocumentItem. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198104 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-241-58/+55
| | | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) Rename of interface Resolveable to Resolvable. (http://dictionary.reference.com/search?q=resolvable) 2.) Reordering of methods in AreaTreeHandler, removal of unneeded TreeExt array. 3.) Switch from AreaTreeModel.addExtension() to .handleExtension(). 4.) Removal of unneeded TreeExt.getName() (unused), getMimeType() (implementation of an Area Tree extension up to each renderer), and isResolvable() (code changed to use instanceof operator instead). 5.) Couple of minor layout bugs fixed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198098 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-041-16/+5
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) BookmarkData now activates AreaTreeModel instead of AreaTreeHandler. 2.) Some methods moved from public to private in AreaTreeHandler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198006 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-021-15/+0
| | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) Temporary commenting out of TableAttributesConverter code until missing code checked in. 2.) Code simplification of having AbstractLayoutManager call the fObj.AddLayoutManager() directly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197996 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-09-271-42/+0
| | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) endofNode() implemented in pagination.Root, allowing for validation logic in ATH to be removed. 2.) more direct access of AreaTreeModel in PSLM. 3.) more simplifications in ATH. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197977 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-09-261-86/+17
| | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) Renamed PageLayoutManager to somewhat more intuitive PageSequenceLayoutManager. 2.) Moved layout logic for the fo:title of an fo:page-sequence from AreaTreeHandler to PSLM. Also moved page number initialization logic there. Comments most welcome. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197976 13f79535-47bb-0310-9956-ffa450edef68
* Removal of empty Title subclass, now using LineArea.Glen Mazza2004-09-251-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197975 13f79535-47bb-0310-9956-ffa450edef68
* Removed unneeded import statements. Makes eclipse happy.Finn Bock2004-09-071-7/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197933 13f79535-47bb-0310-9956-ffa450edef68
* Renamed FOInputHandler to somewhat more intuitive FOEventHandler.Glen Mazza2004-09-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197911 13f79535-47bb-0310-9956-ffa450edef68