this.setLayoutProxy(flow, new FlowPL(flow, this));
final List<String> regionBodies = flow.regionBodies();
// make pages and layout content
Status status = Status.UNKNOWN;
PageArea currentPage = null;
while (status.isIncomplete()) {
PageCollection.Force force = PageCollection.Force.NONE;
if (status == Status.FORCE_PAGE_BREAK_EVEN) {
force = PageCollection.Force.EVEN;
} else if (status == Status.FORCE_PAGE_BREAK_ODD) {
force = PageCollection.Force.ODD;
}
final PageArea newPage = pageCollection.makePage(force);
setPendingFootnotes(newPage);
currentPage = newPage;
/*
* Because of markers, lay out the fo:flow first, then the
* static content. This is likely also justifiable because of spec.