private static Flow MakeFlowBeDiv(Flow flow) { flow.BoxMaker = childStyle => new DivBox(childStyle); return(flow); }
private static Flow MakeFlowBeParagraph(Flow flow) { flow.BoxMaker = childStyle => new ParaBox(childStyle); return(flow); }
static public Flow Containing(Flow flow) { return(MakeFlowBeDiv(new AtomicFlow(flow))); }
static public Flow Containing(Flow flow) { return(MakeFlowBeParagraph(new AtomicFlow(flow))); }