aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfotis <fotis@unknown>2000-08-02 22:35:10 +0000
committerfotis <fotis@unknown>2000-08-02 22:35:10 +0000
commit505b25d0e15adb2d8510f70c8d80d81996306cb6 (patch)
tree62277a250b2444c66465ffbd6649287ab7eda235
parent1ff39ab26511ed3ccca34e025d59e4bd7c25ecf6 (diff)
downloadxmlgraphics-fop-505b25d0e15adb2d8510f70c8d80d81996306cb6.tar.gz
xmlgraphics-fop-505b25d0e15adb2d8510f70c8d80d81996306cb6.zip
changes allowed flow-name for static-content from xsl-before/xsl-after to xsl-region-before/xsl-region-after
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193582 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/fo/flow/StaticContent.java4
-rw-r--r--src/org/apache/fop/fo/pagination/PageSequence.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/org/apache/fop/fo/flow/StaticContent.java b/src/org/apache/fop/fo/flow/StaticContent.java
index cee450ee8..9394c21d7 100644
--- a/src/org/apache/fop/fo/flow/StaticContent.java
+++ b/src/org/apache/fop/fo/flow/StaticContent.java
@@ -97,11 +97,11 @@ public class StaticContent extends FObj {
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"))
+ if(flowName.equals("xsl-region-before"))
{
area.setAbsoluteHeight(-area.getMaxHeight());
}
- else if(flowName.equals("xsl-after"))
+ else if(flowName.equals("xsl-region-after"))
{
area.setAbsoluteHeight(area.getPage().getBody().getMaxHeight());
}
diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java
index 83411f948..940e00f3f 100644
--- a/src/org/apache/fop/fo/pagination/PageSequence.java
+++ b/src/org/apache/fop/fo/pagination/PageSequence.java
@@ -249,11 +249,11 @@ public class PageSequence extends FObj
}
public void setStaticContent(String name, StaticContent staticContent) {
- if ( name.equals("xsl-before") )
+ if ( name.equals("xsl-region-before") )
{
this.staticBefore = staticContent;
}
- else if ( name.equals("xsl-after") )
+ else if ( name.equals("xsl-region-after") )
{
this.staticAfter = staticContent;
}