コード例 #1
0
        protected void ProcessChild(DocxNode node, ref Paragraph paragraph, Dictionary <string, object> properties)
        {
            DocxElement element = context.Convert(node);

            if (element != null)
            {
                if (ParagraphCreated != null)
                {
                    element.ParagraphCreated = ParagraphCreated;
                }

                element.Process(node, ref paragraph, properties);
            }
        }
コード例 #2
0
        protected void ProcessChild(DocxNode node, ref Paragraph paragraph)
        {
            DocxElement element = context.Convert(node);

            if (element != null)
            {
                if (ParagraphCreated != null)
                {
                    element.ParagraphCreated = ParagraphCreated;
                }

                element.Process(node, ref paragraph);
            }
        }
コード例 #3
0
        public void Process(IParser parser)
        {
            if (parser == null)
            {
                throw new ArgumentNullException("parser");
            }

            parser.BaseURL   = context.BaseURL;
            parser.UriSchema = context.UriSchema;
            IHtmlNode node = parser.FindBodyOrFirstElement();

            context.SetParser(parser);

            if (node != null)
            {
                DocxElement body      = context.GetBodyElement();
                Paragraph   paragraph = null;
                body.Process(new DocxNode(node), ref paragraph);
            }
        }