Esempio n. 1
0
    internal void method_3(Class703 A_0, BinaryWriter A_1)
    {
        int       position = (int)A_1.BaseStream.Position;
        int       num2     = this.class152_0.vmethod_1(A_1);
        Class1111 class2   = new Class1111(position, num2);

        position = (int)A_1.BaseStream.Position;
        num2     = this.class166_0.vmethod_1(A_1);
        Class1111 class3 = new Class1111(position, num2);

        position = (int)A_1.BaseStream.Position;
        num2     = this.class156_0.vmethod_1(A_1);
        Class1111 class4 = new Class1111(position, num2);

        if (this.subDocumentType_0 == SubDocumentType.Main)
        {
            A_0.class597_0.class1111_40 = class2;
            A_0.class597_0.class1111_56 = class3;
            A_0.class597_0.class1111_75 = class4;
        }
        else
        {
            A_0.class597_0.class1111_41 = class2;
            A_0.class597_0.class1111_58 = class3;
            A_0.class597_0.class1111_76 = class4;
        }
    }
Esempio n. 2
0
 private void method_1(SubDocumentType A_0, Class1111 A_1, string A_2)
 {
     this.hashtable_0      = new Hashtable();
     this.hashtable_1[A_0] = this.hashtable_0;
     this.binaryReader_0.BaseStream.Seek((long)A_1.int_0, SeekOrigin.Begin);
     Class144.smethod_0(this.binaryReader_0, A_1.int_1, 2, this, A_2);
 }
Esempio n. 3
0
    internal void method_0(Class703 A_0, BinaryWriter A_1)
    {
        int       num      = 13;
        int       position = (int)A_1.BaseStream.Position;
        int       num3     = this.class161_0.vmethod_1(A_1);
        Class1111 class2   = new Class1111(position, num3);

        position = (int)A_1.BaseStream.Position;
        num3     = this.class151_0.vmethod_1(A_1);
        Class1111 class3 = new Class1111(position, num3);

        switch (this.footnoteType_0)
        {
        case FootnoteType.Footnote:
            A_0.class597_0.class1111_2 = class2;
            A_0.class597_0.class1111_3 = class3;
            return;

        case FootnoteType.Endnote:
            A_0.class597_0.class1111_46 = class2;
            A_0.class597_0.class1111_47 = class3;
            return;
        }
        throw new InvalidOperationException(BookmarkStart.b("昲嬴尶圸吺䨼儾慀╂⩄⡆㵈╊≌㭎㑐絒", num));
    }
Esempio n. 4
0
 private void method_1(BinaryReader A_0, Class1111 A_1)
 {
     if (A_1.int_1 != 0)
     {
         A_0.BaseStream.Position = A_1.int_0;
         this.method_2(A_0);
         this.method_3(A_0);
         this.method_4(A_0);
     }
 }
Esempio n. 5
0
 internal Class348(SubDocumentType A_0, Class703 A_1, BinaryReader A_2) : this(A_0)
 {
     bool      flag;
     Class1111 class2 = (flag = this.subDocumentType_0 == SubDocumentType.Main) ? A_1.class597_0.class1111_40 : A_1.class597_0.class1111_41;
     this.class152_0.method_23(A_2, class2);
     Class1111 class3 = flag ? A_1.class597_0.class1111_56 : A_1.class597_0.class1111_58;
     this.class166_0.method_23(A_2, class3);
     Class1111 class4 = flag ? A_1.class597_0.class1111_75 : A_1.class597_0.class1111_76;
     this.class156_0.method_23(A_2, class4);
 }
Esempio n. 6
0
 internal void method_0(BinaryReader A_0, Class1111 A_1)
 {
     if (A_1.int_1 != 0)
     {
         A_0.BaseStream.Position = A_1.int_0;
         int num2 = A_0.ReadInt32();
         for (int i = 0; i < num2; i++)
         {
             this.arrayList_0.Add(new Class538(A_0));
         }
     }
 }
