C# Class LayoutFarm.HtmlBoxes.LinesFormattingEngine

Mostrar archivo Open project: prepare/HTML-Renderer

Public Methods

Method Description
DoLayoutLinesContext ( CssBox hostBlock, LayoutVisitor lay ) : void

do layout line formatting context

Private Methods

Method Description
ApplyAlignment ( CssLineBox lineBox, CssTextAlign textAlign, LayoutVisitor lay ) : void

Applies vertical and horizontal alignment to words in lineboxes

ApplyCenterAlignment ( CssLineBox line ) : void

Applies centered alignment to the text on the linebox

ApplyJustifyAlignment ( CssLineBox lineBox ) : void
ApplyRightAlignment ( CssLineBox line ) : void

Applies right alignment to the text on the linebox

ApplyRightToLeft ( CssLineBox lineBox ) : void

Applies right to left direction to words

FlowBoxContentIntoHostLineFmtContext ( LayoutVisitor lay, CssBox hostBox, CssBox srcBox, float limitLocalRight, float firstRunStartX, CssLineBox &hostLine, float &cx, FloatFormattingContext &floatCtx ) : void

Recursively flows the content of the box using the inline model

FlowRunsIntoHost ( LayoutVisitor lay, CssBox hostBox, CssBox splitableBox, CssBox b, int childNumber, float limitRight, float firstRunStartX, float leftMostSpace, float rightMostSpace, List runs, CssLineBox &hostLine, float &cx ) : void
SetFinalInnerContentSize ( CssBox box, float innerContentW, float innerContentH, LayoutVisitor lay ) : void

Method Details

DoLayoutLinesContext() public static method

do layout line formatting context
public static DoLayoutLinesContext ( CssBox hostBlock, LayoutVisitor lay ) : void
hostBlock CssBox
lay LayoutVisitor
return void