aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-05-17 17:00:25 +0000
committerJeremias Maerki <jeremias@apache.org>2005-05-17 17:00:25 +0000
commitedf6eeea2518fc8ed99b91f4dc85fc98f11d4edf (patch)
treefb1d945aa1ea2478c84702e250e017af863a051b /src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java
parent907fad82cc5494c0aba8679e0ea7523257540144 (diff)
downloadxmlgraphics-fop-edf6eeea2518fc8ed99b91f4dc85fc98f11d4edf.tar.gz
xmlgraphics-fop-edf6eeea2518fc8ed99b91f4dc85fc98f11d4edf.zip
Removed a lot of obsolete code from the old page breaking approach.
Some style improvements here and there. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198643 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java
index 639eaf3a2..e48531c2c 100644
--- a/src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/table/TableAndCaptionLayoutManager.java
@@ -20,19 +20,11 @@ package org.apache.fop.layoutmgr.table;
import org.apache.fop.fo.flow.TableAndCaption;
import org.apache.fop.layoutmgr.BlockStackingLayoutManager;
-import org.apache.fop.layoutmgr.LayoutManager;
-import org.apache.fop.layoutmgr.LeafPosition;
-import org.apache.fop.layoutmgr.BreakPoss;
import org.apache.fop.layoutmgr.LayoutContext;
import org.apache.fop.layoutmgr.PositionIterator;
-import org.apache.fop.layoutmgr.BreakPossPosIter;
import org.apache.fop.layoutmgr.Position;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
-import org.apache.fop.traits.MinOptMax;
-
-import java.util.ArrayList;
-import java.util.List;
/**
* LayoutManager for a table-and-caption FO.
@@ -40,17 +32,18 @@ import java.util.List;
* The caption contains blocks that are positioned next to the
* table on the caption side.
* The caption blocks have an implicit keep with the table.
+ * @todo Implement getNextKnuthElements()
*/
public class TableAndCaptionLayoutManager extends BlockStackingLayoutManager {
private TableAndCaption fobj;
private Block curBlockArea;
- private List childBreaks = new ArrayList();
+ //private List childBreaks = new java.util.ArrayList();
/**
* Create a new table and caption layout manager.
- *
+ * @param node table-and-caption FO
*/
public TableAndCaptionLayoutManager(TableAndCaption node) {
super(node);
@@ -63,6 +56,7 @@ public class TableAndCaptionLayoutManager extends BlockStackingLayoutManager {
* @param context the layout context for getting breaks
* @return the next break possibility
*/
+ /*
public BreakPoss getNextBreakPoss(LayoutContext context) {
LayoutManager curLM; // currently active LM
@@ -128,7 +122,7 @@ public class TableAndCaptionLayoutManager extends BlockStackingLayoutManager {
}
setFinished(true);
return null;
- }
+ }*/
/**
* Add the areas.
@@ -141,24 +135,24 @@ public class TableAndCaptionLayoutManager extends BlockStackingLayoutManager {
getParentArea(null);
getPSLM().addIDToPage(fobj.getId());
+ /* TODO: Reimplement using Knuth approach
LayoutManager childLM;
int iStartPos = 0;
LayoutContext lc = new LayoutContext(0);
while (parentIter.hasNext()) {
LeafPosition lfp = (LeafPosition) parentIter.next();
// Add the block areas to Area
- PositionIterator breakPosIter =
- new BreakPossPosIter(childBreaks, iStartPos,
- lfp.getLeafPos() + 1);
+ PositionIterator breakPosIter = new BreakPossPosIter(
+ childBreaks, iStartPos, lfp.getLeafPos() + 1);
iStartPos = lfp.getLeafPos() + 1;
while ((childLM = breakPosIter.getNextChildLM()) != null) {
childLM.addAreas(breakPosIter, lc);
}
- }
+ }*/
flush();
- childBreaks.clear();
+ //childBreaks.clear();
curBlockArea = null;
}