Browse Source

This is Jordan Naftolin's patch to allow you to have links in the

xsl-before and xsl-after regions.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193403 13f79535-47bb-0310-9956-ffa450edef68
tags/pre-columns
Steve Coffman 24 years ago
parent
commit
07f4cedc28
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      src/org/apache/fop/fo/flow/StaticContent.java

+ 11
- 0
src/org/apache/fop/fo/flow/StaticContent.java View File

@@ -94,6 +94,17 @@ public class StaticContent extends FObj {
public Status layout(Area area) throws FOPException {
int numChildren = this.children.size();
// Set area absolute height so that link rectangles will be drawn correctly in xsl-before and xsl-after
String flowName = this.properties.get("flow-name").getString();
if(flowName.equals("xsl-before"))
{
area.setAbsoluteHeight(-area.getMaxHeight());
}
else if(flowName.equals("xsl-after"))
{
area.setAbsoluteHeight(area.getPage().getBody().getMaxHeight());
}
for (int i = 0; i < numChildren; i++) {
FObj fo = (FObj) children.elementAt(i);
fo.layout(area);

Loading…
Cancel
Save