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 sp...@apache.org on 2004/11/15 22:01:40 UTC

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

spepping    2004/11/15 13:01:40

  Modified:    src/java/org/apache/fop/layoutmgr
                        RetrieveMarkerLayoutManager.java
  Log:
  Made RetrieveMarkerLM implement InlineLevelLM.
  
  Revision  Changes    Path
  1.16      +66 -1     xml-fop/src/java/org/apache/fop/layoutmgr/RetrieveMarkerLayoutManager.java
  
  Index: RetrieveMarkerLayoutManager.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/RetrieveMarkerLayoutManager.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- RetrieveMarkerLayoutManager.java	13 Nov 2004 20:37:17 -0000	1.15
  +++ RetrieveMarkerLayoutManager.java	15 Nov 2004 21:01:40 -0000	1.16
  @@ -30,7 +30,9 @@
   /**
    * LayoutManager for a block FO.
    */
  -public class RetrieveMarkerLayoutManager extends AbstractLayoutManager {
  +public class RetrieveMarkerLayoutManager extends AbstractLayoutManager 
  +    implements InlineLevelLayoutManager {
  +
       private RetrieveMarker fobj;
       
       private LayoutManager replaceLM = null;
  @@ -67,6 +69,9 @@
           return replaceLM.getNextBreakPoss(context);
       }
   
  +    /**
  +     * @see org.apache.fop.layoutmgr.InlineLevelLayoutManager#getNextKnuthElements
  +     */
       public LinkedList getNextKnuthElements(LayoutContext context,
               int alignment) {
           loadLM();
  @@ -75,6 +80,66 @@
           }
           return ((InlineLevelLayoutManager) replaceLM)
                  .getNextKnuthElements(context, alignment);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.layoutmgr.InlineLevelLayoutManager#addALetterSpaceTo
  +     */
  +    public KnuthElement addALetterSpaceTo(KnuthElement element) {
  +        loadLM();
  +        if (replaceLM == null) {
  +            return null;
  +        }
  +        return ((InlineLevelLayoutManager) replaceLM)
  +            .addALetterSpaceTo(element);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.layoutmgr.InlineLevelLayoutManager#getWordChars
  +     */
  +    public void getWordChars(StringBuffer sbChars, Position pos) {
  +        loadLM();
  +        if (replaceLM != null) {
  +            ((InlineLevelLayoutManager) replaceLM)
  +                .getWordChars(sbChars, pos);
  +        }
  +    }
  +
  +    /**
  +     * @see org.apache.fop.layoutmgr.InlineLevelLayoutManager#hyphenate
  +     */
  +    public void hyphenate(Position pos, HyphContext hc) {
  +        loadLM();
  +        if (replaceLM != null) {
  +            ((InlineLevelLayoutManager) replaceLM).hyphenate(pos, hc);
  +        }
  +    }
  +
  +    /**
  +     * @see org.apache.fop.layoutmgr.InlineLevelLayoutManager#applyChanges
  +     */
  +    public boolean applyChanges(List oldList) {
  +        loadLM();
  +        if (replaceLM == null) {
  +            return false;
  +        }
  +        return ((InlineLevelLayoutManager) replaceLM)
  +            .applyChanges(oldList);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.layoutmgr.InlineLevelLayoutManager#getChangedKnuthElements
  +     */
  +    public LinkedList getChangedKnuthElements(List oldList,
  +                                              int flaggedPenalty,
  +                                              int alignment) {
  +        loadLM();
  +        if (replaceLM == null) {
  +            return null;
  +        }
  +        return ((InlineLevelLayoutManager) replaceLM)
  +               .getChangedKnuthElements(oldList, flaggedPenalty,
  +                                        alignment);
       }
   
       public void addAreas(PositionIterator parentIter,
  
  
  

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