Ejemplo n.º 1
0
 /**
  * @return The {@link XWPFDocument} instance, this run.belongs to, or
  *         <code>null</code> if parent structure (paragraph > document) is not properly Set.
  */
 public XWPFDocument GetDocument()
 {
     if (paragraph != null)
     {
         return(paragraph.GetDocument());
     }
     return(null);
 }
Ejemplo n.º 2
0
        public XWPFCommentsDecorator(XWPFParagraph paragraph, XWPFParagraphDecorator nextDecorator)
            : base(paragraph, nextDecorator)
        {
            ;

            XWPFComment comment;
            commentText = new StringBuilder();

            foreach (CT_MarkupRange anchor in paragraph.GetCTP().GetCommentRangeStartList())
            {
                if ((comment = paragraph.GetDocument().GetCommentByID(anchor.id)) != null)
                    commentText.Append("\tComment by " + comment.GetAuthor() + ": " + comment.GetText());
            }
        }