xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr LayoutContext.java
Date Tue, 24 May 2005 09:36:19 GMT
jeremias    2005/05/24 02:36:19

  Modified:    src/java/org/apache/fop/layoutmgr LayoutContext.java
  Log:
  Two new flags for handling keeps.
  
  Revision  Changes    Path
  1.9       +19 -0     xml-fop/src/java/org/apache/fop/layoutmgr/LayoutContext.java
  
  Index: LayoutContext.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/LayoutContext.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- LayoutContext.java	13 May 2005 19:16:51 -0000	1.8
  +++ LayoutContext.java	24 May 2005 09:36:19 -0000	1.9
  @@ -52,6 +52,17 @@
   
       public static final int RESOLVE_LEADING_SPACE = 0x100;
   
  +    /**
  +     * This flag indicates that there's a keep-with-next that hasn't
  +     * been processed, yet.
  +     */
  +    public static final int KEEP_WITH_NEXT_PENDING = 0x200;
  +    /**
  +     * This flag indicates that there's a keep-with-previous that hasn't
  +     * been processed, yet.
  +     */
  +    public static final int KEEP_WITH_PREVIOUS_PENDING = 0x400;
  +
   
       public int flags; // Contains some set of flags defined above
       /**
  @@ -155,6 +166,14 @@
           return ((this.flags & SUPPRESS_LEADING_SPACE) != 0);
       }
   
  +    public boolean isKeepWithNextPending() {
  +        return ((this.flags & KEEP_WITH_NEXT_PENDING) != 0);
  +    }
  +    
  +    public boolean isKeepWithPreviousPending() {
  +        return ((this.flags & KEEP_WITH_PREVIOUS_PENDING) != 0);
  +    }
  +    
       public void setLeadingSpace(SpaceSpecifier space) {
           leadingSpace = space;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message