package org.apache.fop.layoutmgr;
import org.apache.fop.apps.FOUserAgent;
-import org.apache.fop.fo.FObj;
import org.apache.fop.fo.Constants;
import org.apache.fop.fo.pagination.Title;
import org.apache.fop.area.Area;
return userAgent;
}
- /** @see org.apache.fop.layoutmgr.LayoutManager */
- public void setFObj(FObj fobj) {
- }
-
/** @see org.apache.fop.layoutmgr.LayoutManager */
public void setParent(LayoutManager lm) {
parentLM = lm;
import java.util.List;
import org.apache.fop.area.Area;
-import org.apache.fop.fo.FObj;
/**
* The interface for all LayoutManagers.
*/
public interface LayoutManager {
- /**
- * Set the FO object for this layout manager.
- * For layout managers that are created without an FO
- * this may not be called.
- *
- * @param obj the FO object for this layout manager
- */
- void setFObj(FObj obj);
-
/**
* Set the parent layout manager.
* The parent layout manager is required for adding areas.
LinkedList getChangedKnuthElements(List oldList, /*int flaggedPenalty,*/
int alignment);
- public static final int FLAGGED_PENALTY = 50;
}
&& textArray[iTempStart] != SPACE
&& textArray[iTempStart] != NBSPACE) {
returnList.add
- (new KnuthPenalty(0, LayoutManager.FLAGGED_PENALTY, true,
+ (new KnuthPenalty(0, KnuthPenalty.FLAGGED_PENALTY, true,
new LeafPosition(this, -1), false));
returnList.add
(new KnuthGlue(letterSpaceIPD.opt,
// the last character could be used as a line break
// append new elements to oldList
oldListIterator = oldList.listIterator(oldList.size());
- oldListIterator.add(new KnuthPenalty(0, LayoutManager.FLAGGED_PENALTY, true,
+ oldListIterator.add(new KnuthPenalty(0, KnuthPenalty.FLAGGED_PENALTY, true,
new LeafPosition(this, -1), false));
oldListIterator.add(new KnuthGlue(letterSpaceIPD.opt,
letterSpaceIPD.max - letterSpaceIPD.opt,
}
if (ai.bHyphenated) {
returnList.add
- (new KnuthPenalty(hyphIPD, LayoutManager.FLAGGED_PENALTY, true,
+ (new KnuthPenalty(hyphIPD, KnuthPenalty.FLAGGED_PENALTY, true,
new LeafPosition(this, -1), false));
}
// if the last character is '-' or '/', it could be used as a line end;
if (BREAK_CHARS.indexOf(textArray[ai.iBreakIndex - 1]) >= 0
&& ai.iLScount == (ai.iBreakIndex - ai.iStartIndex)) {
returnList.add
- (new KnuthPenalty(0, LayoutManager.FLAGGED_PENALTY, true,
+ (new KnuthPenalty(0, KnuthPenalty.FLAGGED_PENALTY, true,
new LeafPosition(this, -1), false));
returnList.add
(new KnuthGlue(letterSpaceIPD.opt,