From 5dc9d98d626108e475d3da5ce5c6a7520044bace Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sat, 8 May 2004 13:14:34 +0000 Subject: [PATCH] Added setting of PageRefArea to setupNullPage 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 | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/area/Page.java b/src/java/org/apache/fop/area/Page.java index 1f7f74ec6..0c9891722 100644 --- a/src/java/org/apache/fop/area/Page.java +++ b/src/java/org/apache/fop/area/Page.java @@ -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 simple-page-master that generated this page. */ protected FoSimplePageMaster pageMaster = null; /** The single page-viewport 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 -- 2.39.5