aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/TableBody.java
Commit message (Collapse)AuthorAgeFilesLines
* Moved table-related FObj into new o.a.fop.fo.flow.table packageVincent Hennebert2007-11-051-243/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592103 13f79535-47bb-0310-9956-ffa450edef68
* First step towards building row groups at the FO tree stage. The built row ↵Vincent Hennebert2007-11-051-0/+17
| | | | | | | | | | groups are currently not used and the TableRowIterator stuff remains unchanged; this allows for more atomic commits. - introduced RowGroupBuilder hierarchy; - moved TableRowIterator test cases into fotree, and integrated them in the test suite. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592058 13f79535-47bb-0310-9956-ffa450edef68
* Reworked the creation of implicit columns to match new behaviour: the number ↵Vincent Hennebert2007-11-021-5/+11
| | | | | | of columns of a table without explicit fo:table-column is set by the row that has the most columns. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591299 13f79535-47bb-0310-9956-ffa450edef68
* - factored the management of column numbers into a separate helper classVincent Hennebert2007-10-301-169/+48
| | | | | | | | | | | | | - moved the PendingSpan inner class from TableFObj into TableCellContainer, where it's a bit more appropriate - simplified the getTable method in TableFObj by overriding it in Table - simplified the propertyMaker for column-number: now it's the table-cell which notifies the parent table-body that it starts a new row. As an additional benefit the propertyMaker for starts-row is now called only once, instead of twice before - reworked, factored and simplified the handling of column indices in TableCellContainer - bugfix: repeated fo:table-column were not added at the right place in the column lists - bugfix: width set on cell on second row was applied to the column's width, whereas it shouldn't - checkstyle cleanup git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590136 13f79535-47bb-0310-9956-ffa450edef68
* Made the columns field in Table private, and created suitable accessors to itVincent Hennebert2007-10-261-18/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588604 13f79535-47bb-0310-9956-ffa450edef68
* Moved the creation of the columns list to the declaration of the columns ↵Vincent Hennebert2007-10-261-6/+0
| | | | | | field. Even if there are no explicit columns the list will have to be created anyway. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588597 13f79535-47bb-0310-9956-ffa450edef68
* Created an abstract TableCellContainer class meant to contain the logic in ↵Vincent Hennebert2007-10-261-26/+2
| | | | | | | | | TableRowIterator. Factored some code common to TableBody and TableRow in it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588586 13f79535-47bb-0310-9956-ffa450edef68
* * Javadoc update: use {@inheritDoc} instead of @see where applicable, ↵Andreas L. Delmelle2007-07-181-30/+10
| | | | | | | | | | 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 41656:Andreas L. Delmelle2007-07-071-52/+4
| | | | | | | | | | | | | Refactoring in the fo package: -> removal of the childNodes instance member in fop.fo.FObj -> addition of a firstChild instance member in fop.fo.FObj -> addition of a siblings instance member in fop.fo.FONode -> addition of a FONodeIterator interface in FONode + corresponding implementation in FObj -> changed implementations of FObj.addChildNode(), .removeChild() and .getChildNodes() git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554104 13f79535-47bb-0310-9956-ffa450edef68
* Code cleanup: Andreas L. Delmelle2007-01-111-1/+1
| | | | | | | | | | | - avoid unnecessary calls to getLogger(); LengthBase gets its own logger, LMs log to the AbstractLM logger - CommonBorderPaddingBackground no longer implements Cloneable (changes suggested by Richard Wheeldon) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@495371 13f79535-47bb-0310-9956-ffa450edef68
* Comment out unused properties. Patch by Richard WheeldonSimon Pepping2006-12-201-8/+6
| | | | | | | | <richardw@geoquip-rnd.demon.co.uk>. ASF Bugzilla Bug 41044, attachment 19177. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@488960 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a few JavaDoc errors. Removed some apparently unused/obsolete methods.Joerg Pietschmann2006-10-071-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@454018 13f79535-47bb-0310-9956-ffa450edef68
* Rework of default column-creation and setting column-widths from the first ↵Andreas L. Delmelle2006-08-211-2/+43
| | | | | | row (fixes Bugzilla 35656) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@433291 13f79535-47bb-0310-9956-ffa450edef68
* Rework of the marker/retrieve-marker implementation to cater for correct ↵Andreas L. Delmelle2006-08-061-51/+78
| | | | | | evaluation of percentages and relative font-sizes, as well as more correct white-space handling. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@429168 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
* Fixes Bugzilla 39560: make sure the interaction between FOs and properties ↵Andreas L. Delmelle2006-06-061-101/+67
| | | | | | is only performed once git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412224 13f79535-47bb-0310-9956-ffa450edef68
* Implementation for from-table-column(). See: bugzilla 38282Andreas L. Delmelle2006-01-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373922 13f79535-47bb-0310-9956-ffa450edef68
* Made the FO tree a little more consistent by renaming getName() to ↵Jeremias Maerki2005-11-111-5/+3
| | | | | | getLocalName() and adding additional methods like: getNamespaceURI() and getNormalNamespacePrefix(). getName() now returns the fully qualified name combined from getLocalName() and getNormalNamespacePrefix(). For special cases you can call getName(String) to return a different namespace prefix. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332545 13f79535-47bb-0310-9956-ffa450edef68
* Moved check for explicit column-number to ColumnNumberPropertyMakerAndreas L. Delmelle2005-09-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@291270 13f79535-47bb-0310-9956-ffa450edef68
* Java 1.3 compatibility.Jeremias Maerki2005-09-221-3/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290962 13f79535-47bb-0310-9956-ffa450edef68
* Update for initial-values of column-number + some pending style-violation ↵Andreas L. Delmelle2005-09-201-11/+15
| | | | | | corrections git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290540 13f79535-47bb-0310-9956-ffa450edef68
* Correction of style violationsAndreas L. Delmelle2005-09-191-25/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290270 13f79535-47bb-0310-9956-ffa450edef68
* Implementation for initial values of the column-number propertyAndreas L. Delmelle2005-09-171-12/+191
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289865 13f79535-47bb-0310-9956-ffa450edef68
* Added support for table border-*-precedence properties in the tableFinn Bock2005-08-261-8/+9
| | | | | | | | fo objects. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240173 13f79535-47bb-0310-9956-ffa450edef68
* Switch to .equals() instead of == for String compares of namespaces. Thanks ↵Glen Mazza2005-06-261-1/+1
| | | | | | to Nils Meier for the suggestion. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@201864 13f79535-47bb-0310-9956-ffa450edef68
* Merge of branch Temp_KnuthStylePageBreaking back into HEAD.Jeremias Maerki2005-05-131-2/+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
* Validation for fo:table and fo:table-header added, some minor ↵Glen Mazza2005-03-051-32/+26
| | | | | | simplifications in other places. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198466 13f79535-47bb-0310-9956-ffa450edef68
* Corrected a validation problem. Made TableFooter use TableBody's validation.Simon Pepping2005-03-021-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198465 13f79535-47bb-0310-9956-ffa450edef68
* Flag added in FOUserAgent for strict/unstrict validation (see TableBody to ↵Glen Mazza2005-03-021-5/+47
| | | | | | | | | see how used.) Validation added (only strict version) for TableFooter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198463 13f79535-47bb-0310-9956-ffa450edef68
* An empty table-body is illegal but we'll allow it to make things easier for ↵Jeremias Maerki2005-02-231-1/+8
| | | | | | | | | stylesheet writers. Empty table-body elements are removed from their parent so they can't cause any nasty effects in the LMs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198457 13f79535-47bb-0310-9956-ffa450edef68
* First real step towards collapsing table borders.Jeremias Maerki2005-02-211-0/+18
| | | | | | | | | | | border-collapse="collapse" rules implemented but not fully tested, yet. Collapsing of borders works only for start and end borders, yet, and there only for non-spanned cells. CellLM is now prepared to get the full list of grid unit it occupies (necessary for collapsed border painting). Row.CellInfo extracted and renamed to GridUnit. WIP... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198450 13f79535-47bb-0310-9956-ffa450edef68
* Support for table-cells as direct children of table-body|header|footer.Jeremias Maerki2005-02-081-3/+51
| | | | | | | | The table-cells are grouped into table-rows using starts-row and ends-row properties during FO tree building so the layout managers don't have to handle both cases. This will hopefully keep the code simpler. Additional accessors on some FO objects. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198391 13f79535-47bb-0310-9956-ffa450edef68
* This patch implements a pluggable LayoutManagers system, accordingSimon Pepping2004-12-241-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* More properties implemented.Finn Bock2004-10-291-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198112 13f79535-47bb-0310-9956-ffa450edef68
* New exception hierarchy rooted in SAXException and throw clauses onFinn Bock2004-10-281-7/+4
| | | | | | | | | property parsing and retrieval. PR: 31899 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198106 13f79535-47bb-0310-9956-ffa450edef68
* Second phase of performance improvement.Finn Bock2004-10-191-18/+0
| | | | | | | | | - Removed addProperties() method and misc old property fields. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198065 13f79535-47bb-0310-9956-ffa450edef68
* First phase of performance improvement. Added bind() and startOfNode()Finn Bock2004-10-191-3/+51
| | | | | | | | | methods to the FO nodes, unused for now. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198054 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Start of work to move FOText from extending FObj to extending FONode instead. All work is done except for changing FObj's parent from FObj to FONode. The RTF library works fine with the switch, but simple.fo and franklin_alt.fo (among others I guess) will not work properly when FOText's parent is switched. (Layout problems occur--lines don't break properly with the switch.) Switch to super() constructor (instead of super(fobj) one) within within TextLayoutManager, as it is not needed for this subclass, also to facilitate the change above. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198040 13f79535-47bb-0310-9956-ffa450edef68
* Removed tab characters.Jeremias Maerki2004-09-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197939 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
* 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
* PR:Glen Mazza2004-08-291-4/+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
* 1. Implemented validateChildNode() for fo:simple-page-master. This may ↵Glen Mazza2004-08-251-2/+2
| | | | | | | | | | | | | | | cause some stress with the user community--as any declared fo:region-xxxx children must follow a specific ordering. 2. Modified several of our sample and test FO files to be compliant with the XSL spec with respect to the change above. 3. @todo's added to FO's still missing validateChildNode() 4. New FONode missingPropertyError() method created, for the major cases where missing properties should halt processing. 5. Various cleanup in our layout-master-set and region classes, including the removal of error checks that are no longer needed due to validateChildNode() being implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197889 13f79535-47bb-0310-9956-ffa450edef68
* 1.) LM initialization logic for fo:table-body, fo:table-footer, and ↵Glen Mazza2004-08-111-12/+16
| | | | | | | | | | | | | fo:table-header moved out of AddLMVisitor. 2.) New LayoutManager subclass created for fo:external-graphic formatting object. 3.) ValidateChildNode(), endOfNode() implemented for fo:float. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197866 13f79535-47bb-0310-9956-ffa450edef68
* 1. For maintenance and accuracy, centralized the setupID() functionalityGlen Mazza2004-08-111-29/+1
| | | | | | | | | | | | from the various FO's to the FObj base class. 2. Created a lookup bitset in PropertySets to help accomplish the above. 3. Generally moved initialization code from the setup() methods to the addProperties() methods in the various FO subclasses. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197865 13f79535-47bb-0310-9956-ffa450edef68
* Created a BitSet indicating FO's that can contain fo:marker child elements,Glen Mazza2004-08-081-7/+0
| | | | | | | removed all containsMarkers() methods from FObj subclasses. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197862 13f79535-47bb-0310-9956-ffa450edef68
* Implemented getNameId() which returns the Constants enumeration IDGlen Mazza2004-08-081-0/+7
| | | | | | | for the FO. For future array work or to reduce the amount of string comparisons being done. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197861 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-08-061-1/+3
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1.) Continued conversion/deprecation of AddLMVisitor. About 16 FO's remaining. 2.) Created a *temporary* LMVisited interface to mark those FO's still needing conversion. This will be dropped once the process is complete. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197857 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved from FOPException to SAXParseException for addProperties()Glen Mazza2004-08-011-3/+2
| | | | | | | | | 2.) FONode: locator object added, its three components (file, line, col) removed 3.) FONode: new attributeError() method created for attribute problems in input FO. 4.) Removed some setup() methods in the FO's, placed them in addProperties() instead. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197847 13f79535-47bb-0310-9956-ffa450edef68
* Removed the FOTreeVisitor interface in favor of a moreGlen Mazza2004-07-271-6/+5
| | | | | | | | direct connection to (the subclassable) AddLMVisitor in the FO's. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197845 13f79535-47bb-0310-9956-ffa450edef68