Esempio n. 1
0
        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));
     }
 }
Esempio n. 3
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("external-graphic");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 4
0
        /// <inheritdoc />
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement xBlock = Fo("flow");

            RenderAttributes(xBlock, options);
            RenderChildren(xBlock, options);
            return(xBlock);
        }
Esempio n. 5
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Ibex("properties");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 6
0
 protected override void RenderChildren(XElement element, FoRenderOptions options)
 {
     base.RenderChildren(element, options);
     foreach (var masterPage in MasterPages)
     {
         element.Add(masterPage.ToXElement(options));
     }
 }
Esempio n. 7
0
        /// <inheritdoc/>
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("page-number-citation-last");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 8
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("static-content");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 9
0
        /// <inheritdoc/>
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("region-before");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 10
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("table-row");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 11
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("simple-page-master");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 12
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("layout-master-set");

            RenderAttributes(element, options);
            RenderChildren(element, options);
            return(element);
        }
Esempio n. 13
0
 protected override void RenderChildren(XElement element, FoRenderOptions options)
 {
     base.RenderChildren(element, options);
     foreach (FoRegion region in Regions)
     {
         element.Add(region.ToXElement(options));
     }
 }
Esempio n. 14
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement xListBlock = Fo("list-block");

            RenderAttributes(xListBlock, options);
            RenderChildren(xListBlock, options);
            return(xListBlock);
        }
Esempio n. 15
0
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement xLabel = Fo("list-item-label");

            RenderAttributes(xLabel, options);
            RenderChildren(xLabel, options);
            return(xLabel);
        }
Esempio n. 16
0
 protected override void RenderChildren(XElement element, FoRenderOptions options)
 {
     base.RenderChildren(element, options);
     foreach (FoTableRow row in Rows)
     {
         element.Add(row.ToXElement());
     }
 }
Esempio n. 17
0
        /// <inheritdoc />
        public override XElement ToXElement(FoRenderOptions options)
        {
            XElement element = Fo("page-sequence");

            RenderAttributes(element, options);
            RenderChildren(element, options);

            return(element);
        }
Esempio n. 18
0
 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));
     }
 }
Esempio n. 20
0
 /// <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));
     }
 }
Esempio n. 21
0
 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));
     }
 }
Esempio n. 22
0
 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));
     }
 }
Esempio n. 23
0
 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));
     }
 }
Esempio n. 24
0
 /// <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));
     }
 }
Esempio n. 25
0
        /// <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));
            }
        }
Esempio n. 26
0
 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));
 }
Esempio n. 27
0
        /// <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));
            }
        }
Esempio n. 28
0
 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));
     }
 }
Esempio n. 29
0
        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));
            }
        }
Esempio n. 30
0
 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));
     }
 }