예제 #1
0
 protected override void Write(SpeeDataRenderer renderer, HeadingBlock headingBlock)
 {
     renderer.WriteStartParagraph();
     renderer.WriteStartElement("Fontface");
     renderer.WriteAttribute("fontfamily", headingBlock.Level <= 1 ? "head1" : "head2");
     renderer.WriteStartElement("B");
     renderer.WriteItems(headingBlock);
     renderer.WriteEndElement();
     renderer.WriteEndElement();
     renderer.WriteEndParagraph();
 }
예제 #2
0
            }             // proc WriteSpan

            protected override void Write(SpeeDataRenderer renderer, EmphasisInline span)
            {
                if (WriteSpan(renderer, span))
                {
                    renderer.WriteItems(span);
                    renderer.WriteEndElement();
                }
                else
                {
                    renderer.WriteChildren(span);
                }
            }     // proc Write
예제 #3
0
            protected override void Write(SpeeDataRenderer renderer, ListBlock listBlock)
            {
                if (listBlock.IsOrdered)
                {
                    renderer.WriteStartElement("OL");

                    //if (listBlock.OrderedStart != null && (listBlock.DefaultOrderedStart != listBlock.OrderedStart))
                    //	renderer.WriteMember(List.StartIndexProperty, listBlock.OrderedStart);
                }
                else
                {
                    renderer.WriteStartElement("UL");
                }


                foreach (var cur in listBlock)
                {
                    renderer.WriteStartElement("LI");
                    renderer.WriteItems((ContainerBlock)cur);
                    renderer.WriteEndElement();
                }

                renderer.WriteEndElement();
            }
예제 #4
0
 protected override void Write(SpeeDataRenderer renderer, ThematicBreakBlock obj)
 {
     renderer.WriteStartElement("Paragraph");
     renderer.WriteEndElement();
 }
예제 #5
0
 protected override void Write(SpeeDataRenderer renderer, CodeInline code)
 {
     renderer.WriteStartElement("Span");
     renderer.WriteText(code.Content);
     renderer.WriteEndElement();
 }