diff options
author | Finn Bock <bckfnn@apache.org> | 2004-10-19 21:41:46 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-10-19 21:41:46 +0000 |
commit | 8df4fde2b5308e0fa38d153ca7eab2faf1b65830 (patch) | |
tree | 9b102eccfac9020daae02e162bac471ea396a8d5 | |
parent | 04cf4f8763ca2947dcb285fe0b32b1f62cbc0310 (diff) | |
download | xmlgraphics-fop-8df4fde2b5308e0fa38d153ca7eab2faf1b65830.tar.gz xmlgraphics-fop-8df4fde2b5308e0fa38d153ca7eab2faf1b65830.zip |
Third phase of performance improvement.
PR: 31699
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198070 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java index 1770bc196..73bf3bb0c 100644 --- a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java @@ -20,7 +20,6 @@ package org.apache.fop.layoutmgr; import org.apache.fop.fo.FObj; import org.apache.fop.fo.FONode; -import org.apache.fop.apps.FOUserAgent; import org.apache.fop.area.Area; import org.apache.fop.area.Resolveable; import org.apache.fop.area.PageViewport; @@ -40,7 +39,6 @@ import java.util.Map; * The base class for all LayoutManagers. */ public abstract class AbstractLayoutManager implements LayoutManager, Constants { - protected FOUserAgent userAgent; protected LayoutManager parentLM = null; protected List childLMs = new ArrayList(10); protected FObj fobj; @@ -357,6 +355,16 @@ public abstract class AbstractLayoutManager implements LayoutManager, Constants } /** + * 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) { + addIDToPage(foID); + } + } + + /** * Delegate adding id reference to the parent layout manager. * * @see org.apache.fop.layoutmgr.LayoutManager |