diff options
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/RegionStart.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/RegionStart.java | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/RegionStart.java b/src/java/org/apache/fop/fo/pagination/RegionStart.java index f00414934..ad72e2737 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionStart.java +++ b/src/java/org/apache/fop/fo/pagination/RegionStart.java @@ -21,10 +21,6 @@ package org.apache.fop.fo.pagination; // Java import java.awt.Rectangle; -// XML -import org.xml.sax.Attributes; -import org.xml.sax.SAXParseException; - // FOP import org.apache.fop.fo.FONode; import org.apache.fop.datatypes.FODimension; @@ -33,9 +29,6 @@ import org.apache.fop.datatypes.FODimension; * The fo:region-start element. */ public class RegionStart extends RegionSE { - - private int extent = 0; - /** * @see org.apache.fop.fo.FONode#FONode(FONode) */ @@ -44,14 +37,6 @@ public class RegionStart extends RegionSE { } /** - * @see org.apache.fop.fo.FObj#addProperties - */ - protected void addProperties(Attributes attlist) throws SAXParseException { - super.addProperties(attlist); - extent = getPropLength(PR_EXTENT); - } - - /** * @see org.apache.fop.fo.pagination.Region#getViewportRectangle(FODimension) */ public Rectangle getViewportRectangle (FODimension reldims) { @@ -59,12 +44,12 @@ public class RegionStart extends RegionSE { // This is the rectangle relative to the page-reference area in // writing-mode relative coordinates Rectangle vpRect; - if (this.wm == WritingMode.LR_TB || this.wm == WritingMode.RL_TB) { - vpRect = new Rectangle(0, 0, extent, reldims.bpd); + if (this.getWritingMode() == WritingMode.LR_TB || this.getWritingMode() == WritingMode.RL_TB) { + vpRect = new Rectangle(0, 0, getExtent().getValue(), reldims.bpd); } else { - vpRect = new Rectangle(0, 0, reldims.bpd, extent); + vpRect = new Rectangle(0, 0, reldims.bpd, getExtent().getValue()); } - adjustIPD(vpRect, this.wm); + adjustIPD(vpRect, this.getWritingMode()); return vpRect; } |