diff options
author | jtauber <jtauber@unknown> | 1999-11-25 17:33:16 +0000 |
---|---|---|
committer | jtauber <jtauber@unknown> | 1999-11-25 17:33:16 +0000 |
commit | 5273e66a656c4e769d0820fabc3dfbc9b35a6c50 (patch) | |
tree | 8c4b6a292f1ad503b961295492ffaf25b5ce83e8 /src/org/apache/fop/svg/Rect.java | |
parent | fcc0954359c3dca5843a9c2ba24d3f0628fd717f (diff) | |
download | xmlgraphics-fop-5273e66a656c4e769d0820fabc3dfbc9b35a6c50.tar.gz xmlgraphics-fop-5273e66a656c4e769d0820fabc3dfbc9b35a6c50.zip |
Partial implementation of keep-with-next (doesn't yet remove area from previous page when fo is moved to next page to ensure keep). The layout method on each FO now returns a Status object rather than an int to allow for more information to be passed back in the future.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg/Rect.java')
-rw-r--r-- | src/org/apache/fop/svg/Rect.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/apache/fop/svg/Rect.java b/src/org/apache/fop/svg/Rect.java index 722b87e28..dcce4145c 100644 --- a/src/org/apache/fop/svg/Rect.java +++ b/src/org/apache/fop/svg/Rect.java @@ -22,7 +22,7 @@ Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. - 4. The names "Fop" and "Apache Software Foundation" must not be used to + 4. The names "FOP" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact apache@apache.org. @@ -48,6 +48,7 @@ Software Foundation, please see <http://www.apache.org/>. */ + package org.apache.fop.svg; // FOP @@ -108,7 +109,7 @@ public class Rect extends FObj { * * @return the status of the layout */ - public int layout(Area area) throws FOPException { + public Status layout(Area area) throws FOPException { /* retrieve properties */ int width = this.properties.get("width").getLength().mvalue(); @@ -126,6 +127,6 @@ public class Rect extends FObj { } /* return status */ - return OK; + return new Status(Status.OK); } } |