Esempio n. 1
0
    private void method_5(ParagraphBase A_0)
    {
        Paragraph paragraph  = A_0.method_28();
        Section   section    = paragraph.method_49().Clone();
        Paragraph paragraph2 = (Paragraph)paragraph.Clone();

        section.Body.Paragraphs.Add(paragraph2);
        if (A_0 is TextRange)
        {
            foreach (Match match in regex_0.Matches(((TextRange)A_0).Text))
            {
                string str = match.Groups[4].Value;
                if (((Class567.smethod_16(match.Groups[2].Value) || Class567.smethod_16(match.Groups[1].Value)) || Class567.smethod_16(match.Groups[3].Value)) && !this.method_6(A_0, match.Index))
                {
                    this.class569_0.method_19(paragraph);
                }
                if (Class567.smethod_16(str))
                {
                    ParagraphBase entity = (ParagraphBase)A_0.Clone();
                    paragraph2.ChildObjects.Add(entity);
                    if (entity is TextRange)
                    {
                        ((TextRange)entity).Text = str;
                    }
                    this.method_0(entity);
                }
            }
        }
    }
Esempio n. 2
0
 public void Copy(ParagraphBase pItem, bool clone)
 {
     if (clone)
     {
         pItem = (ParagraphBase)pItem.Clone();
     }
     this.method_4(pItem.Document);
     this.body_0.AddParagraph().Items.Add(pItem);
 }