Пример #1
0
        public static XElement Generate(List <Paragraph> paragaphs, OptimizedCharacterStyleTransformer transformer)
        {
            var blockquote = new XElement("blockquote");

            blockquote.SetAttributeValue("class", "article-pullquote");
            foreach (Paragraph p in paragaphs)
            {
                var paragraphXml = new XElement("p");
                paragraphXml = transformer.GetCharacterStyledElement(paragraphXml, p, CharacterStyleFactory.GetCharacterStyles(), false);
                blockquote.Add(paragraphXml);
            }
            return(blockquote);
        }
Пример #2
0
 public ImageReferenceBuilder(Dictionary <string, WordStyleStruct> styles, OptimizedCharacterStyleTransformer transformer)
 {
     ParagraphStyles = styles;
     Transformer     = transformer;
 }