From 39d2edd0962d329ca15a1a99f895ce11262e004f Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Tue, 15 Jun 2004 06:26:56 +0000 Subject: 1.) Added restriction to fo:declarations that fo:color-profile is the only XSL namespace child element allowed. 2.) Switched from fo.FOTreeControl to apps.Document throughout app, to better clarify that it is the apps.Document object being accessed/used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197716 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/PageNumber.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/java/org/apache/fop/fo/flow/PageNumber.java') diff --git a/src/java/org/apache/fop/fo/flow/PageNumber.java b/src/java/org/apache/fop/fo/flow/PageNumber.java index 1871e8133..0c4e558bf 100644 --- a/src/java/org/apache/fop/fo/flow/PageNumber.java +++ b/src/java/org/apache/fop/fo/flow/PageNumber.java @@ -61,7 +61,7 @@ public class PageNumber extends FObj { protected void addProperties(Attributes attlist) throws FOPException { super.addProperties(attlist); setup(); - getFOTreeControl().getFOInputHandler().startPageNumber(this); + getDocument().getFOInputHandler().startPageNumber(this); } public void setup() { @@ -77,7 +77,7 @@ public class PageNumber extends FObj { CommonBackground bProps = propMgr.getBackgroundProps(); // Common Font Properties - this.fontState = propMgr.getFontState(getFOTreeControl()); + this.fontState = propMgr.getFontState(getDocument()); // Common Margin Properties-Inline CommonMarginInline mProps = propMgr.getMarginInlineProps(); @@ -129,7 +129,7 @@ public class PageNumber extends FObj { } protected void end() { - getFOTreeControl().getFOInputHandler().endPageNumber(this); + getDocument().getFOInputHandler().endPageNumber(this); } public String getName() { -- cgit v1.2.3