]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added setting of PageRefArea to setupNullPage
authorPeter Bernard West <pbwest@apache.org>
Sat, 8 May 2004 13:14:34 +0000 (13:14 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sat, 8 May 2004 13:14:34 +0000 (13:14 +0000)
get and set pageRefArea
getRegionBodyRefArea

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197573 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/Page.java

index 1f7f74ec6bd21e52b10bfa9b91c08948c0dfb19b..0c9891722bfe45685705872775244a274e69ce25 100644 (file)
@@ -118,13 +118,18 @@ public class Page extends AreaNode implements Cloneable {
      */
     public static Page setupNullPage(FoPageSequence pageSeq, long id) {
         Page page = new Page(pageSeq, id);
-        page.setVport(PageViewport.nullPageVport(pageSeq, page, page));
+        PageViewport pageVport =
+            PageViewport.nullPageVport(pageSeq, page, page);
+        page.setVport(pageVport);
+        PageRefArea refArea = pageVport.getPageRefArea();
+        page.setPageRefArea(refArea);
         return page;
     }
     /** The <code>simple-page-master</code> that generated this page. */
     protected FoSimplePageMaster pageMaster = null;
     /** The single <code>page-viewport</code> child of this page */
     protected PageViewport vport = null;
+    protected PageRefArea pageRefArea = null;
 
     /**
      * @return the vport
@@ -138,9 +143,23 @@ public class Page extends AreaNode implements Cloneable {
     public void setVport(PageViewport vport) {
         this.vport = vport;
     }
+    /**
+     * @param pageRefArea to set
+     */
+    public void setPageRefArea(PageRefArea pageRefArea) {
+        this.pageRefArea = pageRefArea;
+    }
+    public PageRefArea getPageRefArea() {
+        return vport.getPageRefArea();
+    }
     /** The formatted page number */
     private String pageNumber = null;
 
+    public Area getRegionBodyRefArea() {
+        // TODO - make the real version of this
+        Area regionBodyRef = null;
+        return regionBodyRef;
+    }
     /**
      * Set the page number for this page.
      * @param num the string representing the page number