called, and already obtainable through AbstractLayoutManager's FObj member
variable.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197701
13f79535-47bb-0310-9956-
ffa450edef68
*/
public AbstractLayoutManager(FObj fo) {
setFObj(fo);
- setUserAgent(fo.getUserAgent());
}
/**
protected void initProperties() {
}
- /**
- * Set the user agent.
- *
- * @param ua the user agent
- */
- public void setUserAgent(FOUserAgent ua) {
- userAgent = ua;
- }
-
- /**
- * Get the user agent.
- *
- * @see org.apache.fop.layoutmgr.LayoutManager#getUserAgent()
- */
- public FOUserAgent getUserAgent() {
- return userAgent;
- }
-
public void setParent(LayoutManager lm) {
this.parentLM = lm;
}
}
while (childLMiter.hasNext()) {
curChildLM = (LayoutManager) childLMiter.next();
- curChildLM.setUserAgent(getUserAgent());
curChildLM.setParent(this);
curChildLM.initialize();
return curChildLM;
*/
void setFObj(FObj obj);
- /**
- * Set the user agent. For resolving user agent values.
- *
- * @param ua the user agent
- */
- void setUserAgent(FOUserAgent ua);
-
- /**
- * Get the user agent.
- *
- * @return the user agent
- */
- FOUserAgent getUserAgent();
-
/**
* Set the parent layout manager.
* The parent layout manager is required for adding areas.
log.error("no region viewport: shouldn't happen");
}
StaticContentLayoutManager lm = getStaticContentLayoutManager(flow);
- lm.setUserAgent(getUserAgent());
lm.initialize();
lm.setRegionReference(reg.getRegion());
lm.setParent(this);
return lm;
}
lm = new StaticContentLayoutManager();
- lm.setUserAgent(getUserAgent());
lm.setFObj(sc);
staticContentLMs.put(sc.getFlowName(), lm);
return lm;
// currently active LM
Item curLM;
- label.setUserAgent(getUserAgent());
- body.setUserAgent(getUserAgent());
-
BreakPoss lastPos = null;
List breakList = new ArrayList();
// add cells to list
while (childLMiter.hasNext()) {
curChildLM = (LayoutManager) childLMiter.next();
- curChildLM.setUserAgent(getUserAgent());
curChildLM.setParent(this);
curChildLM.initialize();
cellList.add(curChildLM);
}
MinOptMax headerSize = null;
if (tableHeader != null) {
- tableHeader.setUserAgent(getUserAgent());
tableHeader.resetPosition(null);
headerBreak = getHeight(tableHeader, context);
headerSize = headerBreak.getStackingSize();
MinOptMax footerSize = null;
if (tableFooter != null) {
- tableFooter.setUserAgent(getUserAgent());
tableFooter.resetPosition(null);
footerBreak = getHeight(tableFooter, context);
footerSize = footerBreak.getStackingSize();