You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by bc...@apache.org on 2004/02/05 18:59:31 UTC

cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr LineLayoutManager.java

bckfnn      2004/02/05 09:59:31

  Modified:    src/java/org/apache/fop/layoutmgr LineLayoutManager.java
  Log:
  Support for text-indent.
  
  Revision  Changes    Path
  1.12      +7 -1      xml-fop/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java
  
  Index: LineLayoutManager.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- LineLayoutManager.java	17 Jan 2004 19:29:46 -0000	1.11
  +++ LineLayoutManager.java	5 Feb 2004 17:59:30 -0000	1.12
  @@ -178,6 +178,10 @@
           clearPrevIPD();
           int iPrevLineEnd = vecInlineBreaks.size();
   
  +        // Adjust available line length by text-indent. 
  +        if (iPrevLineEnd == 0 && bTextAlignment == TextAlign.START) {
  +            availIPD.subtract(new MinOptMax(iTextIndent));
  +        }        
           prevBP = null;
   
           while ((curLM = getChildLM()) != null) {
  @@ -618,7 +622,9 @@
                   }
               break;
               case TextAlign.START:
  -                //indent = 0;
  +                if (prevLineEnd == 0) {
  +                    indent = iTextIndent;
  +                }
               break;
               case TextAlign.CENTER:
                   indent = (targetWith - realWidth) / 2;
  
  
  

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