Esempio n. 7
0
 private void method_0(BinaryReader A_0, Class1111 A_1)
 {
     if (A_1.int_1 != 0)
     {
         A_0.BaseStream.Position = A_1.int_0;
         A_0.ReadUInt16();
         int num3 = A_0.ReadInt16();
         A_0.ReadInt16();
         for (int i = 0; i < num3; i++)
         {
             A_0.ReadInt16();
             int num = A_0.ReadInt32();
             this.class741_0.method_9(num);
             A_0.ReadInt32();
             A_0.ReadInt32();
         }
     }
 }
Esempio n. 8
0
    internal static void smethod_0(BinaryReader A_0, Class1111 A_1, Document A_2)
    {
        Class907 settings = A_2.Settings;
        int      num      = A_1.int_0;
        int      num2     = A_1.int_1;

        A_0.BaseStream.Seek((long)num, SeekOrigin.Begin);
        int num3 = A_0.ReadUInt16();

        settings.bool_37 = (num3 & 1) != 0;
        settings.bool_67 = (num3 & 2) != 0;
        A_2.FootnoteOptions.method_54((FootnotePosition)((num3 & 0x60) >> 5));
        num3 = A_0.ReadUInt16();
        A_2.FootnoteOptions.method_55(((FootnoteRestartRule)num3) & (FootnoteRestartRule.RestartPage | FootnoteRestartRule.RestartSection));
        A_2.FootnoteOptions.method_56((num3 & 0xfffc) >> 2);
        num3             = A_0.ReadUInt16();
        settings.bool_28 = (num3 & 0x800) == 0;
        settings.bool_27 = (num3 & 0x1000) != 0;
        settings.bool_16 = (num3 & 0x4000) != 0;
        settings.bool_21 = (num3 & 0x8000) != 0;
        num3             = A_0.ReadUInt16();
        settings.bool_63 = (num3 & 4) != 0;
        settings.bool_64 = (num3 & 8) != 0;
        settings.bool_34 = (num3 & 0x10) != 0;
        settings.bool_11 = (num3 & 0x20) != 0;
        settings.bool_35 = (num3 & 0x200) != 0;
        settings.bool_0  = (num3 & 0x400) != 0;
        settings.method_2((num3 & 0x800) != 0);
        settings.bool_65 = (num3 & 0x1000) != 0;
        settings.bool_36 = (num3 & 0x4000) != 0;
        settings.bool_7  = (num3 & 0x8000) != 0;
        num3             = A_0.ReadUInt16();
        settings.float_0 = A_0.ReadUInt16();
        A_0.ReadUInt16();
        settings.int_16 = A_0.ReadUInt16();
        settings.int_15 = A_0.ReadUInt16();
        A_0.ReadUInt16();
        A_0.ReadUInt32();
        A_0.ReadUInt32();
        A_0.ReadUInt32();
        A_0.ReadInt16();
        A_0.ReadInt32();
        A_0.ReadInt32();
        A_0.ReadInt32();
        A_0.ReadInt16();
        A_0.ReadInt32();
        num3 = A_0.ReadUInt16();
        A_2.EndnoteOptions.RestartRule = ((FootnoteRestartRule)num3) & (FootnoteRestartRule.RestartPage | FootnoteRestartRule.RestartSection);
        A_2.EndnoteOptions.StartNumber = (num3 & 0xfffc) >> 2;
        num3 = A_0.ReadUInt16();
        A_2.EndnoteOptions.method_54(((FootnotePosition)num3) & FootnotePosition.PrintAsEndOfDocument);
        settings.bool_6  = (num3 & 0x400) != 0;
        settings.bool_10 = (num3 & 0x800) != 0;
        settings.bool_41 = (num3 & 0x1000) == 0;
        A_0.ReadInt32();
        A_0.ReadInt32();
        A_0.ReadInt32();
        A_0.ReadInt16();
        A_0.ReadInt32();
        A_0.ReadInt32();
        A_2.LegacyHash = (uint)A_0.ReadInt32();
        num3           = A_0.ReadUInt16();
        A_2.ViewSetup.DocumentViewType = ((DocumentViewType)num3) & ((DocumentViewType)7);
        int num4 = (num3 & 0xff8) >> 3;

        if (num4 > 0)
        {
            A_2.ViewSetup.ZoomPercent = num4;
        }
        A_2.ViewSetup.ZoomType = (ZoomType)((num3 & 0x3000) >> 12);
        settings.bool_15       = (num3 & 0x8000) != 0;
        smethod_6(settings, num2);
        Class908 class3 = settings.method_5();

        if (num2 >= 500)
        {
            smethod_2(A_0.ReadInt32(), class3);
            settings.autoFormatDocumentType_0 = (AutoFormatDocumentType)A_0.ReadUInt16();
            num3                        = A_0.ReadUInt16();
            settings.bool_42            = (num3 & 1) != 0;
            settings.characterSpacing_0 = (CharacterSpacing)((num3 & 6) >> 1);
            settings.bool_44            = (num3 & 0x18) != 0;
            settings.bool_43            = (num3 & 0x20) != 0;
            int num5 = A_0.ReadInt16();
            int num6 = A_0.ReadInt16();
            int num7 = (num3 & 0x380) >> 7;
            settings.localeIDs_0 = Class813.smethod_23(num7);
            char[] chArray  = Class813.smethod_15(A_0, true, 0x65);
            char[] chArray2 = Class813.smethod_15(A_0, true, 0x33);
            settings.string_2 = new string(chArray, 0, Math.Min(num5, 0x65));
            settings.string_1 = new string(chArray2, 0, Math.Min(num6, 0x33));
            settings.int_23   = A_0.ReadInt16();
            settings.int_24   = A_0.ReadInt16();
            settings.int_19   = A_0.ReadInt16();
            settings.int_20   = A_0.ReadInt16();
            num3             = A_0.ReadUInt16();
            settings.int_22  = num3 & 0x7f;
            settings.bool_68 = (num3 & 0x80) != 0;
            settings.int_21  = (num3 & 0x7f00) >> 8;
            settings.bool_40 = (num3 & 0x8000) != 0;
            num3             = A_0.ReadUInt16();
            settings.int_28  = (num3 & 30) >> 1;
            if ((num3 & 0x20) != 0)
            {
                settings.proofState_1 = ((num3 & 0x40) != 0) ? ProofState.Clean : ProofState.Dirty;
            }
            else
            {
                settings.proofState_1 = ProofState.None;
            }
            settings.bool_9  = (num3 & 0x80) != 0;
            settings.bool_69 = (num3 & 0x100) != 0;
            settings.bool_66 = (num3 & 0x200) != 0;
            settings.bool_12 = (num3 & 0x800) != 0;
            settings.bool_13 = (num3 & 0x1000) == 0;
            settings.bool_14 = (num3 & 0x2000) == 0;
            num3             = A_0.ReadUInt16();
            settings.bool_70 = (num3 & 1) != 0;
            settings.bool_71 = (num3 & 2) != 0;
            A_0.ReadBytes(12);
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_2.VbaDocumentEvents = (VbaDocumentEvents)A_0.ReadInt32();
            num3 = A_0.ReadInt32();
            A_0.ReadBytes(30);
            A_0.ReadUInt32();
            A_0.ReadUInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadUInt32();
            A_2.FootnoteOptions.method_53((FootnoteNumberFormat)A_0.ReadInt16());
            A_2.EndnoteOptions.method_53((FootnoteNumberFormat)A_0.ReadInt16());
            A_0.ReadUInt16();
            A_0.ReadUInt16();
        }
        if (num2 >= 0x220)
        {
            A_0.ReadUInt16();
            settings.int_30  = A_0.ReadUInt16();
            num3             = A_0.ReadInt32();
            settings.bool_29 = (num3 & 2) != 0;
            if ((num3 & 0x10000000) != 0)
            {
                settings.bool_48      = (num3 & 0x200) == 0;
                settings.bool_46      = (num3 & 0x400) != 0;
                settings.bool_47      = (num3 & 0x800) != 0;
                settings.screenSize_1 = (ScreenSize)((num3 & 0xf000) >> 12);
                settings.bool_50      = (num3 & 0x10000) == 0;
                settings.bool_51      = (num3 & 0x20000) == 0;
                settings.int_25       = (num3 & 0xffc0000) >> 0x12;
            }
            smethod_2(A_0.ReadInt32(), class3);
            num3 = A_0.ReadInt32();
            class3.method_68((num3 & 1) != 0);
            class3.method_70((num3 & 2) != 0);
            class3.method_72((num3 & 4) != 0);
            class3.method_74((num3 & 8) != 0);
            class3.method_76((num3 & 0x10) != 0);
            class3.method_78((num3 & 0x20) != 0);
            class3.method_80((num3 & 0x40) != 0);
            class3.method_82((num3 & 0x80) != 0);
            class3.method_84((num3 & 0x100) != 0);
            class3.method_86((num3 & 0x200) != 0);
            if (num2 >= 0x252)
            {
                class3.method_88((num3 & 0x400) != 0);
                class3.method_90((num3 & 0x800) != 0);
                class3.method_92((num3 & 0x1000) != 0);
                class3.method_94((num3 & 0x2000) != 0);
                class3.method_96((num3 & 0x4000) != 0);
                class3.method_98((num3 & 0x8000) != 0);
            }
            if (num2 >= 0x268)
            {
                class3.method_100((num3 & 0x10000) != 0);
                class3.method_102((num3 & 0x20000) != 0);
            }
            if (num2 >= 0x2a2)
            {
                class3.method_104((num3 & 0x40000) != 0);
                class3.method_106((num3 & 0x80000) != 0);
                class3.method_108((num3 & 0x100000) != 0);
                class3.method_110((num3 & 0x200000) != 0);
                class3.method_112((num3 & 0x400000) != 0);
                class3.method_114((num3 & 0x800000) != 0);
                class3.method_116((num3 & 0x1000000) != 0);
                class3.method_118((num3 & 0x2000000) != 0);
                class3.method_120((num3 & 0x4000000) != 0);
                class3.method_122((num3 & 0x8000000) != 0);
                class3.method_124((num3 & 0x10000000) != 0);
                class3.method_126((num3 & 0x20000000) != 0);
                class3.method_128((num3 & 0x40000000) != 0);
                class3.method_130((num3 & 0x80000000L) != 0L);
            }
            num3 = A_0.ReadInt32();
            if (num2 >= 0x2a2)
            {
                class3.method_132((num3 & 1) != 0);
            }
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            num3 = A_0.ReadInt32();
            A_2.ViewSetup.DoNotDisplayPageBoundaries = (num3 & 0x20000) != 0;
            settings.bool_3 = (num3 & 0x800000) != 0;
            if ((num3 & 0x8000000) != 0)
            {
                settings.bool_52 = (num3 & 0x10000000) != 0;
                settings.bool_53 = (num3 & 0x20000000) != 0;
                settings.bool_58 = (num3 & 0x40000000) == 0;
                settings.bool_60 = (num3 & 0x80000000L) != 0L;
            }
        }
        if (num2 >= 0x252)
        {
            A_0.ReadInt32();
            num3             = A_0.ReadUInt16();
            settings.bool_8  = (num3 & 1) != 0;
            settings.bool_61 = (num3 & 8) == 0;
            settings.bool_62 = (num3 & 0x10) != 0;
            settings.bool_39 = (num3 & 0x40) != 0;
            settings.bool_38 = (num3 & 0x80) != 0;
            settings.bool_19 = (num3 & 0x800) != 0;
            settings.bool_22 = (num3 & 0x1000) != 0;
            settings.bool_23 = (num3 & 0x2000) != 0;
            settings.bool_24 = (num3 & 0x4000) != 0;
            settings.bool_25 = (num3 & 0x8000) != 0;
            settings.int_31  = A_0.ReadUInt16();
            A_0.ReadUInt16();
            settings.int_32 = A_0.ReadUInt16();
            settings.int_18 = A_0.ReadUInt16();
            settings.int_27 = A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            settings.int_26 = A_0.ReadInt32();
        }
        if (num2 >= 0x268)
        {
            num3             = A_0.ReadInt32();
            settings.bool_33 = (num3 & 1) != 0;
            bool flag2 = (num3 & 2) != 0;
            settings.bool_2  = (num3 & 4) != 0;
            settings.bool_54 = (num3 & 8) != 0;
            settings.bool_59 = (num3 & 0x10) != 0;
            bool flag = (num3 & 0x20) != 0;
            settings.bool_1  = flag2 && flag;
            settings.bool_56 = (num3 & 0x80) != 0;
            settings.bool_57 = (num3 & 0x100) != 0;
            settings.bool_18 = (num3 & 0x800) != 0;
            settings.bool_17 = (num3 & 0x1000) != 0;
            num3             = A_0.ReadUInt16();
            settings.bool_30 = (num3 & 1) != 0;
            settings.bool_26 = (num3 & 2) != 0;
            settings.bool_31 = (num3 & 4) != 0;
            settings.bool_32 = (num3 & 8) != 0;
            settings.int_17  = (num3 & 0x70) >> 4;
            A_2.ViewSetup.DisplayBackgroundShape = (num3 & 0x80) != 0;
            A_0.ReadUInt16();
            A_0.ReadUInt16();
            A_0.ReadInt32();
            A_0.ReadUInt16();
            A_0.ReadUInt16();
            A_0.ReadInt32();
        }
        if (num2 >= 0x2a2)
        {
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            A_0.ReadInt32();
            smethod_1(A_0, A_2);
        }
        long position = A_0.BaseStream.Position;
    }
