/**
* logging instance
*/
- protected static Log log = LogFactory.getLog(LayoutManager.class);
+ private static Log log = LogFactory.getLog(AbstractBaseLayoutManager.class);
/**
* Abstract base layout manager.
package org.apache.fop.layoutmgr;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FONode;
import org.apache.fop.area.Area;
public abstract class AbstractLayoutManager extends AbstractBaseLayoutManager
implements Constants {
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(AbstractLayoutManager.class);
+
/** Parent LayoutManager for this LayoutManager */
protected LayoutManager parentLM = null;
/** List of child LayoutManagers */
import java.awt.Point;
import java.awt.geom.Rectangle2D;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.Area;
import org.apache.fop.area.BlockViewport;
import org.apache.fop.area.Block;
*/
public class BlockContainerLayoutManager extends BlockStackingLayoutManager
implements ConditionalElementListener {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(BlockContainerLayoutManager.class);
private BlockViewport viewportBlockArea;
private Block referenceArea;
import java.util.List;
import java.util.ListIterator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.area.LineArea;
*/
public class BlockLayoutManager extends BlockStackingLayoutManager
implements ConditionalElementListener {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(BlockLayoutManager.class);
private Block curBlockArea;
import java.util.List;
import java.util.ListIterator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.Area;
import org.apache.fop.area.BlockParent;
import org.apache.fop.area.Block;
*/
public abstract class BlockStackingLayoutManager extends AbstractLayoutManager
implements BlockLevelLayoutManager {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(BlockStackingLayoutManager.class);
+
/**
* Reference to FO whose areas it's managing or to the traits
* of the FO.
public abstract class BreakingAlgorithm {
/** the logger for the class */
- protected static Log classLog = LogFactory.getLog(BreakingAlgorithm.class);
-
- /** the logger for the instance */
- protected Log log = classLog;
+ protected static Log log = LogFactory.getLog(BreakingAlgorithm.class);
/** Maximum adjustment ration */
protected static final int INFINITE_RATIO = 1000;
package org.apache.fop.layoutmgr;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.fo.pagination.Flow;
import org.apache.fop.layoutmgr.inline.InlineLevelLayoutManager;
import org.apache.fop.area.Area;
*/
public class FlowLayoutManager extends BlockStackingLayoutManager
implements BlockLevelLayoutManager {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(FlowLayoutManager.class);
/** Array of areas currently being filled stored by area class */
private BlockParent[] currentAreas = new BlockParent[Area.CLASS_MAX];
class PageBreakingAlgorithm extends BreakingAlgorithm {
/** the logger for the class */
- protected static Log classLog = LogFactory.getLog(PageBreakingAlgorithm.class);
+ private static Log log = LogFactory.getLog(PageBreakingAlgorithm.class);
private LayoutManager topLevelLM;
private PageSequenceLayoutManager.PageProvider pageProvider;
boolean partOverflowRecovery, boolean autoHeight,
boolean favorSinglePart) {
super(alignment, alignmentLast, true, partOverflowRecovery, 0);
- this.log = classLog;
this.topLevelLM = topLevelLM;
this.pageProvider = pageProvider;
this.layoutListener = layoutListener;
import java.util.List;
import java.util.ListIterator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.RegionReference;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
*/
public class StaticContentLayoutManager extends BlockStackingLayoutManager {
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(StaticContentLayoutManager.class);
+
private RegionReference targetRegion;
private Block targetBlock;
private SideRegion regionFO;
package org.apache.fop.layoutmgr.inline;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.fo.Constants;
import org.apache.fop.fo.pagination.Title;
*/
public class ContentLayoutManager extends AbstractBaseLayoutManager
implements InlineLevelLayoutManager {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(ContentLayoutManager.class);
+
private FOUserAgent userAgent;
private Area holder;
private int stackSize;
import java.util.List;
import java.util.ListIterator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.fo.flow.Footnote;
import org.apache.fop.layoutmgr.AbstractLayoutManager;
import org.apache.fop.layoutmgr.FootnoteBodyLayoutManager;
public class FootnoteLayoutManager extends AbstractLayoutManager
implements InlineLevelLayoutManager {
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(FootnoteLayoutManager.class);
+
private Footnote footnote;
private InlineStackingLayoutManager citationLM;
private FootnoteBodyLayoutManager bodyLM;
import java.util.LinkedList;
import java.util.List;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.Area;
import org.apache.fop.area.inline.InlineArea;
import org.apache.fop.area.inline.InlineBlockParent;
* such as Inline or Line
*/
public class InlineLayoutManager extends InlineStackingLayoutManager {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(InlineLayoutManager.class);
+
private InlineLevel fobj;
private CommonMarginInline inlineProps = null;
import java.util.LinkedList;
import java.util.List;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.Area;
import org.apache.fop.area.inline.InlineArea;
import org.apache.fop.fo.FObj;
*/
public abstract class LeafNodeLayoutManager extends AbstractLayoutManager
implements InlineLevelLayoutManager {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(LeafNodeLayoutManager.class);
+
/**
* The inline area that this leafnode will add.
*/
package org.apache.fop.layoutmgr.inline;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.Constants;
public class LineLayoutManager extends InlineStackingLayoutManager
implements BlockLevelLayoutManager {
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(LineLayoutManager.class);
+
private Block fobj;
private boolean isFirstInBlock;
import java.util.LinkedList;
import java.util.ListIterator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.area.Trait;
import org.apache.fop.area.inline.TextArea;
import org.apache.fop.fo.Constants;
}
}
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(TextLayoutManager.class);
+
// Hold all possible breaks for the text in this LM's FO.
private ArrayList vecAreaInfo;
package org.apache.fop.layoutmgr.list;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.fo.flow.ListBlock;
import org.apache.fop.layoutmgr.BlockLevelLayoutManager;
import org.apache.fop.layoutmgr.BlockStackingLayoutManager;
public class ListBlockLayoutManager extends BlockStackingLayoutManager
implements ConditionalElementListener {
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(ListBlockLayoutManager.class);
+
private Block curBlockArea;
private boolean discardBorderBefore;
package org.apache.fop.layoutmgr.list;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.fo.flow.ListItem;
import org.apache.fop.fo.flow.ListItemBody;
import org.apache.fop.fo.flow.ListItemLabel;
*/
public class ListItemLayoutManager extends BlockStackingLayoutManager
implements ConditionalElementListener {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(ListItemLayoutManager.class);
+
private ListItemContentLayoutManager label;
private ListItemContentLayoutManager body;
import java.util.LinkedList;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.flow.Table;
import org.apache.fop.fo.flow.TableCell;
*/
public class TableCellLayoutManager extends BlockStackingLayoutManager
implements BlockLevelLayoutManager {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(TableCellLayoutManager.class);
private PrimaryGridUnit gridUnit;
package org.apache.fop.layoutmgr.table;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.fop.datatypes.Length;
import org.apache.fop.fo.flow.Table;
import org.apache.fop.fo.flow.TableFObj;
*/
public class TableLayoutManager extends BlockStackingLayoutManager
implements ConditionalElementListener {
+
+ /**
+ * logging instance
+ */
+ private static Log log = LogFactory.getLog(TableLayoutManager.class);
private TableContentLayoutManager contentLM;
private ColumnSetup columns = null;