Esempio n. 1
0
        /// <summary>
        /// Converts FB2 poem  author element
        /// </summary>
        /// <param name="paragraphItem">item to convert</param>
        /// <param name="poemAuthorConverterParams"></param>
        /// <returns>XHTML representation</returns>
        public IHTMLItem Convert(ParagraphItem paragraphItem, PoemAuthorConverterParamsV3 poemAuthorConverterParams)
        {
            if (paragraphItem == null)
            {
                throw new ArgumentNullException("paragraphItem");
            }

            var paragraphConverter = new ParagraphConverterV3();
            var item = paragraphConverter.Convert(paragraphItem, new ParagraphConverterParamsV3 { ResultType = ParagraphConvTargetEnumV3.Paragraph, StartSection = false, Settings = poemAuthorConverterParams.Settings });

            SetClassType(item, ElementStylesV3.PoemAuthor);
            return item;
        }
        /// <summary>
        /// Converts FB2 poem  author element
        /// </summary>
        /// <param name="paragraphItem">item to convert</param>
        /// <param name="poemAuthorConverterParams"></param>
        /// <returns>XHTML representation</returns>
        public IHTMLItem Convert(ParagraphItem paragraphItem, PoemAuthorConverterParamsV3 poemAuthorConverterParams)
        {
            if (paragraphItem == null)
            {
                throw new ArgumentNullException("paragraphItem");
            }

            var paragraphConverter = new ParagraphConverterV3();
            var item = paragraphConverter.Convert(paragraphItem, new ParagraphConverterParamsV3 {
                ResultType = ParagraphConvTargetEnumV3.Paragraph, StartSection = false, Settings = poemAuthorConverterParams.Settings
            });

            SetClassType(item, ElementStylesV3.PoemAuthor);
            return(item);
        }