}
/**
- * Add the markers when adding an area.
+ * Add the markers to the PageViewport when adding an area.
*/
- protected void addMarkers(boolean starting, boolean isfirst, boolean islast) {
- // add markers
+ protected void addMarkersToPV(boolean starting, boolean isfirst, boolean islast) {
if (markers != null) {
- addMarkerMap(markers, starting, isfirst, islast);
+ getCurrentPageViewport().addMarkers(markers, starting, isfirst, islast);
}
}
- /**
- * Delegate adding marker to the parent layout manager.
- *
- * @see org.apache.fop.layoutmgr.LayoutManager
- */
- public void addMarkerMap(Map marks, boolean starting, boolean isfirst, boolean islast) {
- parentLM.addMarkerMap(marks, starting, isfirst, islast);
- }
-
/**
* Delegate retrieve marker to the parent layout manager.
*
}
addID(getBlockContainerFO().getId());
- //addMarkers(true, bp1.isFirstArea(), bp1.isLastArea());
- addMarkers(true, true, false);
+ //addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
+ addMarkersToPV(true, true, false);
LayoutManager childLM = null;
LayoutManager lastLM = null;
int bIndents = getBlockContainerFO().getCommonBorderPaddingBackground().getBPPaddingAndBorder(false);
- addMarkers(false, false, true);
+ addMarkersToPV(false, false, true);
flush();
BreakPoss bp1 = (BreakPoss)parentIter.peekNext();
addID(getBlockContainerFO().getId());
- addMarkers(true, bp1.isFirstArea(), bp1.isLastArea());
+ addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
LayoutManager childLM;
int iStartPos = 0;
}
flush();
- addMarkers(true, bp1.isFirstArea(), bp1.isLastArea());
+ addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
/*
if (!isAbsoluteOrFixed()) {
if (!isBogus()) {
addID(getBlockFO().getId());
- addMarkers(true, bp1.isFirstArea(), bp1.isLastArea());
+ addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
}
try {
}
} finally {
if (!isBogus()) {
- addMarkers(false, bp1.isFirstArea(), bp1.isLastArea());
+ addMarkersToPV(false, bp1.isFirstArea(), bp1.isLastArea());
}
flush();
}
addID(getBlockFO().getId());
- //addMarkers(true, bp1.isFirstArea(), bp1.isLastArea());
- addMarkers(true, true, false);
+ //addMarkersToPV(true, bp1.isFirstArea(), bp1.isLastArea());
+ addMarkersToPV(true, true, false);
LayoutManager childLM = null;
LayoutManager lastLM = null;
int bIndents = getBlockFO().getCommonBorderPaddingBackground().getBPPaddingAndBorder(false);
- addMarkers(false, false, true);
+ addMarkersToPV(false, false, true);
flush();
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
-import java.util.Map;
import java.util.ArrayList;
import org.apache.fop.traits.MinOptMax;
parentLM.addUnresolvedArea(id, res);
}
- /** @see org.apache.fop.layoutmgr.LayoutManager */
- public void addMarkerMap(Map marks, boolean starting, boolean isfirst, boolean islast) {
- parentLM.addMarkerMap(marks, starting, isfirst, islast);
- }
-
/** @see org.apache.fop.layoutmgr.LayoutManager */
public Marker retrieveMarker(String name, int pos, int boundary) {
return parentLM.retrieveMarker(name, pos, boundary);
import java.util.LinkedList;
import java.util.List;
-import java.util.Map;
import org.apache.fop.fo.flow.Marker;
*/
void addUnresolvedArea(String id, Resolvable res);
- /**
- * Add the marker.
- * A number of formatting objects may contain markers. This
- * method is used to add those markers to the page.
- *
- * @param name the marker class name
- * @param starting if the area being added is starting or ending
- * @param isfirst if the area being added has is-first trait
- * @param islast if the area being added has is-last trait
- */
- void addMarkerMap(Map marks, boolean starting, boolean isfirst, boolean islast);
-
/**
* Retrieve a marker.
* This method is used when retrieve a marker.
import java.util.LinkedList;
import java.util.List;
-import java.util.Map;
/**
* LayoutManager for a PageSequence.
areaTreeHandler.addUnresolvedIDRef(id, curPage);
}
- /**
- * Add the marker to the page layout manager.
- *
- * @see org.apache.fop.layoutmgr.LayoutManager
- */
- public void addMarkerMap(Map marks, boolean starting, boolean isfirst, boolean islast) {
- //getLogger().debug("adding markers: " + marks + ":" + start);
- // add markers to page on area tree
- curPage.addMarkers(marks, starting, isfirst, islast);
- }
-
/**
* Retrieve a marker from this layout manager.
* If the boundary is page then it will only check the