jeremias 2005/01/12 03:49:03 Modified: src/java/org/apache/fop/area Block.java Log: FIXED wasn't defined. Convenience method for accessing the start-indent trait. Revision Changes Path 1.5 +15 -1 xml-fop/src/java/org/apache/fop/area/Block.java Index: Block.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Block.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Block.java 22 Sep 2004 08:18:41 -0000 1.4 +++ Block.java 12 Jan 2005 11:49:03 -0000 1.5 @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,12 @@ */ public static final int ABSOLUTE = 2; + /** + * Relative to a viewport/page but not effecting the stacking + * Used for block-container. + */ + public static final int FIXED = 3; + private int stacking = TB; private int positioning = STACK; @@ -111,5 +117,13 @@ return positioning; } + /** + * @return the start-indent trait + */ + public int getStartIndent() { + Integer startIndent = (Integer)getTrait(Trait.START_INDENT); + return (startIndent != null ? startIndent.intValue() : 0); + } + }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]