bckfnn 2004/10/19 14:41:46
Modified: src/java/org/apache/fop/layoutmgr AbstractLayoutManager.java
Log:
Third phase of performance improvement.
PR: 31699
Revision Changes Path
1.27 +10 -2
xml-fop/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
Index: AbstractLayoutManager.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- AbstractLayoutManager.java 13 Oct 2004 00:31:46 -0000 1.26
+++ AbstractLayoutManager.java 19 Oct 2004 21:41:46 -0000 1.27
@@ -20,7 +20,6 @@
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 @@
* 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;
@@ -351,6 +349,16 @@
* If the id string is not null then add the id to the current page.
*/
protected void addID() {
+ if (foID != null) {
+ addIDToPage(foID);
+ }
+ }
+
+ /**
+ * 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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]