Esempio n. 9
0
 internal void method_23(BinaryReader A_0, Class1111 A_1)
 {
     A_0.BaseStream.Position = A_1.int_0;
     Class144.smethod_0(A_0, A_1.int_1, this.int_1, this, base.GetType().Name);
 }
Esempio n. 10
0
 internal static void smethod_1(BinaryReader A_0, Class1111 A_1, StringCollection A_2)
 {
     smethod_2(A_0, A_1.int_0, A_1.int_1, A_2);
 }
Esempio n. 11
0
    private void method_1(Class1111 A_0)
    {
        int num  = A_0.int_0;
        int num2 = A_0.int_1;

        if (num2 != 0)
        {
            this.binaryReader_0.BaseStream.Position = num;
            int  num3  = num + num2;
            int  num4  = this.binaryReader_0.ReadInt16();
            bool flag  = (num4 & 2) != 0;
            bool flag2 = (num4 & 4) != 0;
            this.class460_0.method_28((MailMergeMainDocumentType)((num4 & 120) >> 3));
            this.class460_0.method_18((num4 & 0x400) == 0);
            this.class460_0.method_16((MailMergeDestination)((num4 & 0xe000) >> 13));
            int index = this.binaryReader_0.ReadByte();
            int num6  = this.binaryReader_0.ReadByte();
            this.class460_0.method_4(this.binaryReader_0.ReadInt32());
            Class1058[] classArray = new Class1058[] { new Class1058(this.binaryReader_0), new Class1058(this.binaryReader_0) };
            if (flag)
            {
                Class1058 class2 = classArray[num6];
                this.class460_0.method_14(class2.mailMergeDataType_0);
                this.class460_0.method_12(this.class342_0.method_5(class2.int_0));
                this.class460_0.method_22(class2.bool_0);
                if (this.class460_0.method_13() == MailMergeDataType.TextFile)
                {
                    this.class460_0.method_36(class2.mailMergeLegacySeparator_0);
                    this.class460_0.method_38(class2.mailMergeLegacySeparator_1);
                }
            }
            if (flag2)
            {
                Class1058 class3 = classArray[index];
                this.class460_0.method_20(this.class342_0.method_5(class3.int_0));
                if (this.class460_0.method_13() == MailMergeDataType.TextFile)
                {
                    this.class460_0.method_40(class3.mailMergeLegacySeparator_0);
                    this.class460_0.method_42(class3.mailMergeLegacySeparator_1);
                }
            }
            int num7 = this.binaryReader_0.ReadInt16();
            this.class460_0.method_34((num7 & 1) != 0);
            this.class460_0.method_8((MailMergeCheckErrors)(((num7 & 6) >> 1) + 1));
            bool flag3 = (num7 & 0x10) != 0;
            bool flag4 = (num7 & 0x80) != 0;
            this.class460_0.method_24(!flag3 && !flag4);
            int num8 = this.binaryReader_0.ReadInt16();
            int num9 = this.binaryReader_0.ReadInt16();
            this.class460_0.method_32(Class813.smethod_5(this.binaryReader_0, num9));
            if (num8 != 0)
            {
                StringCollection strings = new StringCollection();
                int num10 = num3 - ((int)this.binaryReader_0.BaseStream.Position);
                Class343.smethod_2(this.binaryReader_0, (int)this.binaryReader_0.BaseStream.Position, num10, strings);
                this.class460_0.method_10(strings[0]);
                string text1 = strings[1];
                this.class460_0.method_26(strings[2]);
                this.class460_0.method_6(strings[3]);
            }
            if (this.binaryReader_0.BaseStream.Position < num3)
            {
                int num11 = this.binaryReader_0.ReadInt32();
                this.class460_0.method_28((MailMergeMainDocumentType)num11);
            }
        }
    }
