public void addChildArea(Area childArea) {
}
- /**
- * Add the id to the page.
- * If the id string is not null then add the id to the current page.
- */
- protected void addID(String foID) {
- if (foID != null && foID.length() > 0) {
- getPSLM().addIDToPage(foID);
- }
- }
-
/**
* Handles retrieve-marker nodes as they occur.
* @param foNode FO node to check
addBlockSpacing(0.0, new MinOptMax(layoutContext.getSpaceBefore()));
}
- addID(getBlockContainerFO().getId());
+ getPSLM().addIDToPage(getBlockContainerFO().getId());
//addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
getCurrentPV().addMarkers(markers, true, true, false);
}*/
BreakPoss bp1 = (BreakPoss)parentIter.peekNext();
- addID(getBlockContainerFO().getId());
+ getPSLM().addIDToPage(getBlockContainerFO().getId());
getCurrentPV().addMarkers(markers, true, bp1.isFirstArea(), bp1.isLastArea());
LayoutManager childLM;
foBlockSpaceBefore = null;
if (!isBogus()) {
- addID(getBlockFO().getId());
+ getPSLM().addIDToPage(getBlockFO().getId());
getCurrentPV().addMarkers(markers, true, bp1.isFirstArea(),
bp1.isLastArea());
}
addBlockSpacing(0.0, new MinOptMax(layoutContext.getSpaceBefore()));
}
- addID(getBlockFO().getId());
+ getPSLM().addIDToPage(getBlockFO().getId());
//addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
getCurrentPV().addMarkers(markers, true, true, false);
}
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
}
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
}
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
package org.apache.fop.layoutmgr;
// Java
-import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
// FOP
* @see org.apache.fop.layoutmgr.LeafNodeLayoutManager#addId()
*/
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
}
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
}
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
}
protected void addId() {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
}
* @param id the ID reference to add
*/
public void addIDToPage(String id) {
- areaTreeHandler.associateIDWithPageViewport(id, curPV);
+ if (id != null && id.length() > 0) {
+ areaTreeHandler.associateIDWithPageViewport(id, curPV);
+ }
}
/**
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.layoutmgr.NonLeafPosition;
import org.apache.fop.area.Area;
int nameId = fobj.getNameId();
if (nameId == FO_LIST_ITEM_LABEL) {
- addID(((ListItemLabel) fobj).getId());
+ getPSLM().addIDToPage(((ListItemLabel) fobj).getId());
} else if (nameId == FO_LIST_ITEM_BODY) {
- addID(((ListItemBody) fobj).getId());
+ getPSLM().addIDToPage(((ListItemBody) fobj).getId());
}
LayoutManager childLM = null;
addBlockSpacing(adjust, spaceBefore);
spaceBefore = null;
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
// the list block contains areas stacked from each list item
addBlockSpacing(adjust, spaceBefore);
spaceBefore = null;
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
LayoutContext lc = new LayoutContext(0);
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext) {
getParentArea(null);
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
LayoutManager childLM;
int iStartPos = 0;
import org.apache.fop.layoutmgr.MinOptMaxUtil;
import org.apache.fop.layoutmgr.NonLeafPosition;
import org.apache.fop.layoutmgr.PositionIterator;
-import org.apache.fop.layoutmgr.BreakPossPosIter;
import org.apache.fop.layoutmgr.Position;
import org.apache.fop.layoutmgr.TraitSetter;
import org.apache.fop.area.Area;
bBogus = false;//!bp1.generatesAreas();
if (!isBogus()) {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
if (fobj.isSeparateBorderModel()) {
BreakPoss bp1 = (BreakPoss)parentIter.peekNext();
bBogus = !bp1.generatesAreas();
if (!isBogus()) {
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
}
Cell childLM;
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext) {
getParentArea(null);
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
LayoutManager childLM;
int iStartPos = 0;
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext) {
getParentArea(null);
- addID(fobj.getId());
+ getPSLM().addIDToPage(fobj.getId());
// if adjusted space before
double adjust = layoutContext.getSpaceAdjust();