aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Added support for adding extension elements and foreign attributes on ↵Jeremias Maerki2009-03-011-0/+1
| | | | | | | | | | fo:page-sequence. AFP: Added support for Invoke Medium Map (IMM). AFP: Fixed a bug adding TLEs in DataStream (TLEs were added to the page group instead of to the page). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@748981 13f79535-47bb-0310-9956-ffa450edef68
* Fed up with all those trailing whitespaces. Let's remove them all (once... ↵Vincent Hennebert2008-07-241-10/+10
| | | | | | and for all?) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679326 13f79535-47bb-0310-9956-ffa450edef68
* Minor cleanup: remove redundant castAndreas L. Delmelle2008-06-231-7/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@670765 13f79535-47bb-0310-9956-ffa450edef68
* Added support for the natural language indentifier ("Lang" in the document ↵Jeremias Maerki2008-01-281-1/+7
| | | | | | catalog) for PDF documents based on the language/country values on fo:page-sequence. This required a few changes in the AreaTreeModel and the Renderer interface because it didn't support passing through the PageSequence object, only its title. Now, we can put other values on the PageSequence and transport them to the renderers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615906 13f79535-47bb-0310-9956-ffa450edef68
* Added new extension element: fox:external-document. It allows to add whole ↵Jeremias Maerki2007-12-271-359/+24
| | | | | | | | | documents such as multi-page TIFF images to be inserted as peers to a page-sequence. Each image will make up an entire page. See the documentation for details. ATM, only single pages are possible. Multi-page images will be supported with the new image package. Some preparations for page-position="only" but the implementation is incomplete and "only" has no effect, yet. (Just uploaded some stuff I once started) Some javadoc cleanups. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@607032 13f79535-47bb-0310-9956-ffa450edef68
* * Javadoc update: use {@inheritDoc} instead of @see where applicable, ↵Andreas L. Delmelle2007-07-181-2/+1
| | | | | | | | | | removal of some @author tags * Additional code cleanup: removal of unused imports (mainly in the fo.flow package) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@557337 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 42089: Cleanup and restructuring (suggested by Adrian Cumiskey)Andreas L. Delmelle2007-07-071-740/+49
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554094 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #42576Chris Bowditch2007-06-221-9/+24
| | | | | | | Fix bug in force-page-count Submitted by Adrian Cumiskey <dev.at.cumiskey.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@549767 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39840:Jeremias Maerki2006-08-041-3/+33
| | | | | | Changed the way overflowing pages are handled. The overflow property on region-body is now used to define the behaviour. It removes the "Some content could not fit..." exception that bugged so many. However, the change does not yet change any keep behaviour. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@428750 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a memory-leak: The FO tree part of a page-sequence was not released ↵Jeremias Maerki2006-08-031-0/+1
| | | | | | | | | when a page-sequence was finished. Added a "MemoryEater" debug helper which can replicate page-sequences of a regular FO file using the fo-replicator.xsl. Without the fix a JVM set to the normal 64MB heap size throws an OutOfMemoryError when replicating readme.fo 150 times. With the fix the memory consumption doesn't go above 10MB for the 1350 pages. Note that about one third of the time goes into garbage collection. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@428450 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
* Extended PageViewport to carry foreign attributes.Jeremias Maerki2006-05-181-0/+1
| | | | | | | | | | | | | Foreign attributes from simple-page-master are transferred to the PageViewport. Added foreign attributes handling in AreaTreeParser. Fixed proper generation of foreign attributes in XMLRenderer. EvalCheck extended so it can use namespace prefix mappings in its context. Test case for foreign attributes. Paper source/tray support for PCL (pcl:paper-source="<tray-code>" on s-p-m) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407541 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39443:Jeremias Maerki2006-05-071-2/+18
| | | | | | | Bugfix: Sections with span="all" lead to overlapping text if spanning multiple pages. Tables and list produced an illegal value for break class on normal breaks. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@404751 13f79535-47bb-0310-9956-ffa450edef68
* Content in block-containers makes better use of shrink to fit content ↵Jeremias Maerki2006-04-251-1/+1
| | | | | | | | | | vertically into the available area. This can be used indirectly to justify content vertically in a block-container. PageBreakingAlgorithm now writes to a different logger than its base class. Makes debugging easier. Some minor logging improvements to improve clarity. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396915 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: basic-links with internal destinations in documents with multiple ↵Jeremias Maerki2006-04-241-0/+2
| | | | | | 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/+52
| | | | | | | | | | | | | 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
* Initial support for page-position="last". Feedback requested!Jeremias Maerki2006-03-231-62/+167
| | | | | | See also: http://wiki.apache.org/xmlgraphics-fop/PagePositionLast git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388182 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed an NPE that was thrown when a table was used inside a ↵Jeremias Maerki2006-03-151-0/+1
| | | | | | footnote-body. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386015 13f79535-47bb-0310-9956-ffa450edef68
* Avoid a NullPointerException when fo:title is empty.Simon Pepping2006-02-241-3/+7
| | | | | | | Let PSLM and ContentLM create LMs via LayoutManagerMaker. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380646 13f79535-47bb-0310-9956-ffa450edef68
* (Re?)added integer page number to the PageViewport.Jeremias Maerki2006-01-201-1/+1
| | | | | | | | Serializing both the integer and the formatted value to the area tree XML. In the XML "nr" is now "formatted-nr" and "nr" is now the integer value. This doesn't have any impact on our layout engine tests as we don't seem to use a non-default for page numbers. Make the current PageViewport available to XMLHandler through the RenderContext. I need this for Barcode4J so the current page number can be used as part of a barcode message. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370801 13f79535-47bb-0310-9956-ffa450edef68
* The last page sequence should also follow its force-page-count trait.Simon Pepping2006-01-101-3/+5
| | | | | | | | 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
* Implementation of force-page-count property, patch by Gerhard Oettl,Simon Pepping2006-01-061-2/+74
| | | | | | | 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
* Further decoupling the area tree from the FO tree.Jeremias Maerki2005-12-211-86/+97
| | | | | | | Created a new class org.apache.fop.layoutmgr.Page that holds a reference to the generating SimplePageMaster and the PageViewport. A deserialized area tree doesn't need a reference to the SimplePageMaster. Renamed PageViewportProvider to PageProvider as it now returns Page instances, not (directly) PageViewports. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358254 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37964:Jeremias Maerki2005-12-201-1/+0
| | | | | | Hard breaks with even-page or odd-page were not handled correctly when spaces were surrounding the break. The code that retrieves the break-class from the penalty assumes that the penalty is on the last element in the list, but the space resolution added additional glues after the penalty. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357942 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37828:Jeremias Maerki2005-12-081-1/+3
| | | | | | Bugfix for column balancing with large amounts of text. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355042 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37813:Jeremias Maerki2005-12-071-1/+4
| | | | | | | Fixed a bug that occurred if the first block was span="all". A page break was inserted in this situation, the first span was calculated as if it were span="none". Code added to remove empty span areas. This is a lot easier and cleaner than trying not to instantiate the first span right from the beginning. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354752 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37468:Jeremias Maerki2005-11-111-3/+5
| | | | | | Bugfix: A normal break inside a table resulted in the next part to be sent to the next page instead of the next flow. TableContentLayoutManager produces KnuthPenalties with breakClass=0. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332594 13f79535-47bb-0310-9956-ffa450edef68
* Merged work on Temp_SpaceResolution branch into trunk (-r 320826:327988).Jeremias Maerki2005-10-241-4/+11
| | | | | | Source: http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution/ git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328010 13f79535-47bb-0310-9956-ffa450edef68
* Implemented the wrap-option property.Luca Furini2005-09-161-1/+1
| | | | | | The overflow property is not yet implemented, so at the moment if wrap-option = "no-wrap" and the text overflows it invades the margins. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289531 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36379:Finn Bock2005-08-311-0/+1
| | | | | | | | | | | | Revised percentage resolution system. Submitted by: Manuel Mall <mm.at.arcus.com.au> Slightly modified to avoid early evaluation of getValue(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265577 13f79535-47bb-0310-9956-ffa450edef68
* Use a more direct notify mechanism for the formatting resultsSimon Pepping2005-07-311-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@226627 13f79535-47bb-0310-9956-ffa450edef68
* Removing unused import.Finn Bock2005-07-281-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225743 13f79535-47bb-0310-9956-ffa450edef68
* Changes for restoring JDK 1.3 compatibility. Jeremias Maerki2005-07-271-8/+8
| | | | | | | | Submitted by: Robert Bielik <Robert.Bielik.at.gyros.com> (Patch committed with modifications and additional changes for test code) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225486 13f79535-47bb-0310-9956-ffa450edef68
* Various fixes for ID management. Jeremias Maerki2005-07-261-0/+1
| | | | | | Border/Padding/Background for instream-foreign-object and external-graphic. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225304 13f79535-47bb-0310-9956-ffa450edef68
* Moved inline-level LMs and support classes to "inline" subpackage.Jeremias Maerki2005-07-181-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@219509 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Proper handling of page break between normally broken parts and the ↵Jeremias Maerki2005-07-111-1/+8
| | | | | | parts that need to be balanced. (multi-column layout, fixes multi-column2a) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@210078 13f79535-47bb-0310-9956-ffa450edef68
* log statement should be debug().Jeremias Maerki2005-06-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@202494 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: IPD for footnote region now correct in multi-column layout. Jeremias Maerki2005-06-291-26/+198
| | | | | | | | | | | Next step at multi-column layout: - A multi-column section that needs column balancing is normally rendered until the next-to-last page. The rest of the element are re-broken by a special balancing page breaker. - Multiple spans supported in area tree and through break handling. - There are still problems with footnotes and column balancing. - Main layout loop changed to render an element list right after it's broken. The block lists are not collected anymore and then rendered. Bugfix: PageViewportProvider had a one-off (when accessing through "relative to current element list") git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@202368 13f79535-47bb-0310-9956-ffa450edef68
* First SVN commit. Trivial formatting change.Glen Mazza2005-06-241-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@201562 13f79535-47bb-0310-9956-ffa450edef68
* First parts on a page which don't fit are moved to the next page. A counter ↵Jeremias Maerki2005-06-231-0/+5
| | | | | | | | | avoids endless loops. Fixes normal-breaking5.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198768 13f79535-47bb-0310-9956-ffa450edef68
* breaks supported on tables, table-row and table-cell content now. Cheap ↵Jeremias Maerki2005-06-221-2/+2
| | | | | | | | | approach for now. TableContentLM is not yet restartable, but the Breaker handles that pretty well. Improved page break handling to support the different break classes even if no new block sequence is started. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198765 13f79535-47bb-0310-9956-ffa450edef68
* Added getPageViewportProvider().Jeremias Maerki2005-06-161-20/+60
| | | | | | | Code styling and javadocs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198749 13f79535-47bb-0310-9956-ffa450edef68
* Page breaking process now respects changing available BPD (not IPD) over ↵Jeremias Maerki2005-06-151-24/+102
| | | | | | | | | | multiple pages. PageSequenceMaster allows backtracking. PageViewports are delivered through a PageViewportProvider class which caches PVs and handles cases where the breaking algorithm allocates PVs that turn out to be unused later (because of hard breaks which may cause blank pages, for example). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198746 13f79535-47bb-0310-9956-ffa450edef68
* Switched to null for PageBreaker.getTopLevelLM().Glen Mazza2005-06-141-1/+1
| | | | | | | Not being used by the page-breaking process. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198743 13f79535-47bb-0310-9956-ffa450edef68
* More cleanup/simplifications.Glen Mazza2005-06-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198723 13f79535-47bb-0310-9956-ffa450edef68
* Removed LM.initialize() -- switched to internal initialization of all LM's.Glen Mazza2005-06-071-3/+7
| | | | | | | | | | | | Did initialization from constructor, as that appeared sufficient for all of them. Should for any LM, initialization not be available until the parentLM set, then we just need to do this process within a setParent() override. Also removed calls to superclass initialization, because as yet no initialization was occurring in those superclasses. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198719 13f79535-47bb-0310-9956-ffa450edef68
* Minor PSLM simplifications.Glen Mazza2005-06-061-24/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198718 13f79535-47bb-0310-9956-ffa450edef68
* Remainder of pslm.gKNE() consolidated into pb.gKNE().Glen Mazza2005-06-051-18/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198717 13f79535-47bb-0310-9956-ffa450edef68
* Two stray isBogus()es removed, AFAICT unnecessary childLC initializationGlen Mazza2005-06-041-17/+2
| | | | | | | removed from PSLM. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198716 13f79535-47bb-0310-9956-ffa450edef68
* Constructor for FLM now takes parent as parameter,Glen Mazza2005-06-011-10/+2
| | | | | | | | also setting of Reference Area dimensions moved to FLM. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198713 13f79535-47bb-0310-9956-ffa450edef68