public void pushLayer(Box master) { Layer layer = null; if (_rootLayer == null) { layer = new Layer(master); _rootLayer = layer; } else { Layer parent = getLayer(); layer = new Layer(parent, master); parent.addChild(layer); } pushLayer(layer); }
public void pushLayer(Box master) { Layer layer = null; if (_rootLayer == null) { layer = new Layer(master); _rootLayer = layer; } else { Layer parent = getLayer(); layer = new Layer(parent, master); parent.addChild(layer); } pushLayer(layer); }
c.pushLayer(table); c.getRootLayer().addPage(c);
c.pushLayer(table); c.getRootLayer().addPage(c);
public void unmarkPending(LayoutContext c) { _pending = false; if (getParent() instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)getParent(); if (iB.isPending()) { iB.unmarkPending(c); } } setStartsHere(true); if (getStyle().requiresLayer()) { c.pushLayer(this); getLayer().setInline(true); connectChildrenToCurrentLayer(c); } }
public void unmarkPending(LayoutContext c) { _pending = false; if (getParent() instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)getParent(); if (iB.isPending()) { iB.unmarkPending(c); } } setStartsHere(true); if (getStyle().requiresLayer()) { c.pushLayer(this); getLayer().setInline(true); connectChildrenToCurrentLayer(c); } }
public static BlockBox createRootBox(LayoutContext c, Document document) { Element root = document.getDocumentElement(); CalculatedStyle style = c.getSharedContext().getStyle(root); BlockBox result; if (style.isTable() || style.isInlineTable()) { result = new TableBox(); } else { result = new BlockBox(); } result.setStyle(style); result.setElement(root); c.resolveCounters(style); c.pushLayer(result); if (c.isPrint()) { if (! style.isIdent(CSSName.PAGE, IdentValue.AUTO)) { c.setPageName(style.getStringProperty(CSSName.PAGE)); } c.getRootLayer().addPage(c); } return result; }
public static BlockBox createRootBox(LayoutContext c, Document document) { Element root = document.getDocumentElement(); CalculatedStyle style = c.getSharedContext().getStyle(root); BlockBox result; if (style.isTable() || style.isInlineTable()) { result = new TableBox(); } else { result = new BlockBox(); } result.setStyle(style); result.setElement(root); c.resolveCounters(style); c.pushLayer(result); if (c.isPrint()) { if (! style.isIdent(CSSName.PAGE, IdentValue.AUTO)) { c.setPageName(style.getStringProperty(CSSName.PAGE)); } c.getRootLayer().addPage(c); } return result; }
public static void layoutAbsolute( LayoutContext c, LineBox currentLine, BlockBox box) { MarkerData markerData = c.getCurrentMarkerData(); c.setCurrentMarkerData(null); box.setContainingBlock(c.getLayer().getMaster()); box.setStaticEquivalent(currentLine); // If printing, don't layout until we know where its going if (! c.isPrint()) { box.layout(c); } else { c.pushLayer(box); c.getLayer().setRequiresLayout(true); c.popLayer(); } c.setCurrentMarkerData(markerData); }
public static void layoutAbsolute( LayoutContext c, LineBox currentLine, BlockBox box) { MarkerData markerData = c.getCurrentMarkerData(); c.setCurrentMarkerData(null); if (box.getStyle().isFixed()) { box.setContainingBlock(c.getRootLayer().getMaster().getContainingBlock()); } else { box.setContainingBlock(c.getLayer().getMaster()); } box.setStaticEquivalent(currentLine); // If printing, don't layout until we know where its going if (! c.isPrint()) { box.layout(c); } else { c.pushLayer(box); c.getLayer().setRequiresLayout(true); c.popLayer(); } c.setCurrentMarkerData(markerData); }