diff options
author | Glen Mazza <gmazza@apache.org> | 2004-06-15 06:26:56 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-06-15 06:26:56 +0000 |
commit | 39d2edd0962d329ca15a1a99f895ce11262e004f (patch) | |
tree | e9f977dd16ed1f05f9310ad8dbc9573f32818a0a /src/java/org/apache/fop/fo/flow/PageNumber.java | |
parent | c9f1a6f52eb0d88bb0dfefdd2f7119fb7afb2626 (diff) | |
download | xmlgraphics-fop-39d2edd0962d329ca15a1a99f895ce11262e004f.tar.gz xmlgraphics-fop-39d2edd0962d329ca15a1a99f895ce11262e004f.zip |
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
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/PageNumber.java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/PageNumber.java | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |