diff options
author | William Victor Mote <vmote@apache.org> | 2003-08-24 18:04:07 +0000 |
---|---|---|
committer | William Victor Mote <vmote@apache.org> | 2003-08-24 18:04:07 +0000 |
commit | b221e8cfc7ab2ec3eb6ebdc5a3bc384c5d5b9c04 (patch) | |
tree | fdbb48a72a7e874c415faddc2c6e251f6d71935a /src/java/org/apache/fop/fo | |
parent | 4df83a2c29a65be00724e50ad9abb818f5a53cca (diff) | |
download | xmlgraphics-fop-b221e8cfc7ab2ec3eb6ebdc5a3bc384c5d5b9c04.tar.gz xmlgraphics-fop-b221e8cfc7ab2ec3eb6ebdc5a3bc384c5d5b9c04.zip |
make area/CTM.getCTMandRelDims() more general by decoupling it from fo/PropertyManager
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196832 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/Region.java | 3 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/SimplePageMaster.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Region.java b/src/java/org/apache/fop/fo/pagination/Region.java index 28d60211d..c3c5bee2b 100644 --- a/src/java/org/apache/fop/fo/pagination/Region.java +++ b/src/java/org/apache/fop/fo/pagination/Region.java @@ -195,7 +195,8 @@ public abstract class Region extends FObj { */ protected void setRegionPosition(RegionReference r, Rectangle2D absRegVPRect) { FODimension reldims = new FODimension(0, 0); - r.setCTM(CTM.getCTMandRelDims(propMgr, absRegVPRect, reldims)); + r.setCTM(CTM.getCTMandRelDims(propMgr.getAbsRefOrient(), + propMgr.getWritingMode(), absRegVPRect, reldims)); } /** diff --git a/src/java/org/apache/fop/fo/pagination/SimplePageMaster.java b/src/java/org/apache/fop/fo/pagination/SimplePageMaster.java index 44eb03717..bc58b0d5a 100644 --- a/src/java/org/apache/fop/fo/pagination/SimplePageMaster.java +++ b/src/java/org/apache/fop/fo/pagination/SimplePageMaster.java @@ -149,7 +149,8 @@ public class SimplePageMaster extends FObj { // Set up the CTM on the page reference area based on writing-mode // and reference-orientation FODimension reldims = new FODimension(0, 0); - CTM pageCTM = CTM.getCTMandRelDims(propMgr, pageRefRect, reldims); + CTM pageCTM = CTM.getCTMandRelDims(propMgr.getAbsRefOrient(), + propMgr.getWritingMode(), pageRefRect, reldims); // Create a RegionViewport/ reference area pair for each page region |