public override XElement ToXElement(FoRenderOptions options) { XElement xListItem = Fo("list-item"); RenderAttributes(xListItem, options); RenderChildren(xListItem, options); return(xListItem); }
/// <inheritdoc/> protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (ReferenceId.HasValue()) { element.Add(new XAttribute("ref-id", ReferenceId)); } }
public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("external-graphic"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
/// <inheritdoc /> public override XElement ToXElement(FoRenderOptions options) { XElement xBlock = Fo("flow"); RenderAttributes(xBlock, options); RenderChildren(xBlock, options); return(xBlock); }
public override XElement ToXElement(FoRenderOptions options) { XElement element = Ibex("properties"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
protected override void RenderChildren(XElement element, FoRenderOptions options) { base.RenderChildren(element, options); foreach (var masterPage in MasterPages) { element.Add(masterPage.ToXElement(options)); } }
/// <inheritdoc/> public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("page-number-citation-last"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("static-content"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
/// <inheritdoc/> public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("region-before"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("table-row"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("simple-page-master"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("layout-master-set"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
protected override void RenderChildren(XElement element, FoRenderOptions options) { base.RenderChildren(element, options); foreach (FoRegion region in Regions) { element.Add(region.ToXElement(options)); } }
public override XElement ToXElement(FoRenderOptions options) { XElement xListBlock = Fo("list-block"); RenderAttributes(xListBlock, options); RenderChildren(xListBlock, options); return(xListBlock); }
public override XElement ToXElement(FoRenderOptions options) { XElement xLabel = Fo("list-item-label"); RenderAttributes(xLabel, options); RenderChildren(xLabel, options); return(xLabel); }
protected override void RenderChildren(XElement element, FoRenderOptions options) { base.RenderChildren(element, options); foreach (FoTableRow row in Rows) { element.Add(row.ToXElement()); } }
/// <inheritdoc /> public override XElement ToXElement(FoRenderOptions options) { XElement element = Fo("page-sequence"); RenderAttributes(element, options); RenderChildren(element, options); return(element); }
protected override void RenderChildren(XElement element, FoRenderOptions options) { base.RenderChildren(element, options); foreach (FoTableColumn column in Columns) { element.Add(column.ToXElement(options)); } element.Add(Body.ToXElement(options)); }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (ColumnNumber > 0) { element.Add(new XAttribute("column-number", ColumnNumber)); } if (ColumnWidth.HasValue()) { element.Add(new XAttribute("column-width", ColumnWidth)); } }
/// <inheritdoc /> protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (Id.HasValue()) { element.Add(new XAttribute("id", Id)); } if (FlowName.HasValue()) { element.Add(new XAttribute("flow-name", FlowName)); } }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (NumberColumnsSpanned > 0) { element.Add(new XAttribute("number-columns-spanned", NumberColumnsSpanned)); } if (NumberRowsSpanned > 0) { element.Add(new XAttribute("number-rows-spanned", NumberRowsSpanned)); } }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (StartIndent.HasValue()) { element.Add(new XAttribute("start-indent", StartIndent)); } if (EndIndent.HasValue()) { element.Add(new XAttribute("end-indent", EndIndent)); } }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (KeepTogetherWithinColumn.HasValue()) { element.Add(new XAttribute("keep-together", KeepTogetherWithinColumn)); } if (KeepTogetherWithinColumn.HasValue()) { element.Add(new XAttribute("keep-together.within-column", KeepTogetherWithinColumn)); } }
/// <inheritdoc/> protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (PageCitationStrategy != FoPageCitationStrategy.Inherit) { element.Add(new XAttribute("page-citation-strategy", ToKebabCase(PageCitationStrategy))); } if (ReferenceId.HasValue()) { element.Add(new XAttribute("ref-id", ReferenceId)); } }
/// <inheritdoc /> protected override void RenderChildren(XElement element, FoRenderOptions options) { base.RenderChildren(element, options); foreach (FoStaticContent staticContent in StaticContent) { element.Add(staticContent.ToXElement(options)); } foreach (FoFlow flow in Flows) { element.Add(flow.ToXElement(options)); } }
protected override void RenderChildren(XElement element, FoRenderOptions options) { if (Label == null) { throw new PropertyNotSetException(nameof(Label)); } if (Body == null) { throw new PropertyNotSetException(nameof(Body)); } element.Add(Label.ToXElement(options)); element.Add(Body.ToXElement(options)); }
/// <inheritdoc /> protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (MasterReference.IsNullOrWhiteSpace()) { throw new PropertyNotSetException(nameof(MasterReference)); } element.Add(new XAttribute("master-reference", MasterReference)); if (Id.HasValue()) { element.Add(new XAttribute("id", Id)); } }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { if (RegionName.HasValue()) { element.Add(new XAttribute("region-name", RegionName)); } if (BackgroundRepeat.HasValue()) { element.Add(new XAttribute("background-repeat", BackgroundRepeat)); } if (BackgroundImage.HasValue()) { element.Add(new XAttribute("background-image", "url(" + BackgroundImage + ")")); } if (ColumnCount > 0) { element.Add(new XAttribute("column-count", ColumnCount)); } if (ColumnGap.HasValue()) { element.Add(new XAttribute("column-gap", ColumnGap)); } if (Extent.HasValue()) { element.Add(new XAttribute("extent", Extent)); } if (Margin.HasValue()) { element.Add(new XAttribute("margin", Margin)); } if (MarginTop.HasValue()) { element.Add(new XAttribute("margin-top", MarginTop)); } if (MarginRight.HasValue()) { element.Add(new XAttribute("margin-right", MarginRight)); } if (MarginBottom.HasValue()) { element.Add(new XAttribute("margin-bottom", MarginBottom)); } if (MarginLeft.HasValue()) { element.Add(new XAttribute("margin-left", MarginLeft)); } }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (MasterName.IsNullOrWhiteSpace()) { throw new PropertyNotSetException(nameof(MasterName)); } element.Add(new XAttribute("master-name", MasterName)); if (PageWidth.HasValue()) { element.Add(new XAttribute("page-width", PageWidth)); } if (PageHeight.HasValue()) { element.Add(new XAttribute("page-height", PageHeight)); } if (Margin.HasValue()) { element.Add(new XAttribute("margin", Margin)); } if (MarginTop.HasValue()) { element.Add(new XAttribute("margin-top", MarginTop)); } if (MarginRight.HasValue()) { element.Add(new XAttribute("margin-right", MarginRight)); } if (MarginBottom.HasValue()) { element.Add(new XAttribute("margin-bottom", MarginBottom)); } if (MarginLeft.HasValue()) { element.Add(new XAttribute("margin-left", MarginLeft)); } }
protected override void RenderAttributes(XElement element, FoRenderOptions options) { base.RenderAttributes(element, options); if (Margin.HasValue()) { element.Add(new XAttribute("margin", Margin)); } if (MarginTop.HasValue()) { element.Add(new XAttribute("margin-top", MarginTop)); } if (MarginRight.HasValue()) { element.Add(new XAttribute("margin-right", MarginRight)); } if (MarginBottom.HasValue()) { element.Add(new XAttribute("margin-bottom", MarginBottom)); } if (MarginLeft.HasValue()) { element.Add(new XAttribute("margin-left", MarginLeft)); } }