arved       01/07/16 03:37:58

  Modified:    src/org/apache/fop/fo/flow Block.java
  Log:
  AHS: initial marker support
  
  Revision  Changes    Path
  1.35      +13 -1     xml-fop/src/org/apache/fop/fo/flow/Block.java
  
  Index: Block.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Block.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Block.java        2001/07/13 02:30:33     1.34
  +++ Block.java        2001/07/16 10:37:57     1.35
  @@ -1,4 +1,4 @@
  -/*-- $Id: Block.java,v 1.34 2001/07/13 02:30:33 arved Exp $-- */
  +/*-- $Id: Block.java,v 1.35 2001/07/16 10:37:57 arved Exp $-- */
   /*
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
  @@ -159,6 +159,17 @@
                                this.blockArea = new 
BlockArea(propMgr.getFontState(area.getFontInfo()), area.getAllocationWidth(),
                                                                area.spaceLeft(), 
startIndent, endIndent, textIndent,
                                                                align, alignLast, 
lineHeight);
  +                             this.blockArea.generatedBy = this;
  +                             this.areasGenerated++;
  +                             if (this.areasGenerated == 1)
  +                                     this.blockArea.isFirst = true;
  +                             // for normal areas this should be the only pair
  +                             this.blockArea.addLineagePair(this, 
this.areasGenerated);
  +                             
  +                             // markers
  +                             if (this.hasMarkers())
  +                                     this.blockArea.addMarkers(this.getMarkers());
  +                                     
                                this.blockArea.setParent(area); // BasicLink needs it
                                blockArea.setPage(area.getPage());
                                blockArea.setBackgroundColor(backgroundColor);
  @@ -248,6 +259,7 @@
                                }
   
                                //MessageHandler.error(" b:OK" + marker + " ");
  +                             this.blockArea.isLast = true;
                                return new Status(Status.OK);
                }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to