コード例 #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);
                }
            }
        }
    }
コード例 #2
0
 private void method_4(ParagraphBase A_0)
 {
     if (A_0 is TextRange)
     {
         Paragraph paragraph = A_0.method_28();
         foreach (Match match in regex_0.Matches(((TextRange)A_0).Text))
         {
             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))
             {
                 if (Class567.smethod_16(match.Groups[2].Value))
                 {
                     this.class974_0.method_8(paragraph, false, true);
                 }
                 if (Class567.smethod_16(match.Groups[1].Value))
                 {
                     this.class974_0.method_8(paragraph, true, false);
                 }
                 if (Class567.smethod_16(match.Groups[3].Value))
                 {
                     this.class974_0.method_8(paragraph, false, false);
                 }
             }
             if (Class567.smethod_16(match.Groups[4].Value) && !this.class422_0.method_67())
             {
                 this.class974_0.method_2(A_0);
             }
         }
     }
 }
コード例 #3
0
    internal VisitorAction method_3(ParagraphBase A_0)
    {
        string text = ((TextRange)A_0).Text;

        if ((text != Class816.string_15) && (text != Class816.string_14))
        {
            Paragraph paragraph = A_0.method_28();
            if (paragraph == null)
            {
                return(VisitorAction.Continue);
            }
            bool flag = ((text.IndexOf(Class816.string_26) != -1) || (text.IndexOf(Class816.string_25) != -1)) || (text.IndexOf(Class816.string_27) != -1);
            if (this.method_11(text, flag))
            {
                return(VisitorAction.Continue);
            }
            switch (this.class422_0.method_23())
            {
            case OpenDocumentWritingStage.ContentAutomaticStyles:
            case OpenDocumentWritingStage.StylesAutomaticStyles:
                if ((!this.class422_0.method_67() || flag) && (!Class569.smethod_7(paragraph) && (!this.class422_0.method_103() || !this.class422_0.method_101())))
                {
                    if (flag)
                    {
                        this.method_4(A_0);
                    }
                    else
                    {
                        this.class974_0.method_2(A_0);
                    }
                }
                break;

            case OpenDocumentWritingStage.ContentBody:
            case OpenDocumentWritingStage.StylesMasterPage:
                if (!flag)
                {
                    this.method_0(A_0);
                    break;
                }
                this.method_5(A_0);
                break;
            }
        }
        return(VisitorAction.Continue);
    }