Ejemplo n.º 1
0
    private bool method_26(Class762 A_0, FootnoteType A_1, Class537 A_2, int A_3, int A_4, Class1107 A_5, CharacterFormat A_6)
    {
        int num = 0;

        A_0.bool_0 = A_2.method_2()[A_3] == '\x0002';
        if (A_0.bool_0 && !A_5.bool_0)
        {
            return(false);
        }
        string str = null;

        if (!A_0.bool_0)
        {
            str = new string(A_2.method_2(), A_3, A_4 - A_3);
            if ((A_5.bool_0 && (A_5.char_0 != '\0')) && (str == BookmarkStart.b("ล", num)))
            {
                if (A_5.string_0 != null)
                {
                    A_6.FontName = A_5.string_0;
                }
                str = new string(new char[] { Class742.smethod_2(A_5.char_0) });
            }
        }
        this.class764_0.method_43().imethod_23(A_1, A_0.bool_0, str, A_6);
        new Class1108(this.class764_0, Class700.smethod_0(A_1)).method_4(A_0.method_2(), A_0.method_6());
        this.class764_0.method_43().imethod_24();
        return(true);
    }
Ejemplo n.º 2
0
    private Class762 method_25(int A_0, out FootnoteType A_1)
    {
        Class762 class2 = null;

        A_1 = FootnoteType.Footnote;
        if (this.subDocumentType_0 == SubDocumentType.Main)
        {
            int num = this.class764_0.method_5().method_6(A_0);
            class2 = this.class764_0.method_10().method_1(num);
            if (class2 == null)
            {
                A_1    = FootnoteType.Endnote;
                class2 = this.class764_0.method_11().method_1(num);
            }
        }
        return(class2);
    }
Ejemplo n.º 3
0
    private void method_14(CharacterFormat A_0, Class1107 A_1, Class537 A_2, int A_3, ref int A_4, bool A_5)
    {
        if ((!A_1.bool_0 && (A_4 == 1)) && (A_2.method_2()[A_3] == '\x0015'))
        {
            A_1.bool_0 = true;
        }
        int  num2 = A_3;
        int  num  = A_3;
        int  num3 = A_3 + A_4;
        int  num6 = A_4;
        bool flag = false;
        int  num5 = A_2.method_0(num) - num;

        while (num < num3)
        {
            int num4 = num + num5;
            if ((this.class130_0.method_1() == num4) || (this.class130_1.method_1() == num4))
            {
                flag = true;
            }
            char ch = A_2.method_2()[num];
            if (((((ch != '\b') && !A_1.bool_0) && ((this.class132_0.method_1() != num4) && (this.class136_0.method_1() != num4))) && (((this.class135_0.method_1() != num4) && (this.class133_0.method_1() != num4)) && ((this.class131_0.method_1() != num4) && (this.class134_0.method_1() != num4)))) && ((this.class129_0.method_1() != num4) && !flag))
            {
                if (A_5 || (ch.ToString().IndexOfAny(Class818.char_20) <= -1))
                {
                    goto Label_0290;
                }
                if (num == num2)
                {
                    num++;
                }
                A_4 = num - num2;
                break;
            }
            CharacterFormat format = (CharacterFormat)A_0.Clone();
            if (!A_1.bool_0 && (num > num2))
            {
                this.method_15(format, A_1, A_2, num2, num - num2);
                num2 = num;
            }
            this.class132_0.method_2(num4);
            if (this.class135_0.method_1() == this.class136_0.method_1())
            {
                this.class136_0.method_2(num4);
                this.class135_0.method_2(num4);
                this.class133_0.method_2(num4);
            }
            else
            {
                this.class135_0.method_2(num4);
                this.class133_0.method_2(num4);
                this.class136_0.method_2(num4);
            }
            this.class131_0.method_2(num4);
            this.class134_0.method_2(num4);
            this.class129_0.method_2(num4);
            if (flag)
            {
                FootnoteType type;
                flag = false;
                if (this.class130_0.method_1() == num4)
                {
                    this.class130_0.method_2(num4);
                }
                else
                {
                    this.class130_1.method_2(num4);
                }
                Class762 class2 = this.method_25(num4, out type);
                if ((class2 != null) && this.method_26(class2, type, A_2, num, num3, A_1, format))
                {
                    num2 = num3;
                }
            }
            else if ((A_1.bool_0 && ((A_4 == 1) || (Array.IndexOf <char>(Class818.char_22, ch) > -1))) || (ch == '\b'))
            {
                if (((A_4 > 1) && (num > num2)) && (Array.IndexOf <char>(Class818.char_22, ch) > -1))
                {
                    this.method_15(format, A_1, A_2, num2, num - num2);
                }
                this.method_17(ch, num4, format, A_1);
                num2 = num + 1;
            }
Label_0290:
            num++;
        }
        if (A_5)
        {
            num--;
        }
        if (num > num2)
        {
            this.method_15(A_0, A_1, A_2, num2, num - num2);
            A_4 = (A_4 < num6) ? (num - A_3) : A_4;
        }
    }