Esempio n. 12
0
    internal static Class14 smethod_0(Class703 A_0, BinaryReader A_1, ListStyleCollection A_2)
    {
        Class1111 class2 = A_0.class1057_0.class1111_6;

        if (class2.int_1 == 0)
        {
            return(null);
        }
        A_1.BaseStream.Position = class2.int_0;
        Stack   stack  = new Stack();
        Class14 class3 = null;
        Class14 class4 = null;

        while ((A_1.BaseStream.Position - class2.int_0) < class2.int_1)
        {
            bool flag;
            int  num;
            int  num2;
            int  num3;
            A_1.ReadInt32();
            switch (A_1.ReadInt32())
            {
            case 0:
            {
                class3 = new Class14();
                class4 = class3;
                continue;
            }

            case 1:
            {
                if (stack.Count > 0)
                {
                    class4 = new Class14();
                    ((Class14)stack.Peek()).method_121().method_2(class4);
                }
                class4.method_56((FrameDividerPositionType)A_1.ReadInt32());
                class4.method_58(A_1.ReadInt32());
                class4.method_60((FrameLayoutType)A_1.ReadInt32());
                A_1.ReadInt32();
                class4.method_62(A_1.ReadInt32());
                class4.method_67(A_1.ReadInt32());
                class4.method_115((FrameScrollType)A_1.ReadInt32());
                int num6 = A_1.ReadInt32();
                class4.method_117((num6 & 1) != 0);
                class4.method_119((num6 & 2) != 0);
                A_1.ReadInt32();
                continue;
            }

            case 2:
            {
                if ((A_1.ReadInt32() & 1) == 0)
                {
                    break;
                }
                stack.Push(class4);
                continue;
            }

            case 3:
            {
                class4.method_52(Class813.smethod_1(A_1, true, true));
                continue;
            }

            case 4:
            {
                class4.method_54(Class813.smethod_1(A_1, true, true));
                continue;
            }

            case 5:
            {
                class3.method_127(A_1.ReadInt32());
                class3.method_125(Class624.smethod_7(A_1.ReadInt32()));
                int  num7  = A_1.ReadInt32();
                bool flag2 = (num7 & 1) != 0;
                flag = (num7 & 2) != 0;
                if (!flag2)
                {
                    goto Label_01D3;
                }
                class3.method_123(FramesetBorderType.None);
                continue;
            }

            case 6:
                num  = A_1.ReadInt32();
                num2 = 0;
                goto Label_0228;

            default:
            {
                continue;
            }
            }
            class4 = (Class14)stack.Pop();
            continue;
Label_01D3:
            if (flag)
            {
                class3.method_123(FramesetBorderType.Raised);
            }
            else
            {
                class3.method_123(FramesetBorderType.Simple);
            }
            continue;
Label_01F5:
            num3 = A_1.ReadInt16();
            int       num5  = A_1.ReadUInt16() & 0xfff;
            ListStyle style = A_2[num3];
            style.ListStyleIstd = num5;
            num2++;
Label_0228:
            if (num2 < num)
            {
                goto Label_01F5;
            }
        }
        return(class3);
    }