aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Make it possible to keep block-container element lists apart from normal ↵Jeremias Maerki2005-08-021-0/+7
| | | | | | page-level element lists. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227026 13f79535-47bb-0310-9956-ffa450edef68
* Send the ID of the producing FO to the area tree as trait where possible. Jeremias Maerki2005-07-261-0/+2
| | | | | | This is useful for testing and may later be interesting for FO editor implementors and for other things where you want to identify the generating FO from a particular object in the output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225268 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/+6
| | | | | | | | | 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
* Removed LM.initialize() -- switched to internal initialization of all LM's.Glen Mazza2005-06-071-4/+2
| | | | | | | | | | | | 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-16/+26
| | | | | | | | | | | | | 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
* Bugfix for a ClassCastException on autoheight block-containers where ↵Jeremias Maerki2005-05-181-11/+16
| | | | | | | | | Position instances come through for normal penalties between blocks. Additional fix so a distinction is made between space-related positions and the penalties that caused the problem above. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198655 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for space-after on fixed-height block-containers.Jeremias Maerki2005-05-181-121/+88
| | | | | | | Code cleanup. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198652 13f79535-47bb-0310-9956-ffa450edef68
* Removed a lot of obsolete code from the old page breaking approach.Jeremias Maerki2005-05-171-353/+53
| | | | | | | Some style improvements here and there. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198643 13f79535-47bb-0310-9956-ffa450edef68
* Footnote implementation: changes to existing filesLuca Furini2005-05-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198637 13f79535-47bb-0310-9956-ffa450edef68
* Merge of branch Temp_KnuthStylePageBreaking back into HEAD.Jeremias Maerki2005-05-131-65/+688
| | | | | | | 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-2/+2
| | | | 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-2/+3
| | | | | | | | | | 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
* Bugfix for layout of block-containers with fixed BPD. They weren't properly ↵Jeremias Maerki2005-01-261-6/+27
| | | | | | | | | broken over to the next page if they didn't fit. If autoHeight is false, the whole block-container is considered a non-breakable block. Seems to match the behaviour of other implementations but I still haven't found the right place in the spec. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198322 13f79535-47bb-0310-9956-ffa450edef68
* Removed unnecessary parameterJeremias Maerki2005-01-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198315 13f79535-47bb-0310-9956-ffa450edef68
* Setting IPD and BPD before adding background traitsJeremias Maerki2005-01-241-6/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198301 13f79535-47bb-0310-9956-ffa450edef68
* Fix space-before|after handling for block-containers (only a minimal fix, ↵Jeremias Maerki2005-01-181-25/+81
| | | | | | doesn't take space-resolution into account, yet) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198282 13f79535-47bb-0310-9956-ffa450edef68
* Fix for auto height on absolutely positioned block-containers.Jeremias Maerki2005-01-171-39/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198277 13f79535-47bb-0310-9956-ffa450edef68
* block-containers improved/fixed. The following features are implemented and ↵Jeremias Maerki2005-01-171-103/+186
| | | | | | | | | | | | testcases exist: left, right, top, bottom, width, height, block-progression-dimension (partial), inline-progression-dimension (partial), borders, padding, indents, reference-orientation. autoheight works only for in-flow BCs ATM. start-indent calculation fixed: uses inherited value if rules in 5.3.2 don't apply. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198272 13f79535-47bb-0310-9956-ffa450edef68
* Removed the "inheritedStartIndent" hack again.Jeremias Maerki2005-01-121-19/+110
| | | | | | | | | Switched to start|end-indent-oriented calculation. Improved line painting in the PDFRenderer. Some improvements in BlockContainerLayoutManager (but still WIP ATM). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198259 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-11-241-11/+11
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) Removed unneeded enumeration interfaces from fo.Constants. 2.) Appended EN_ to enumeration constants to make them better S&R'able throughout app. 3.) Added an EN_INHERIT enumeration constant (although not currently used in the system.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198175 13f79535-47bb-0310-9956-ffa450edef68
* Removed special case handling of "auto" enum for length properties.Finn Bock2004-10-281-5/+5
| | | | | | | | Added general support for "auto" and other enums on Length and Numeric properties. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198107 13f79535-47bb-0310-9956-ffa450edef68
* Third phase of performance improvement.Finn Bock2004-10-191-44/+26
| | | | | | | | - Use CommonBorderPaddingBackground. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198072 13f79535-47bb-0310-9956-ffa450edef68
* Second phase of performance improvement.Finn Bock2004-10-191-2/+2
| | | | | | | | | - Only get base properties from property list. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198063 13f79535-47bb-0310-9956-ffa450edef68
* Set content ipd/bpd instead of allocation width/height.Finn Bock2004-09-221-20/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197958 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
* PR:Glen Mazza2004-08-291-5/+2
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: Convenience method fobj.getPropLength() added to simplify some of the code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197895 13f79535-47bb-0310-9956-ffa450edef68
* Removed getPropertyList() method from PropertyManager, as that methodGlen Mazza2004-05-261-2/+2
| | | | | | | | is already available on the FObj (which owns both the PropertyList and the PropertyManager.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197632 13f79535-47bb-0310-9956-ffa450edef68
* Removed PropertyManager argument from initProperties(), as it is alreadyGlen Mazza2004-05-261-20/+20
| | | | | | | available within its FObj object. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197631 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-05-151-0/+8
| | | | | | | | | | 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
* Removed the getLogger() and setLogger() from FOUserAgent; replaced with ↵Glen Mazza2004-05-121-1/+1
| | | | | | | | | Commons Logging equivalents in places where previously used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197591 13f79535-47bb-0310-9956-ffa450edef68
* Merged LayoutProcessor into LayoutManager interface.Glen Mazza2004-03-211-5/+5
| | | | 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-48/+16
| | | | | | 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
* Use the new property expressions. Clients must use Length when retrievingFinn Bock2004-02-261-0/+6
| | | | | | | | | | a length and must delay the call to Length.getValue() until the baselength has been assigned by the LayoutManagers. PR: 26778 (second half) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197382 13f79535-47bb-0310-9956-ffa450edef68
* Set correct ipd/bpd of both the viewport and reference area.Finn Bock2004-02-101-11/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197347 13f79535-47bb-0310-9956-ffa450edef68
* Set the SPACE_START and SPACE_END traits and adjust the height to takeFinn Bock2004-01-291-2/+13
| | | | | | | | | border and padding into account. PR: 25802. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197294 13f79535-47bb-0310-9956-ffa450edef68
* Moved the interfaces into the Constants class on a trial basis (we may stillGlen Mazza2004-01-171-2/+0
| | | | | | | | | | | | choose to remove them in favor of strictly using Constants.) Two interfaces (span and position) were removed because of conflicts with other class names. The interface generation was moved into Constants.xsl, which is run manually via the XsltToJava ant task and its output is then checked in. As a result, no more autogeneration of these interfaces at build time will be done. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197213 13f79535-47bb-0310-9956-ffa450edef68
* More String->int conversions, annoyingly incremental but I'm getting there...Glen Mazza2003-12-291-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197076 13f79535-47bb-0310-9956-ffa450edef68
* Conversion of more properties from Strings to ints.Glen Mazza2003-12-281-5/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197072 13f79535-47bb-0310-9956-ffa450edef68
* 1. Moved static element and property structures from PropertyList ↵Glen Mazza2003-12-201-1/+1
| | | | | | | | | | | | (previously in former PropertyListBuilder) to FObj 2. Renamed FObj "properties" instance variable to "propertyList" (reduces confusion on the type of object holding FO property information in the code) 3. Unneeded imports removed (Finn Bock's patch, Bug #25582). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197042 13f79535-47bb-0310-9956-ffa450edef68
* remove global import statementsWilliam Victor Mote2003-09-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196891 13f79535-47bb-0310-9956-ffa450edef68
* move layoutmgr/MinOptMax to traits/MinOptMaxWilliam Victor Mote2003-08-281-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196870 13f79535-47bb-0310-9956-ffa450edef68
* make area/CTM.getCTMandRelDims() more general by decoupling it from ↵William Victor Mote2003-08-241-2/+4
| | | | | | fo/PropertyManager git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196832 13f79535-47bb-0310-9956-ffa450edef68
* move fo/PropertyManager.getCTMandRelDims() to area/CTM.getCTMandRelDims(), ↵William Victor Mote2003-08-231-2/+2
| | | | | | adding PropertyManager as a parameter, and making the method static. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196829 13f79535-47bb-0310-9956-ffa450edef68
* move the "common" property classes from layout to fo.properties, renaming ↵William Victor Mote2003-08-121-2/+2
| | | | | | them with a "Common" prefix git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196790 13f79535-47bb-0310-9956-ffa450edef68
* Clean up javadoc warnings.William Victor Mote2003-04-261-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196351 13f79535-47bb-0310-9956-ffa450edef68
* Moved sources from src/org/** to src/java/org/**Jeremias Maerki2003-03-111-0/+343
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196061 13f79535-47bb-0310-9956-ffa450edef68