aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/LayoutManager.java
Commit message (Collapse)AuthorAgeFilesLines
* generatesInlineAreas() methods removed.Glen Mazza2005-06-101-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198741 13f79535-47bb-0310-9956-ffa450edef68
* Removed unused functions. Team, I switched from generatesInlineAreas() callsGlen Mazza2005-06-101-12/+0
| | | | | | | | | to "instanceof InlineLevelLayoutManager", because AFAICT there is a 1-to-1 mapping between the two. If no one has problems with this, I will be removing the generatesInlineAreas() implementations next. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198736 13f79535-47bb-0310-9956-ffa450edef68
* LayoutManager.canBreakBefore() removed.Glen Mazza2005-06-081-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198721 13f79535-47bb-0310-9956-ffa450edef68
* Removed LM.initialize() -- switched to internal initialization of all LM's.Glen Mazza2005-06-071-5/+0
| | | | | | | | | | | | 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
* New member variable "index" on Position (used for first/last checks).Jeremias Maerki2005-05-301-12/+2
| | | | | | | | | | | | | Position numbering implemented in BlockStackingLayoutManager (see member variables: lastGeneratedPosition and smallestPosNumberChecked) Use notifyPos to give a Position an index (Don't reuse Position instances that get an index!) Flags on TableContentPosition indicating first and last status (see TableStepper). New way of determining first/last area implemented on all currently implemented block-level FOs. Removed obsolete isBogus() method from LayoutManager. Removed duplicate wrapPositionElements() method in FlowLayoutManager. Some javadocs here and there. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198701 13f79535-47bb-0310-9956-ffa450edef68
* Removed a lot of obsolete code from the old page breaking approach.Jeremias Maerki2005-05-171-11/+0
| | | | | | | Some style improvements here and there. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198643 13f79535-47bb-0310-9956-ffa450edef68
* PSLM.getParentArea() consolidated into FLM's version; preLoadList()Glen Mazza2005-05-141-3/+3
| | | | | | | preLoadNext() renamed to clearer createChildLMs()/createNextChildLMs(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198630 13f79535-47bb-0310-9956-ffa450edef68
* Merge of branch Temp_KnuthStylePageBreaking back into HEAD.Jeremias Maerki2005-05-131-78/+30
| | | | | | | 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
* Changed from addChild(Area) to clearer addChildArea(Area).Glen Mazza2005-03-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198499 13f79535-47bb-0310-9956-ffa450edef68
* Corrected the logic of adding markers. LayoutManagers are responsibleSimon Pepping2005-02-201-3/+4
| | | | | | | | | | for correctly setting is-first and is-last on the BreakPoss and from there in the arguments of the addMarkers method. Implemented this for BlockLM. Also made a small change in the retrieval of markers from preceding pages. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198447 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
* Temporary fix for markers (using isBogus() check)Jeremias Maerki2005-02-071-1/+12
| | | | | | | ipd/height and display-align support for table rows and cells. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198387 13f79535-47bb-0310-9956-ffa450edef68
* This patch implements a pluggable LayoutManagers system, accordingSimon Pepping2004-12-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove unused import statements.Finn Bock2004-12-101-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198197 13f79535-47bb-0310-9956-ffa450edef68
* Patch 31206 by Luca Furini:Simon Pepping2004-11-131-15/+0
| | | | | | | | | | | | | | | | | - A new interface InlineLevelLayoutManager, implemented by LeafNodeLM, InlineLM, TextLM, BasicLinkLM and ContentLM - Leaders with pattern "use-content" and "dots" now works - Better handling of preserved linefeeds - Correct calculation of the lineheight, according to the value of the property vertical-align For a few points which may need further work, see the bugzilla page. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198142 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-241-5/+5
| | | | | | | | | | | | | | | | 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-021-7/+0
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Removed no-longer-used getAreaTreeHandler() from LM's. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197997 13f79535-47bb-0310-9956-ffa450edef68
* Removed unneeded import statements. Makes eclipse happy.Finn Bock2004-09-071-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197933 13f79535-47bb-0310-9956-ffa450edef68
* New line breaking algorithm, patch 29124, submitted by LucaSimon Pepping2004-09-051-0/+15
| | | | | | | | | | | | | Furini. This patch implements the algorithm for most but not yet all inline layout managers. For the algorithm, see D.E. Knuth and M.F. Plass, "Breaking paragraphs into lines", Software, Practice and Experience 11 (1981) 1119-1184; reprinted in: D. E. Knuth, "Digital typography", CSLI Lecture Notes Number 78 (CLSI Publications, Stanford, CA, USA) pp. 67-155. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197907 13f79535-47bb-0310-9956-ffa450edef68
* Moved some functionality from LMiter to the LayoutManagers. The LMsSimon Pepping2004-08-261-0/+27
| | | | | | | | | | now hold the list of child LMs and the method preLoadNext. This makes it possible to create a new LMiter object for a LM, or even a list iterator over the list of child LMs if the latter is known to be complete. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197890 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Combined the AreaTree and FOTreeHandler into a new AreaTreeHandlerGlen Mazza2004-07-131-4/+4
| | | | | | | | | | | | object. FOTreeHandler was primarily acting as an AreaTreeHandler, and AreaTree had a 1-to-1 relationship with it. Comments most welcome. 2.) Created convenience methods in FOInputHandler for those subclasses which do not handle certain signals/events called from the formatting objects (i.e., AreaTreeHandler). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197784 13f79535-47bb-0310-9956-ffa450edef68
* Moved AddLMVisitor accessors into FOTreeHandler.Glen Mazza2004-06-131-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197704 13f79535-47bb-0310-9956-ffa450edef68
* Removed get/setUserAgent() initializations from the LayoutManagers. ↵Glen Mazza2004-06-121-14/+0
| | | | | | | | | | (Infrequently called, and already obtainable through AbstractLayoutManager's FObj member variable.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197701 13f79535-47bb-0310-9956-ffa450edef68
* Folded the layout strategy into apps.Document.Glen Mazza2004-05-181-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197605 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-05-151-2/+1
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Moved FOUserAgent, FObj initialization from AddLMVisitor to constructors of respective LayoutManagers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197602 13f79535-47bb-0310-9956-ffa450edef68
* Merged LayoutProcessor into LayoutManager interface.Glen Mazza2004-03-211-0/+182
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197466 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-271-46/+14
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* move fo/FOUserAgent to apps/FOUserAgent, as it manages configuration ↵William Victor Mote2003-08-221-1/+1
| | | | | | information for the application as a whole git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196827 13f79535-47bb-0310-9956-ffa450edef68
* Moved sources from src/org/** to src/java/org/**Jeremias Maerki2003-03-111-0/+85
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196061 13f79535-47bb-0310-9956-ffa450edef68