Uses of Class
com.openhtmltopdf.layout.LayoutContext
-
-
Uses of LayoutContext in com.openhtmltopdf.bidi
Methods in com.openhtmltopdf.bidi with parameters of type LayoutContext Modifier and Type Method Description voidParagraphSplitter. runBidiOnParagraphs(LayoutContext c)Run bidi splitting on the document's paragraphs.protected voidParagraphSplitter.FakeParagraph. runBidiSplitter(BidiSplitter splitter, LayoutContext c)protected voidParagraphSplitter.Paragraph. runBidiSplitter(BidiSplitter splitter, LayoutContext c)Here we call out to the actual BIDI algorithm.voidParagraphSplitter. splitRoot(LayoutContext c, Document doc)This starts everything by recursively dividing the document into paragraphs. -
Uses of LayoutContext in com.openhtmltopdf.context
Methods in com.openhtmltopdf.context with parameters of type LayoutContext Modifier and Type Method Description ContentFunctionContentFunctionFactory. lookupFunction(LayoutContext c, FSFunction function) -
Uses of LayoutContext in com.openhtmltopdf.css.extend
Methods in com.openhtmltopdf.css.extend with parameters of type LayoutContext Modifier and Type Method Description StringContentFunction. calculate(LayoutContext c, FSFunction function)booleanContentFunction. canHandle(LayoutContext c, FSFunction function) -
Uses of LayoutContext in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementReplacedElementFactory. createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)NOTE: Only block equivalent elements can be replaced.voidReplacedElement. detach(LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.layout
Methods in com.openhtmltopdf.layout that return LayoutContext Modifier and Type Method Description LayoutContextSharedContext. newLayoutContextInstance()Methods in com.openhtmltopdf.layout with parameters of type LayoutContext Modifier and Type Method Description voidFootnoteManager. addFootnoteBody(LayoutContext c, BlockBox footnoteBody, LineBox line)Adds a footnote body to the line box page, creating the footnote area as required.static voidBreaker. breakFirstLetter(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style)static Breaker.BreakTextResultBreaker. breakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput)voidBlockFormattingContext. clear(LayoutContext c, Box current)static voidBoxBuilder. createChildren(LayoutContext c, BlockBox parent)static StrutMetricsInlineBoxing. createDefaultStrutMetrics(LayoutContext c, Box container)static TableBoxBoxBuilder. createMarginTable(LayoutContext c, PageInfo pageInfo, MarginBoxName[] names, int height, int direction)static BlockBoxBoxBuilder. createRootBox(LayoutContext c, Document document)booleanLayer. crossesPageBreak(LayoutContext c, int top, int bottom)Returns whether the a box with the given top and bottom would cross a page break.static LineBreakContext.LineBreakResultBreaker. doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.TextBreakerSupplier lineBreaker)voidLayer. finish(LayoutContext c)voidBlockFormattingContext. floatBox(LayoutContext c, BlockBox floated)voidFloatManager. floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, BlockBox box)DimensionLayer. getPaintingDimension(LayoutContext c)static BlockBoxBoxBuilder. getRunningBlock(LayoutContext c, PropertyValue value)static voidLayoutUtil. layoutAbsolute(LayoutContext c, LineBox currentLine, BlockBox box)static voidBlockBoxing. layoutContent(LayoutContext c, BlockBox block, int contentStart)static voidInlineBoxing. layoutContent(LayoutContext c, BlockBox box, int initialY, int breakAtLine)static FloatLayoutResultLayoutUtil. layoutFloated(LayoutContext c, LineBox currentLine, BlockBox block, int avail, List<FloatLayoutResult> pendingFloats)voidLayer. layoutPages(LayoutContext c)voidLayer. positionChildren(LayoutContext c)voidFootnoteManager. removeFootnoteBodies(LayoutContext c, List<BlockBox> footnoteBodies, LineBox line)Removes footnotes.Constructors in com.openhtmltopdf.layout with parameters of type LayoutContext Constructor Description BlockFormattingContext(BlockBox block, LayoutContext c)PersistentBFC(BlockBox master, LayoutContext c) -
Uses of LayoutContext in com.openhtmltopdf.layout.counter
Constructors in com.openhtmltopdf.layout.counter with parameters of type LayoutContext Constructor Description CounterContext(LayoutContext ctx, CalculatedStyle style, Integer startIndex)A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly. -
Uses of LayoutContext in com.openhtmltopdf.newtable
Methods in com.openhtmltopdf.newtable with parameters of type LayoutContext Modifier and Type Method Description voidTableBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)voidTableRowBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)intTableCellBox. calcBaseline(LayoutContext c)intTableCellBox. calcBlockBaseline(LayoutContext c)voidTableSectionBox. calcBorders(LayoutContext c)protected voidTableBox. calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)protected voidTableRowBox. calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)voidTableBox. calcMinMaxWidth(LayoutContext c)intTableRowBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)voidTableRowBox. initStaticPos(LayoutContext c, BlockBox parent, int childOffset)booleanTableCellBox. isPageBreaksChange(LayoutContext c, int posDeltaY)voidTableBox. layout(LayoutContext c)voidTableCellBox. layout(LayoutContext c)voidTableRowBox. layout(LayoutContext c, int contentStart)voidTableSectionBox. layout(LayoutContext c, int contentStart)protected voidTableBox. layoutChildren(LayoutContext c, int contentStart)protected voidTableRowBox. layoutChildren(LayoutContext c, int contentStart)protected voidTableSectionBox. layoutChildren(LayoutContext c, int contentStart)voidTableCellBox. moveContent(LayoutContext c, int deltaY)voidTableSectionBox. recalcCells(LayoutContext c)voidTableBox. reset(LayoutContext c)voidTableRowBox. reset(LayoutContext c)voidTableSectionBox. reset(LayoutContext c)protected voidTableBox. resolveAutoMargins(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border)voidTableCellBox. setLayoutWidth(LayoutContext c, int width) -
Uses of LayoutContext in com.openhtmltopdf.render
Methods in com.openhtmltopdf.render with parameters of type LayoutContext Modifier and Type Method Description protected voidBlockBox. addBoxID(LayoutContext c)voidBox. addChildForLayout(LayoutContext c, Box child)voidInlineLayoutBox. addInlineChild(LayoutContext c, Object child)voidInlineLayoutBox. addInlineChild(LayoutContext c, Object child, boolean callUnmarkPending)voidBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)voidLineBox. analyzePageBreaks(LayoutContext c, ContentLimitContainer container)intBlockBox. calcBaseline(LayoutContext c)BreakAtLineContextBlockBox. calcBreakAtLineContext(LayoutContext c)voidBlockBox. calcDimensions(LayoutContext c)protected voidBlockBox. calcDimensions(LayoutContext c, int cssWidth)protected intBlockBox. calcInitialBreakAtLine(LayoutContext c)voidBlockBox. calcInitialFloatedCanvasLocation(LayoutContext c)protected voidBlockBox. calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)Oh oh! Up to this method height is used to track content height.voidBlockBox. calcMinMaxWidth(LayoutContext c)voidInlineBox. calcMinMaxWidth(LayoutContext c, int cbWidth, boolean trimLeadingSpace)voidInlineLayoutBox. calculateHeight(LayoutContext c)voidInlineLayoutBox. calculateTextDecoration(LayoutContext c)booleanBlockBox. checkPageContext(LayoutContext c)voidLineBox. checkPagePosition(LayoutContext c, boolean alwaysBreak)Checks if this line box crosses a page break and if so moves it to the next page.protected voidBlockBox. checkPopBfc(LayoutContext c)Checks if this box established a block formatting context and if so removes the last bfc from the stack.protected voidBlockBox. checkPushBfc(LayoutContext c)Checks if this box establishes a block formatting context and if so creates one and pushes it to the stack of bfcs.protected booleanBlockBox. checkPushLayer(LayoutContext c, CalculatedStyle style)protected voidBlockBox. collapseMargins(LayoutContext c)voidBox. connectChildrenToCurrentLayer(LayoutContext c)voidInlineLayoutBox. connectChildrenToCurrentLayer(LayoutContext c)voidBlockBox. createMarkerData(LayoutContext c)booleanBox. crossesPageBreak(LayoutContext c)Whether this box would cross a page break.voidBox. detach(LayoutContext c)StringBlockBox. dump(LayoutContext c, String indent, int which)abstract StringBox. dump(LayoutContext c, String indent, int which)StringInlineLayoutBox. dump(LayoutContext c, String indent, int which)StringLineBox. dump(LayoutContext c, String indent, int which)protected voidBox. dumpBoxes(LayoutContext c, String indent, List<Box> boxes, int which, StringBuilder result)voidBlockBox. ensureChildren(LayoutContext c)voidBox. forcePageBreakAfter(LayoutContext c, IdentValue pageBreakValue)Forces a page break after this box.intBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)intBox. forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName, int absY)protected intBlockBox. getAvailableWidth(LayoutContext c)PageBoxContentLimitContainer. getPage(LayoutContext c, int absY)intInlineBox. getSpaceWidth(LayoutContext c)intInlineBox. getTrailingSpaceWidth(LayoutContext c)voidBox. initContainingLayer(LayoutContext c)voidBlockBox. initStaticPos(LayoutContext c, BlockBox parent, int childOffset)booleanBlockBox. isContainsInlineContent(LayoutContext c)booleanBlockBox. isCurrentBreakAtLineContext(LayoutContext c)booleanBlockBox. isNeedsKeepWithInline(LayoutContext c)booleanBlockBox. isPageBreakNeededBecauseOfMinHeight(LayoutContext context)Using the css: -fs-page-break-min-height: 5cm; on a block element you can force a pagebreak before this block, if not enough space (e.g.voidAnonymousBlockBox. layout(LayoutContext c)voidBlockBox. layout(LayoutContext c)voidBlockBox. layout(LayoutContext c, int contentStart)voidFlowingColumnContainerBox. layout(LayoutContext c, int contentStart)voidPageBox. layout(LayoutContext c)protected voidBlockBox. layoutChildren(LayoutContext c, int contentStart)protected voidBlockBox. layoutInlineChildren(LayoutContext c, int contentStart, int breakAtLine, boolean tryAgain)voidBlockBox. positionAbsoluteOnPage(LayoutContext c)protected voidBlockBox. propagateExtraSpace(LayoutContext c, ContentLimitContainer parentContainer, ContentLimitContainer currentContainer, int extraTop, int extraBottom)voidInlineLayoutBox. prunePending(LayoutContext c)voidLineBox. prunePendingInlineBoxes(LayoutContext c)voidBlockBox. reset(LayoutContext c)voidBox. reset(LayoutContext c)Responsible for resetting the state of the box before a repeat call toBlockBox.layout(LayoutContext)or other layout methods.voidLineBox. reset(LayoutContext c)protected voidBox. resetChildren(LayoutContext c)voidBox. resetChildren(LayoutContext c, int start, int end)protected voidInlineLayoutBox. resetChildren(LayoutContext c)protected voidBlockBox. resolveAutoMargins(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border)voidFlowingColumnContainerBox. setOnlyChild(LayoutContext c, FlowingColumnBox child)voidAnonymousBlockBox. styleText(LayoutContext c)voidBlockBox. styleText(LayoutContext c)voidBlockBox. styleText(LayoutContext c, CalculatedStyle style)voidInlineText. trimTrailingSpace(LayoutContext c)voidLineBox. trimTrailingSpace(LayoutContext c)voidInlineLayoutBox. unmarkPending(LayoutContext c)voidContentLimitContainer. updateBottom(LayoutContext c, int absY)voidContentLimitContainer. updateTop(LayoutContext c, int absY)Constructors in com.openhtmltopdf.render with parameters of type LayoutContext Constructor Description ContentLimitContainer(LayoutContext c, int startAbsY)InlineLayoutBox(LayoutContext c, Element elem, CalculatedStyle style, int cbWidth) -
Uses of LayoutContext in com.openhtmltopdf.simple.extend
Methods in com.openhtmltopdf.simple.extend with parameters of type LayoutContext Modifier and Type Method Description ReplacedElementNoReplacedElementFactory. createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) -
Uses of LayoutContext in com.openhtmltopdf.swing
Methods in com.openhtmltopdf.swing with parameters of type LayoutContext Modifier and Type Method Description voidEmptyReplacedElement. detach(LayoutContext c)voidImageReplacedElement. detach(LayoutContext c)
-