aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/layoutmgr/PageLayoutManager.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-09-07 08:58:07 +0000
committerKeiron Liddle <keiron@apache.org>2002-09-07 08:58:07 +0000
commitcf02e02cc3e1d392b9abfd2eabba9054bb5f5ddc (patch)
treefc107ad0958bac3485a4b4278a062af90dac027e /src/org/apache/fop/layoutmgr/PageLayoutManager.java
parent514cf028e74ee9c45b77cbed401ad07340458fce (diff)
downloadxmlgraphics-fop-cf02e02cc3e1d392b9abfd2eabba9054bb5f5ddc.tar.gz
xmlgraphics-fop-cf02e02cc3e1d392b9abfd2eabba9054bb5f5ddc.zip
implemented basic link with linking from pdf
improved some resolving of references git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/layoutmgr/PageLayoutManager.java')
-rw-r--r--src/org/apache/fop/layoutmgr/PageLayoutManager.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org/apache/fop/layoutmgr/PageLayoutManager.java b/src/org/apache/fop/layoutmgr/PageLayoutManager.java
index 00e9b6c3e..14fee48ff 100644
--- a/src/org/apache/fop/layoutmgr/PageLayoutManager.java
+++ b/src/org/apache/fop/layoutmgr/PageLayoutManager.java
@@ -138,7 +138,11 @@ public class PageLayoutManager extends AbstractLayoutManager implements Runnable
return "" + pageCount;
}
- public String resolveRefID(String ref) {
+ public PageViewport resolveRefID(String ref) {
+ List list = areaTree.getIDReferences(ref);
+ if(list != null && list.size() > 0) {
+ return (PageViewport)list.get(0);
+ }
return null;
}
@@ -155,6 +159,7 @@ public class PageLayoutManager extends AbstractLayoutManager implements Runnable
public void addUnresolvedArea(String id, Resolveable res) {
// add unresolved to tree
+ // should really add to the page viewport so it can serialize
areaTree.addUnresolvedID(id, res);
}