Exemple #1
0
 private static void smethod_6(Class907 A_0, int A_1)
 {
     if (A_1 >= 0x2a2)
     {
         A_0.method_6(A_0.method_5().method_145());
     }
     else if (A_1 >= 0x268)
     {
         A_0.method_6(A_0.method_5().method_144());
     }
     else if (A_1 >= 0x252)
     {
         A_0.method_6(A_0.method_5().method_143());
     }
     else if (A_1 >= 0x220)
     {
         A_0.method_6(A_0.method_5().method_142());
     }
     else
     {
         A_0.method_6(A_0.method_5().method_141());
     }
     A_0.method_5().method_138(true);
 }
Exemple #2
0
    internal static int smethod_3(Document A_0, BinaryWriter A_1)
    {
        int      num      = 14;
        Class907 settings = A_0.Settings;
        int      position = (int)A_1.BaseStream.Position;
        int      num3     = 0;

        num3  = 0 | (settings.bool_37 ? 1 : 0);
        num3 |= settings.bool_67 ? 2 : 0;
        num3 |= (settings.class460_0.method_27() != MailMergeMainDocumentType.NotAMergeDocument) ? 4 : 0;
        num3 |= ((int)A_0.FootnoteOptions.Position) << 5;
        A_1.Write((ushort)num3);
        num3  = 0;
        num3  = (int)(FootnoteRestartRule.DoNotRestart | A_0.FootnoteOptions.RestartRule);
        num3 |= A_0.FootnoteOptions.StartNumber << 2;
        A_1.Write((ushort)num3);
        num3  = 0;
        num3  = 0xf1;
        num3  = 0xf1 | (!settings.bool_28 ? 0x800 : 0);
        num3 |= settings.bool_27 ? 0x1000 : 0;
        num3 |= settings.bool_16 ? 0x4000 : 0;
        num3 |= settings.bool_21 ? 0x8000 : 0;
        A_1.Write((ushort)num3);
        num3  = 0;
        num3  = 0x80;
        num3  = 0x80 | (settings.bool_63 ? 4 : 0);
        num3 |= settings.bool_64 ? 8 : 0;
        num3 |= settings.bool_34 ? 0x10 : 0;
        num3 |= settings.bool_11 ? 0x20 : 0;
        num3 |= settings.bool_36 ? 0x200 : 0;
        num3 |= settings.bool_0 ? 0x400 : 0;
        num3 |= settings.method_1() ? 0x800 : 0;
        num3 |= settings.bool_65 ? 0x1000 : 0;
        num3 |= settings.bool_35 ? 0x4000 : 0;
        num3 |= settings.bool_7 ? 0x8000 : 0;
        A_1.Write((ushort)num3);
        Class908 class3 = settings.method_5();

        num3 = smethod_5(class3);
        A_1.Write((ushort)num3);
        A_1.Write((ushort)settings.float_0);
        A_1.Write((ushort)0);
        A_1.Write((ushort)settings.int_16);
        A_1.Write((ushort)settings.int_15);
        A_1.Write((ushort)0);
        Class353.smethod_4(A_0.BuiltinDocumentProperties.CreateDate, A_1);
        Class353.smethod_4(A_0.BuiltinDocumentProperties.LastSaveDate, A_1);
        Class353.smethod_4(A_0.BuiltinDocumentProperties.LastPrinted, A_1);
        if (!string.IsNullOrEmpty(A_0.BuiltinDocumentProperties.RevisionNumber))
        {
            A_1.Write(short.Parse(A_0.BuiltinDocumentProperties.RevisionNumber));
        }
        else
        {
            A_1.Write((short)1);
        }
        A_1.Write(int.Parse(A_0.BuiltinDocumentProperties.TotalEditingTime.Minutes.ToString()));
        A_1.Write(A_0.BuiltinDocumentProperties.WordCount);
        A_1.Write(A_0.BuiltinDocumentProperties.CharCount);
        A_1.Write((short)1);
        A_1.Write(A_0.BuiltinDocumentProperties.ParagraphCount);
        num3  = 0;
        num3  = (int)(FootnoteRestartRule.DoNotRestart | A_0.EndnoteOptions.RestartRule);
        num3 |= A_0.EndnoteOptions.StartNumber << 2;
        A_1.Write((ushort)num3);
        num3  = 0;
        num3  = (int)(FootnotePosition.PrintAsEndOfSection | A_0.EndnoteOptions.Position);
        num3 |= settings.bool_6 ? 0x400 : 0;
        num3 |= settings.bool_10 ? 0x800 : 0;
        num3 |= !settings.bool_41 ? 0x1000 : 0;
        A_1.Write((ushort)num3);
        A_1.Write(1);
        A_1.Write(0);
        A_1.Write(0);
        A_1.Write((short)1);
        A_1.Write(1);
        A_1.Write(1);
        A_1.Write((int)A_0.LegacyHash);
        num3  = 0;
        num3  = (int)(DocumentViewType.None | A_0.ViewSetup.DocumentViewType);
        num3 |= A_0.ViewSetup.ZoomPercent << 3;
        num3 |= ((int)A_0.ViewSetup.ZoomType) << 12;
        num3 |= settings.bool_15 ? 0x8000 : 0;
        A_1.Write((ushort)num3);
        num3 = smethod_5(class3);
        A_1.Write((uint)num3);
        A_1.Write((ushort)settings.autoFormatDocumentType_0);
        num3  = 0;
        num3  = 0 | (settings.bool_42 ? 1 : 0);
        num3 |= ((int)settings.characterSpacing_0) << 1;
        num3 |= settings.bool_44 ? 8 : 0;
        num3 |= settings.bool_43 ? 0x20 : 0;
        int num5 = Class813.smethod_24(settings.localeIDs_0);

        num3 |= num5 << 7;
        A_1.Write((ushort)num3);
        char[] destination = new char[0x65];
        int    count       = 0;

        if (settings.string_2 != null)
        {
            count = Math.Min(0x65, settings.string_2.Length);
            settings.string_2.CopyTo(0, destination, 0, count);
        }
        char[] chArray2 = new char[0x33];
        int    num7     = 0;

        if (settings.string_1 != null)
        {
            num7 = Math.Min(0x33, settings.string_1.Length);
            settings.string_1.CopyTo(0, chArray2, 0, num7);
        }
        A_1.Write((short)count);
        A_1.Write((short)num7);
        A_1.Write(destination);
        A_1.Write(chArray2);
        A_1.Write((short)settings.int_23);
        A_1.Write((short)settings.int_24);
        A_1.Write((short)settings.int_19);
        A_1.Write((short)settings.int_20);
        num3  = 0;
        num3  = 0 | settings.int_22;
        num3 |= settings.bool_68 ? 0x80 : 0;
        num3 |= settings.int_21 << 8;
        num3 |= settings.bool_40 ? 0x8000 : 0;
        A_1.Write((ushort)num3);
        num3  = 0;
        num3  = 0 | (settings.int_28 << 1);
        num3 |= (settings.proofState_1 != ProofState.None) ? 0x20 : 0;
        num3 |= (settings.proofState_1 == ProofState.Clean) ? 0x40 : 0;
        num3 |= settings.bool_9 ? 0x80 : 0;
        num3 |= settings.bool_69 ? 0x100 : 0;
        num3 |= settings.bool_66 ? 0x200 : 0;
        num3 |= 0x400;
        num3 |= settings.bool_12 ? 0x800 : 0;
        num3 |= !settings.bool_13 ? 0x1000 : 0;
        num3 |= !settings.bool_14 ? 0x2000 : 0;
        A_1.Write((ushort)num3);
        num3 = 0;
        A_1.Write((ushort)0);
        A_1.Write((ushort)0x10);
        A_1.Write((ushort)0x19);
        A_1.Write(100);
        A_1.Write(0x19);
        A_1.Write(0);
        A_1.Write(0);
        A_1.Write((int)A_0.VbaDocumentEvents);
        A_1.Write(0);
        A_1.Write(new byte[30]);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write(0);
        A_1.Write(0);
        A_1.Write(0);
        A_1.Write((short)A_0.FootnoteOptions.NumberFormat);
        A_1.Write((short)A_0.EndnoteOptions.NumberFormat);
        A_1.Write((ushort)0);
        A_1.Write((ushort)0);
        A_1.Write((ushort)0);
        A_1.Write((ushort)settings.int_30);
        num3  = 0;
        num3  = 0 | (settings.bool_29 ? 2 : 0);
        num3 |= !settings.bool_48 ? 0x200 : 0;
        num3 |= settings.bool_46 ? 0x400 : 0;
        num3 |= settings.bool_47 ? 0x800 : 0;
        num3 |= ((int)settings.screenSize_1) << 12;
        num3 |= !settings.bool_50 ? 0x10000 : 0;
        num3 |= !settings.bool_51 ? 0x20000 : 0;
        num3 |= settings.int_25 << 0x12;
        num3 |= 0x10000000;
        A_1.Write(num3);
        num3 = smethod_5(class3);
        A_1.Write((uint)num3);
        num3  = 0;
        num3  = 0 | (class3.method_67() ? 1 : 0);
        num3 |= class3.method_69() ? 2 : 0;
        num3 |= class3.method_71() ? 4 : 0;
        num3 |= class3.method_73() ? 8 : 0;
        num3 |= class3.method_75() ? 0x10 : 0;
        num3 |= class3.method_77() ? 0x20 : 0;
        num3 |= class3.method_79() ? 0x40 : 0;
        num3 |= class3.method_81() ? 0x80 : 0;
        num3 |= class3.method_83() ? 0x100 : 0;
        num3 |= class3.method_85() ? 0x200 : 0;
        num3 |= class3.method_87() ? 0x400 : 0;
        num3 |= class3.method_89() ? 0x800 : 0;
        num3 |= class3.method_91() ? 0x1000 : 0;
        num3 |= class3.method_93() ? 0x2000 : 0;
        num3 |= class3.method_95() ? 0x4000 : 0;
        num3 |= class3.method_97() ? 0x8000 : 0;
        num3 |= class3.method_99() ? 0x10000 : 0;
        num3 |= class3.method_101() ? 0x20000 : 0;
        num3 |= class3.method_103() ? 0x40000 : 0;
        num3 |= class3.method_105() ? 0x80000 : 0;
        num3 |= class3.method_107() ? 0x100000 : 0;
        num3 |= class3.method_109() ? 0x200000 : 0;
        num3 |= class3.method_111() ? 0x400000 : 0;
        num3 |= class3.method_113() ? 0x800000 : 0;
        num3 |= class3.method_115() ? 0x1000000 : 0;
        num3 |= class3.method_117() ? 0x2000000 : 0;
        num3 |= class3.method_119() ? 0x4000000 : 0;
        num3 |= class3.method_121() ? 0x8000000 : 0;
        num3 |= class3.method_123() ? 0x10000000 : 0;
        num3 |= class3.method_125() ? 0x20000000 : 0;
        num3 |= class3.method_127() ? 0x40000000 : 0;
        num3 |= class3.method_129() ? -2147483648 : 0;
        A_1.Write((uint)num3);
        num3 = 0;
        num3 = 0 | (class3.method_131() ? 1 : 0);
        A_1.Write((uint)num3);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        num3  = 0;
        num3  = 0 | (A_0.ViewSetup.DoNotDisplayPageBoundaries ? 0x20000 : 0);
        num3 |= settings.bool_3 ? 0x800000 : 0;
        num3 |= 0x8000000;
        num3 |= settings.bool_52 ? 0x10000000 : 0;
        num3 |= settings.bool_53 ? 0x20000000 : 0;
        num3 |= !settings.bool_58 ? 0x40000000 : 0;
        num3 |= settings.bool_60 ? -2147483648 : 0;
        A_1.Write((uint)num3);
        A_1.Write((uint)0);
        num3  = 0;
        num3  = 0 | (settings.bool_8 ? 1 : 0);
        num3 |= !settings.bool_61 ? 8 : 0;
        num3 |= settings.bool_62 ? 0x10 : 0;
        num3 |= settings.bool_39 ? 0x40 : 0;
        num3 |= settings.bool_38 ? 0x80 : 0;
        num3 |= settings.bool_19 ? 0x800 : 0;
        num3 |= settings.bool_22 ? 0x1000 : 0;
        num3 |= settings.bool_23 ? 0x2000 : 0;
        num3 |= settings.bool_24 ? 0x4000 : 0;
        num3 |= settings.bool_25 ? 0x8000 : 0;
        A_1.Write((ushort)num3);
        A_1.Write((ushort)settings.int_31);
        A_1.Write((ushort)0);
        A_1.Write((ushort)settings.int_32);
        A_1.Write((ushort)settings.int_18);
        A_1.Write((uint)settings.int_27);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)settings.int_26);
        num3  = 0;
        num3  = 0 | ((A_0.ProtectionType == ProtectionType.AllowOnlyReading) ? 1 : 0);
        num3 |= settings.bool_1 ? 2 : 0;
        num3 |= settings.bool_2 ? 4 : 0;
        num3 |= settings.bool_54 ? 8 : 0;
        num3 |= settings.bool_59 ? 0x10 : 0;
        num3 |= settings.bool_56 ? 0x80 : 0;
        num3 |= settings.bool_57 ? 0x100 : 0;
        num3 |= settings.bool_18 ? 0x800 : 0;
        num3 |= settings.bool_17 ? 0x1000 : 0;
        A_1.Write((uint)num3);
        num3  = 0;
        num3  = 0 | (settings.bool_30 ? 1 : 0);
        num3 |= settings.bool_26 ? 2 : 0;
        num3 |= settings.bool_31 ? 4 : 0;
        num3 |= settings.bool_32 ? 8 : 0;
        switch (A_0.ProtectionType)
        {
        case ProtectionType.NoProtection:
            num3 |= settings.bool_32 ? 0x70 : 0x30;
            break;

        case ProtectionType.AllowOnlyRevisions:
            break;

        case ProtectionType.AllowOnlyComments:
            num3 |= 0x10;
            break;

        case ProtectionType.AllowOnlyFormFields:
            num3 |= 0x20;
            break;

        case ProtectionType.AllowOnlyReading:
            num3 |= 0x30;
            break;

        default:
            throw new InvalidOperationException(BookmarkStart.b("愳堵匷吹医䤽⸿扁⁃⥅⭇㽉⅋⭍㹏♑瑓♕⩗㕙⡛㭝͟ᙡൣ॥٧䩩ᡫ᝭o᝱婳", num));
        }
        num3 |= A_0.ViewSetup.DisplayBackgroundShape ? 0x80 : 0;
        A_1.Write((ushort)num3);
        A_1.Write((ushort)0);
        A_1.Write((ushort)0);
        A_1.Write((uint)0);
        A_1.Write((ushort)0);
        A_1.Write((ushort)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        A_1.Write((uint)0);
        smethod_4(A_1, A_0);
        return(((int)A_1.BaseStream.Position) - position);
    }
    internal static void smethod_0(Class582 A_0)
    {
        int       num       = 13;
        Class394  class2    = A_0.imethod_1();
        Document  document  = A_0.Interface50.imethod_0();
        Class907  settings  = document.Settings;
        ViewSetup viewSetup = document.ViewSetup;

        settings.method_5().method_151();
        Class908 class4 = document.Settings.method_5();

        settings.bool_42 = false;
        while (class2.method_9(BookmarkStart.b("圲娴吶椸䤺", num)))
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_181 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x48);
                    dictionary1.Add(BookmarkStart.b("刲头䀶堸䈺丼爾⑀ㅂ≄≆ై♊㵌㭎⡐ᵒ㑔㩖㱘⡚ⵜ㹞ɠ٢", num), 0);
                    dictionary1.Add(BookmarkStart.b("刲头䀶堸䈺丼氾⥀ⱂ㉄ᝆ╈⩊⹌⩎㥐㱒㥔㍖㱘⥚ड़㩞ᥠᝢ", num), 1);
                    dictionary1.Add(BookmarkStart.b("刲䀴䌶嘸紺刼䴾ⱀ≂ㅄࡆ㽈⹊㽌㵎㡐㝒ご", num), 2);
                    dictionary1.Add(BookmarkStart.b("儲娴堶券紺刼匾╀ፂ㝄⹆❈㽊⑌ⅎ㙐", num), 3);
                    dictionary1.Add(BookmarkStart.b("儲娴堶券紺刼匾╀ᅂ⁄ㅆ᥈㥊⑌ⅎ═㩒㭔ざ", num), 4);
                    dictionary1.Add(BookmarkStart.b("儲娴堶券紺刼匾╀ፂ㝄⹆❈㽊⑌ⅎ㙐R㵔㉖㱘⽚⹜", num), 5);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺砼刾⍀♂⅄ᑆえ㡊㥌⩎㱐ᕒ㩔㥖ⵘ⡚", num), 6);
                    dictionary1.Add(BookmarkStart.b("䌲䜴帶圸伺笼䴾⁀⁂ㅄ⹆♈╊ⱌ⍎ቐ㭒㑔╖㡘㡚⥜㩞፠㑢౤ͦᵨͪ", num), 7);
                    dictionary1.Add(BookmarkStart.b("䌲䜴帶圸伺洼倾㉀㝂ᙄ⑆㭈≊㵌㭎Ṑ╒ご╖൘㹚╜⭞", num), 8);
                    dictionary1.Add(BookmarkStart.b("䄲倴娶嘸䴺堼漾⑀ㅂ㙄⡆❈⩊⅌َ㽐㕒㩔╖㑘㩚⥜㙞๠ൢ", num), 9);
                    dictionary1.Add(BookmarkStart.b("䀲崴堶丸縺匼䤾⑀⽂⩄㝆ⱈ", num), 10);
                    dictionary1.Add(BookmarkStart.b("䔲吴嬶倸强尼䬾⑀ɂ≄♆⁈╊㹌㭎ɐげ㵔㉖㑘㩚", num), 11);
                    dictionary1.Add(BookmarkStart.b("䀲吴䄶尸爺匼䤾⁀⽂ⱄ⍆ᅈيŌ", num), 12);
                    dictionary1.Add(BookmarkStart.b("娲刴夶嘸䤺堼爾⡀㭂⁄⍆ੈ⑊⍌㭎㑐㵒⅔", num), 13);
                    dictionary1.Add(BookmarkStart.b("䘲䘴制愸栺焼款ᙀ⭂⁄⥆ᩈ⩊㭌♎㽐㑒", num), 14);
                    dictionary1.Add(BookmarkStart.b("䀲吴䄶尸漺唼䴾⹀㙂≄⽆ᅈᡊŌ᭎", num), 15);
                    dictionary1.Add(BookmarkStart.b("䔲尴制丸", num), 0x10);
                    dictionary1.Add(BookmarkStart.b("䤲娴堶吸", num), 0x11);
                    dictionary1.Add(BookmarkStart.b("圲娴夶䴸缺吼䰾ㅀ⽂⑄㹆᥈⩊⩌⩎ፐ㱒⁔㥖㵘㩚⽜㙞Ѡၢ", num), 0x12);
                    dictionary1.Add(BookmarkStart.b("圲尴䐶䤸场尼䘾̀≂♄ⱆ⹈㥊≌㩎㽐㝒ٔ㽖㡘⭚㡜", num), 0x13);
                    dictionary1.Add(BookmarkStart.b("䌲䜴帶圸伺笼倾㍀⹂㙄͆⡈㽊ⱌ", num), 20);
                    dictionary1.Add(BookmarkStart.b("嘲場唶尸强椼䴾㑀♂ᅄ㹆㥈⹊ୌ⁎㽐❒♔", num), 0x15);
                    dictionary1.Add(BookmarkStart.b("䀲吴䄶尸栺䠼崾㉀♂ㅄņ♈╊㥌㱎", num), 0x16);
                    dictionary1.Add(BookmarkStart.b("䀲吴䄶尸紺刼䴾ⱀあń♆㵈⩊", num), 0x17);
                    dictionary1.Add(BookmarkStart.b("帲尴䔶䬸吺似爾⁀ㅂ≄⹆❈㡊", num), 0x18);
                    dictionary1.Add(BookmarkStart.b("刲头帶常唺缼倾㍀❂⁄㕆㩈੊⍌⭎ᑐ㝒㉔㉖⩘", num), 0x19);
                    dictionary1.Add(BookmarkStart.b("儲娴䔶崸帺似䰾Հⱂ⭄㍆ᩈ㹊㽌㵎㹐♒㭔㍖ᅘ㹚㱜㭞Ѡᅢ", num), 0x1a);
                    dictionary1.Add(BookmarkStart.b("儲娴䔶崸帺似䰾Հⱂ⭄㍆ᩈ㹊㽌㵎㹐♒㭔㍖὘㑚㉜⭞Ѡᅢ", num), 0x1b);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺格儾╀♂㝄⭆⁈╊⡌َ㽐╒㑔㭖じ㽚՜቞ⵠ", num), 0x1c);
                    dictionary1.Add(BookmarkStart.b("吲䀴䌶䴸帺似績㕀ᝂ⩄㝆", num), 0x1d);
                    dictionary1.Add(BookmarkStart.b("䌲䜴堶嘸崺渼䬾⁀㝂⁄", num), 30);
                    dictionary1.Add(BookmarkStart.b("唲娴䔶吸䠺礼娾㉀⩂≄⥆", num), 0x1f);
                    dictionary1.Add(BookmarkStart.b("刲䄴䌶堸堺唼娾╀ᝂ⁄⩆㥈❊ⱌ㭎㑐", num), 0x20);
                    dictionary1.Add(BookmarkStart.b("弲尴夶券栺䤼䘾ⵀ♂㙄", num), 0x21);
                    dictionary1.Add(BookmarkStart.b("圲娴吶䰸嘺堼儾㕀ᝂ㱄㝆ⱈ", num), 0x22);
                    dictionary1.Add(BookmarkStart.b("帲吴帶唸瘺堼䴾♀♂", num), 0x23);
                    dictionary1.Add(BookmarkStart.b("䀲䄴丶唸帺洼帾⽀♂̈́⡆㭈♊ⱌ㭎ᝐ㩒㥔⍖㱘⥚", num), 0x24);
                    dictionary1.Add(BookmarkStart.b("䜲䜴嘶娸债漼娾㝀⩂㙄⹆♈╊㹌", num), 0x25);
                    dictionary1.Add(BookmarkStart.b("圲娴吶䰸嘺堼儾㕀ፂ㝄⡆㵈⹊⹌㭎㡐㱒㭔", num), 0x26);
                    dictionary1.Add(BookmarkStart.b("圲倴儶堸为儼䬾ᕀ≂❄ᑆ㵈⑊㵌", num), 0x27);
                    dictionary1.Add(BookmarkStart.b("刲䀴䌶嘸猺䐼伾⥀♂⭄♆㵈≊≌ⅎ", num), 40);
                    dictionary1.Add(BookmarkStart.b("倲娴夶䨸帺帼䨾㕀⩂㍄≆ň㉊㵌❎㑐㵒ᥔ㹖㑘㉚⥜", num), 0x29);
                    dictionary1.Add(BookmarkStart.b("嬲䰴䜶儸帺匼帾㕀⩂⩄⥆ፈ⑊⍌⩎", num), 0x2a);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺甼䘾ㅀ⭂⁄⥆⡈㽊⡌౎ぐ⍒♔", num), 0x2b);
                    dictionary1.Add(BookmarkStart.b("嘲䌴制圸稺匼嬾เ❂⅄ཆⱈ⩊⥌⩎⍐⁒", num), 0x2c);
                    dictionary1.Add(BookmarkStart.b("圲䜴嘶丸刺匼堾ـㅂⱄ⍆ň⑊㽌♎⭐㱒㭔⍖㡘㝚๜⽞`b౤०๨", num), 0x2d);
                    dictionary1.Add(BookmarkStart.b("圲䜴嘶丸刺匼堾ـㅂⱄ⍆Ὀ⹊㽌㭎㡐げ㑔㭖੘⭚㱜㱞ࡠൢɤ", num), 0x2e);
                    dictionary1.Add(BookmarkStart.b("圲尴䐶䤸场尼䘾ीⱂ㝄⹆㍈⑊⍌㭎ぐ㽒ᅔ╖㡘ⱚ㑜ㅞ٠③ᝤ๦൨⹪᭬੮Ͱੲ", num), 0x2f);
                    dictionary1.Add(BookmarkStart.b("圲尴䐶䤸场尼䘾ᝀ♂㝄㍆⁈⡊ⱌ⍎ᕐ⅒㑔⁖じ㕚㩜ᡞ፠੢Ť≦Ὠ๪Ὤ᙮", num), 0x30);
                    dictionary1.Add(BookmarkStart.b("䘲䘴制琸娺似堾⡀ⵂ㙄ņ♈㥊ौ㵎ぐ⑒㱔㥖㹘ᱚ⽜㙞ՠⱢᝤ๦๨ɪͬ", num), 0x31);
                    dictionary1.Add(BookmarkStart.b("圲䜴嘶丸刺匼堾ـㅂⱄ⍆ň⑊㽌♎⭐㱒㭔⍖㡘㝚ቜⵞࡠѢ౤०", num), 50);
                    dictionary1.Add(BookmarkStart.b("圲䜴嘶丸刺匼堾ـㅂⱄ⍆Ὀ⹊㽌㭎㡐げ㑔㭖ᙘ⥚㑜㡞ࡠൢ", num), 0x33);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺渼圾⁀❂⁄ņ♈㥊⁌୎ぐ❒㑔", num), 0x34);
                    dictionary1.Add(BookmarkStart.b("䌲䀴夶娸伺䠼帾㕀⩂⩄⥆Ɉ⹊㽌ⅎ㡐㵒㉔", num), 0x35);
                    dictionary1.Add(BookmarkStart.b("倲崴嘶䬸娺帼䬾⑀ㅂᙄ㝆⡈⡊⑌ⅎ㙐ၒ㩔㥖ⵘ⥚㉜㍞", num), 0x36);
                    dictionary1.Add(BookmarkStart.b("䌲䜴帶圸伺椼䠾⹀ూ⭄ࡆ❈⹊", num), 0x37);
                    dictionary1.Add(BookmarkStart.b("䀲䄴䔶倸堺䤼社⡀ㅂ㙄㍆ࡈ╊⥌͎ぐ⁒⅔ᑖㅘ㩚⽜ⱞ", num), 0x38);
                    dictionary1.Add(BookmarkStart.b("崲娴笶倸唺堼紾㍀♂⑄ⱆ㩈੊⭌㭎㑐⅒", num), 0x39);
                    dictionary1.Add(BookmarkStart.b("崲娴笶倸唺堼紾㍀♂⑄ⱆ㩈ॊ⡌⥎㹐⅒ご", num), 0x3a);
                    dictionary1.Add(BookmarkStart.b("唲娴堶䴸唺刼䬾⑀ፂ㝄", num), 0x3b);
                    dictionary1.Add(BookmarkStart.b("嘲嬴匶圸吺䤼娾ᅀㅂ", num), 60);
                    dictionary1.Add(BookmarkStart.b("倲娴娶䤸娺䤼", num), 0x3d);
                    dictionary1.Add(BookmarkStart.b("圲娴吶漸娺似䰾", num), 0x3e);
                    dictionary1.Add(BookmarkStart.b("尲䔴䌶倸嘺吼䔾⑀Ղ⩄㕆ୈ㥊≌㡎≐㙒❔", num), 0x3f);
                    dictionary1.Add(BookmarkStart.b("䄲倴嬶䀸琺匼椾ీག", num), 0x40);
                    dictionary1.Add(BookmarkStart.b("刲头嬶嘸䰺洼焾ـ", num), 0x41);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺漼娾ⵀ㩂੄⥆ੈᡊṌ", num), 0x42);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺渼帾㝀♂ቄ≆⭈ᭊⱌ⡎㑐⁒ᑔ⑖੘㉚㍜㡞ൠ٢⍤๦ը๪", num), 0x43);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺爼䴾♀≂⭄⹆㍈⹊ьⅎᝐ㱒㥔㍖㱘⥚", num), 0x44);
                    dictionary1.Add(BookmarkStart.b("圲娴礶嘸伺格䰾⑀ག⩄⥆⹈ൊ⑌⍎㑐ᵒ㑔㩖㱘⡚", num), 0x45);
                    dictionary1.Add(BookmarkStart.b("䌲尴伶尸场丼漾⑀ㅂౄ⥆⩈⍊", num), 70);
                    dictionary1.Add(BookmarkStart.b("䜲吴䔶常帺䤼氾≀ㅂ⁄≆❈ᡊ㝌", num), 0x47);
                    Class1160.dictionary_181 = dictionary1;
                }
                if (Class1160.dictionary_181.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                    {
                        settings.bool_60 = class2.method_31();
                        continue;
                    }

                    case 1:
                    {
                        settings.bool_57 = class2.method_31();
                        continue;
                    }

                    case 2:
                    case 0x23:
                    {
                        continue;
                    }

                    case 3:
                    {
                        settings.bool_39 = class2.method_31();
                        continue;
                    }

                    case 4:
                    {
                        settings.bool_38 = class2.method_31();
                        continue;
                    }

                    case 5:
                    {
                        settings.int_18 = class2.method_29();
                        continue;
                    }

                    case 6:
                    {
                        settings.bool_8 = class2.method_31();
                        continue;
                    }

                    case 7:
                    {
                        settings.bool_5 = class2.method_31();
                        continue;
                    }

                    case 8:
                    {
                        settings.bool_4 = class2.method_31();
                        continue;
                    }

                    case 9:
                    {
                        settings.bool_3 = class2.method_31();
                        continue;
                    }

                    case 10:
                    {
                        settings.bool_29 = class2.method_31();
                        continue;
                    }

                    case 11:
                    {
                        settings.bool_52 = class2.method_31();
                        continue;
                    }

                    case 12:
                    {
                        settings.bool_53 = class2.method_31();
                        continue;
                    }

                    case 13:
                    {
                        settings.bool_56 = class2.method_31();
                        continue;
                    }

                    case 14:
                    {
                        settings.bool_59 = class2.method_31();
                        continue;
                    }

                    case 15:
                    {
                        settings.string_4 = class2.method_12(BookmarkStart.b("䬲䘴嬶䴸", num), "");
                        continue;
                    }

                    case 0x10:
                    {
                        viewSetup.DocumentViewType = Class330.smethod_6(class2.method_28());
                        continue;
                    }

                    case 0x11:
                    {
                        smethod_1(viewSetup, class2);
                        continue;
                    }

                    case 0x12:
                    {
                        viewSetup.DoNotDisplayPageBoundaries = class2.method_31();
                        continue;
                    }

                    case 0x13:
                    {
                        viewSetup.DisplayBackgroundShape = class2.method_31();
                        continue;
                    }

                    case 20:
                    {
                        settings.bool_6 = class2.method_31();
                        continue;
                    }

                    case 0x15:
                    {
                        settings.bool_7 = class2.method_31();
                        continue;
                    }

                    case 0x16:
                    {
                        settings.bool_9 = class2.method_31();
                        continue;
                    }

                    case 0x17:
                    {
                        settings.bool_10 = class2.method_31();
                        continue;
                    }

                    case 0x18:
                    {
                        settings.bool_11 = class2.method_31();
                        continue;
                    }

                    case 0x19:
                    {
                        settings.bool_12 = class2.method_31();
                        continue;
                    }

                    case 0x1a:
                    {
                        settings.bool_13 = class2.method_31();
                        continue;
                    }

                    case 0x1b:
                    {
                        settings.bool_14 = class2.method_31();
                        continue;
                    }

                    case 0x1c:
                    {
                        settings.bool_58 = class2.method_31();
                        continue;
                    }

                    case 0x1d:
                    {
                        settings.bool_15 = class2.method_31();
                        continue;
                    }

                    case 30:
                    {
                        smethod_3(settings, class2);
                        continue;
                    }

                    case 0x1f:
                    {
                        viewSetup.FormsDesign = class2.method_31();
                        continue;
                    }

                    case 0x20:
                    {
                        settings.string_0 = class2.method_28();
                        continue;
                    }

                    case 0x21:
                    {
                        settings.bool_16 = class2.method_31();
                        continue;
                    }

                    case 0x22:
                    {
                        settings.autoFormatDocumentType_0 = Class330.smethod_10(class2.method_28());
                        continue;
                    }

                    case 0x24:
                    {
                        settings.int_32 = Class114.smethod_8(class2.method_28());
                        continue;
                    }

                    case 0x25:
                    {
                        settings.bool_21 = class2.method_31();
                        continue;
                    }

                    case 0x26:
                    {
                        smethod_4(document, class2);
                        continue;
                    }

                    case 0x27:
                    {
                        settings.float_0 = class2.method_29();
                        continue;
                    }

                    case 40:
                    {
                        settings.bool_27 = class2.method_31();
                        continue;
                    }

                    case 0x29:
                    {
                        settings.int_15 = class2.method_29();
                        continue;
                    }

                    case 0x2a:
                    {
                        settings.int_16 = class2.method_29();
                        continue;
                    }

                    case 0x2b:
                    {
                        settings.bool_28 = class2.method_31();
                        continue;
                    }

                    case 0x2c:
                    {
                        settings.bool_37 = class2.method_31();
                        continue;
                    }

                    case 0x2d:
                    {
                        settings.int_19 = class2.method_29();
                        continue;
                    }

                    case 0x2e:
                    {
                        settings.int_20 = class2.method_29();
                        continue;
                    }

                    case 0x2f:
                    {
                        settings.int_21 = class2.method_29();
                        continue;
                    }

                    case 0x30:
                    {
                        settings.int_22 = class2.method_29();
                        continue;
                    }

                    case 0x31:
                    {
                        settings.bool_40 = !class2.method_31();
                        continue;
                    }

                    case 50:
                    {
                        settings.int_23 = class2.method_29();
                        continue;
                    }

                    case 0x33:
                    {
                        settings.int_24 = class2.method_29();
                        continue;
                    }

                    case 0x34:
                    {
                        settings.bool_41 = class2.method_31();
                        continue;
                    }

                    case 0x35:
                    {
                        settings.bool_42 = class2.method_31();
                        continue;
                    }

                    case 0x36:
                    {
                        settings.characterSpacing_0 = Class330.smethod_2(class2.method_28());
                        continue;
                    }

                    case 0x37:
                    {
                        settings.bool_43 = class2.method_31();
                        continue;
                    }

                    case 0x38:
                    {
                        settings.bool_44 = class2.method_31();
                        continue;
                    }

                    case 0x39:
                    {
                        settings.string_1 = smethod_2(class2, settings);
                        continue;
                    }

                    case 0x3a:
                    {
                        settings.string_2 = smethod_2(class2, settings);
                        continue;
                    }

                    case 0x3b:
                    {
                        smethod_7(A_0, class2.method_1(), document.FootnoteOptions);
                        continue;
                    }

                    case 60:
                    {
                        smethod_7(A_0, class2.method_1(), document.EndnoteOptions);
                        continue;
                    }

                    case 0x3d:
                    {
                        smethod_5(class4, class2);
                        continue;
                    }

                    case 0x3e:
                    {
                        smethod_6(document.Variables, class2);
                        continue;
                    }

                    case 0x3f:
                    {
                        settings.bool_45 = class2.method_31();
                        continue;
                    }

                    case 0x40:
                    {
                        settings.bool_46 = class2.method_31();
                        continue;
                    }

                    case 0x41:
                    {
                        settings.bool_47 = class2.method_31();
                        continue;
                    }

                    case 0x42:
                    {
                        settings.bool_48 = class2.method_31();
                        continue;
                    }

                    case 0x43:
                    {
                        settings.bool_49 = class2.method_31();
                        continue;
                    }

                    case 0x44:
                    {
                        settings.bool_50 = class2.method_31();
                        continue;
                    }

                    case 0x45:
                    {
                        settings.bool_51 = class2.method_31();
                        continue;
                    }

                    case 70:
                    {
                        settings.int_25 = class2.method_29();
                        continue;
                    }

                    case 0x47:
                    {
                        settings.screenSize_1 = Class417.smethod_29(class2.method_28());
                        continue;
                    }
                    }
                }
            }
            class2.vmethod_1();
        }
    }
Exemple #4
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;
    }
    internal static void smethod_0(Class421 A_0)
    {
        int      num      = 15;
        Document document = A_0.Interface52.imethod_0();
        Class907 settings = document.Settings;
        Class398 class3   = A_0.Interface52.imethod_1();

        class3.method_4(BookmarkStart.b("䈴ശ崸吺帼漾㍀", 15));
        class3.method_24(BookmarkStart.b("䈴ശ伸刺堼䠾", 15), Class330.smethod_7(document.ViewSetup.DocumentViewType));
        smethod_1(document.ViewSetup, class3);
        class3.method_31(BookmarkStart.b("䈴ശ䬸帺值倾㝀♂ᕄ≆㭈㡊≌ⅎぐ㽒᱔㥖㽘㑚⽜㉞`ᝢ౤ࡦݨ", 15), settings.bool_3);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺匼䬾Հ⩂㙄㝆╈⩊㑌὎ぐ㑒ごᕖ㙘⹚㍜㭞`ᅢ౤ɦᩨ", 15), document.ViewSetup.DoNotDisplayPageBoundaries);
        class3.method_31(BookmarkStart.b("䈴ശ崸刺丼伾ⵀ≂㱄Ն⡈⡊♌⡎⍐㱒⁔㥖㵘࡚㕜㹞ᅠ٢", 15), document.ViewSetup.DisplayBackgroundShape);
        class3.method_31(BookmarkStart.b("䈴ശ䤸䤺吼儾㕀Ղ⩄㕆⑈㡊ौ⹎═㉒", 15), settings.bool_6);
        class3.method_31(BookmarkStart.b("䈴ശ尸嘺弼娾╀ᝂ㝄㉆ⱈὊ㑌㽎㑐ᕒ㩔㥖ⵘ⡚", 15), settings.bool_7);
        class3.method_31(BookmarkStart.b("䈴ശ䨸娺䬼娾ቀ㙂❄㑆ⱈ㽊ୌ⁎㽐❒♔", 15), settings.bool_9);
        class3.method_31(BookmarkStart.b("䈴ശ䨸娺䬼娾݀ⱂ㝄⩆㩈ཊⱌ㭎ぐ", 15), settings.bool_10);
        class3.method_31(BookmarkStart.b("䈴ശ吸刺似䴾⹀ㅂࡄ♆㭈ⱊ⑌ⅎ≐", 15), settings.bool_11);
        class3.method_31(BookmarkStart.b("䈴ശ堸场吼堾⽀ł⩄㕆ⵈ⹊㽌㱎ၐ㵒ㅔቖ㵘㱚㡜ⱞ", 15), settings.bool_12);
        class3.method_31(BookmarkStart.b("䈴ശ嬸吺似嬾⑀ㅂ㙄͆♈╊㥌ᱎ⑐⅒❔㡖ⱘ㕚㥜᝞ѠɢŤɦ᭨", 15), settings.bool_13);
        class3.method_31(BookmarkStart.b("䈴ശ嬸吺似嬾⑀ㅂ㙄͆♈╊㥌ᱎ⑐⅒❔㡖ⱘ㕚㥜ᥞ๠ౢᅤɦ᭨", 15), settings.bool_14);
        class3.method_31(BookmarkStart.b("䈴ശ常为䤼䬾⑀ㅂф㍆ᵈ⑊㵌", 15), settings.bool_15);
        smethod_2(settings, class3);
        class3.method_31(BookmarkStart.b("䈴ശ弸吺似刾㉀݂⁄㑆⁈ⱊ⍌", 15), document.ViewSetup.FormsDesign);
        class3.method_25(BookmarkStart.b("䈴ശ堸伺䤼帾≀⭂⁄⍆ᵈ⹊⁌㽎㵐㉒⅔㉖", 15), settings.string_0);
        class3.method_24(BookmarkStart.b("䈴ശ崸吺帼䨾ⱀ♂⭄㍆ᵈ㉊㵌⩎", 15), Class330.smethod_11(settings.autoFormatDocumentType_0));
        new Class232();
        class3.method_31(BookmarkStart.b("䈴ശ䴸䤺尼尾⩀ᅂ⁄ㅆ⁈㡊⑌⁎㽐⁒", 15), settings.bool_21);
        smethod_3(document, class3);
        class3.method_22(BookmarkStart.b("䈴ശ崸帺嬼帾㑀⽂ㅄፆ⡈⥊Ṍ㭎㹐⍒", 15), document.Settings.float_0);
        class3.method_31(BookmarkStart.b("䈴ശ堸为䤼倾ी㩂㕄⽆ⱈ╊ⱌ㭎㡐㱒㭔", 15), settings.bool_27);
        class3.method_30(BookmarkStart.b("䈴ശ娸吺匼䰾⑀⁂い㍆⁈㵊⡌ݎ⡐⍒㵔㉖㝘᝚㑜㉞ࡠᝢ", 15), settings.int_15);
        class3.method_32(BookmarkStart.b("䈴ശ儸䈺䴼圾⑀ⵂ⑄㍆⁈⑊⍌ᕎ㹐㵒ご", 15), settings.int_16, 360);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀ୂ㱄㝆ⅈ⹊⍌⹎═㙒ᙔ㙖⥘⡚", 15), settings.bool_28);
        class3.method_31(BookmarkStart.b("䈴ശ尸䴺堼儾@ⵂ⅄ࡆⵈ⽊Ռ⩎ぐ㝒ご╖⩘", 15), settings.bool_37);
        class3.method_32(BookmarkStart.b("䈴ശ崸䤺尼䠾⡀ⵂ≄F㭈≊⥌ݎ㹐⅒㱔ⵖ㙘㕚⥜㹞ൠぢᕤ٦੨ɪͬ࡮", 15), settings.int_19, 180);
        class3.method_32(BookmarkStart.b("䈴ശ崸䤺尼䠾⡀ⵂ≄F㭈≊⥌᥎㑐⅒⅔㹖㩘㩚ㅜ౞ᅠɢ٤๦ݨ౪", 15), settings.int_20, 180);
        class3.method_32(BookmarkStart.b("䈴ശ崸刺丼伾ⵀ≂㱄ཆ♈㥊⑌㕎㹐㵒⅔㙖㕘὚⽜㹞ᙠ੢୤f⹨ᥪѬ୮㑰ղၴնx", 15), settings.int_21, 1);
        class3.method_32(BookmarkStart.b("䈴ശ崸刺丼伾ⵀ≂㱄ᅆⱈ㥊㥌♎㉐㉒㥔ፖ⭘㩚⩜㙞འѢ≤ᕦhཪ⡬᥮ᑰŲ౴", 15), settings.int_22, 1);
        class3.method_31(BookmarkStart.b("䈴ശ䰸䠺堼爾⁀ㅂ≄⹆❈㡊ୌ⁎⍐ᝒ❔㙖⹘㉚㍜㡞♠ᅢ౤ͦ♨ᥪѬ࡮ᡰᵲ", 15), !settings.bool_40);
        if (!settings.bool_40)
        {
            class3.method_32(BookmarkStart.b("䈴ശ崸䤺尼䠾⡀ⵂ≄F㭈≊⥌ݎ㹐⅒㱔ⵖ㙘㕚⥜㹞ൠⱢᝤ๦๨ɪͬ", num), settings.int_23, 0x708);
            class3.method_32(BookmarkStart.b("䈴ശ崸䤺尼䠾⡀ⵂ≄F㭈≊⥌᥎㑐⅒⅔㹖㩘㩚ㅜၞ፠੢ɤ๦ݨ", num), settings.int_24, 0x5a0);
        }
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀၂ⵄ♆ⵈ⹊ୌ⁎⍐㹒ᅔ㙖ⵘ㩚", num), settings.bool_41);
        class3.method_31(BookmarkStart.b("䈴ശ䤸为匼尾㕀㙂⑄㍆⁈⑊⍌ю㑐⅒㭔㹖㝘㱚", num), settings.bool_42);
        class3.method_24(BookmarkStart.b("䈴ശ娸区尼䴾⁀⁂ㅄ≆㭈ᡊ㵌⹎㉐㩒㭔ざᩘ㑚㍜⭞፠ౢ।", num), Class330.smethod_3(settings.characterSpacing_0));
        class3.method_31(BookmarkStart.b("䈴ശ䤸䤺吼儾㕀ᝂ㉄⡆و╊Ɍⅎ㑐", num), settings.bool_43);
        class3.method_31(BookmarkStart.b("䈴ശ䨸伺似嘾≀㝂̈́⹆㭈㡊㥌๎㽐㝒ᥔ㙖⩘⽚Ṝ㝞`ᅢᙤ", num), settings.bool_44);
        Class863.smethod_10(settings, class3, Class860.smethod_1((int)settings.localeIDs_0, false));
        A_0.imethod_8(document.FootnoteOptions, true);
        A_0.imethod_8(document.EndnoteOptions, true);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀ق⡄╆ⱈ⽊Ṍ㙎≐❒ご㩖὘㑚㍜⭞በ", num), settings.bool_8);
        class3.method_31(BookmarkStart.b("䈴ശ䨸区刼䠾рⵂ㍄≆╈⑊㵌⩎", num), settings.bool_29);
        class3.vmethod_0(BookmarkStart.b("䈴ശ伸娺儼嘾╀≂ㅄ≆ࡈⱊⱌ♎㽐⁒⅔і㩘㍚㡜㉞`", num), settings.bool_52);
        class3.method_31(BookmarkStart.b("䈴ശ䨸娺䬼娾ࡀⵂ㍄♆╈≊⥌ᝎ᱐ὒ", num), settings.bool_53);
        class3.method_31(BookmarkStart.b("䈴ശ倸尺匼倾㍀♂ࡄ⹆ㅈ⹊⥌౎㹐㵒⅔㉖㝘⽚", num), settings.bool_56);
        class3.method_31(BookmarkStart.b("䈴ശ䰸䠺堼朾ቀགᅄ၆ⅈ⹊⍌ᱎぐ╒㱔㥖㹘", num), settings.bool_59);
        if (Class567.smethod_16(settings.string_4))
        {
            class3.method_4(BookmarkStart.b("䈴ശ䨸娺䬼娾ᕀ⭂㝄⡆㱈ⱊ╌ᝎɐὒŔ", num));
            class3.method_18(BookmarkStart.b("䈴ശ䄸䠺儼䬾", num), settings.string_4);
            class3.method_5();
        }
        class3.method_31(BookmarkStart.b("䈴ശ嘸䬺䤼嘾ⱀ⩂㽄≆཈⑊㽌ൎ⍐㱒≔⑖㱘⥚", num), settings.bool_45);
        class3.method_31(BookmarkStart.b("䈴ശ䬸帺儼䘾เⵂፄ੆Ո", num), settings.bool_46);
        class3.method_31(BookmarkStart.b("䈴ശ堸场儼倾㙀ፂୄF", num), settings.bool_47);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀ᅂ⁄⭆えъ⍌౎ɐR", num), settings.bool_48);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀၂⑄ㅆⱈ᱊⡌ⵎŐ㉒㉔㉖⩘ᩚ⹜౞ࡠൢɤ୦౨⵪Ѭͮᑰ", num), settings.bool_49);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀ూ㝄⁆⡈╊⑌㕎㑐ᩒ㭔ᅖ㙘㝚㥜㩞፠", num), settings.bool_50);
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀ᙂ㙄≆Ո⑊⍌⡎ᝐ㩒㥔㉖᝘㩚ぜ㩞በ", num), settings.bool_51);
        if (settings.int_25 != 0x60)
        {
            class3.method_28(BookmarkStart.b("䈴ശ䤸刺䔼娾ⵀあᕄ≆㭈Ɋ⍌ⱎ㥐", num), settings.int_25);
        }
        if (settings.screenSize_1 != ScreenSize.Size800x600)
        {
            class3.method_24(BookmarkStart.b("䈴ശ䴸娺似堾⑀㝂ᙄ⑆㭈⹊⡌ⅎɐ⥒", num), Class417.smethod_30(settings.screenSize_1));
        }
        class3.method_31(BookmarkStart.b("䈴ശ堸场䨼帾㡀あࡄ≆㭈ⱊ⡌੎㱐⍒⅔⹖᝘㩚ぜ㩞በ።ѤѦ౨", num), settings.bool_60);
        class3.method_31(BookmarkStart.b("䈴ശ堸场䨼帾㡀あᙄ⽆♈㱊ᵌ⍎ぐげご㽖㙘㝚㥜㩞፠㝢dὦᵨ", num), settings.bool_57);
        class3.method_31(BookmarkStart.b("䈴ശ嬸吺刼吾݀ⱂ⥄⍆᥈㥊⑌ⅎ═㩒㭔ざ", num), settings.bool_39);
        class3.method_31(BookmarkStart.b("䈴ശ嬸吺刼吾݀ⱂ⥄⍆ᭈ⹊㭌὎⍐㩒㭔⍖じ㕚㩜", num), settings.bool_38);
        if (settings.bool_39 || settings.bool_38)
        {
            class3.method_28(BookmarkStart.b("䈴ശ嬸吺刼吾݀ⱂ⥄⍆᥈㥊⑌ⅎ═㩒㭔ざ੘㍚㡜㩞ᕠၢ", num), settings.int_18);
        }
        class3.method_31(BookmarkStart.b("䈴ശ崸吺猼倾㕀ᙂ⭄⍆ⱈ㥊⅌♎㽐㙒᱔㥖⽘㩚ㅜ㙞ՠ㭢⡤⭦", num), settings.bool_58);
        class3.method_31(BookmarkStart.b("䈴ശ唸刺匼吾ቀ㝂㱄⭆ⱈ㡊", num), settings.bool_16);
        class3.method_31(BookmarkStart.b("䈴ശ䤸䤺吼儾㕀Ղ㝄♆⩈㽊⑌⁎㽐㉒㥔ᑖㅘ㩚⽜㹞ɠᝢdᕦ㹨ɪ६᭮ᥰ", num), settings.bool_5);
        class3.method_31(BookmarkStart.b("䈴ശ䤸䤺吼儾㕀ፂ⩄㑆㵈ᡊ⹌㵎㡐⍒⅔ᡖ⽘㹚⽜୞Ѡ᭢ᅤ", num), settings.bool_4);
        smethod_4(settings.method_5(), class3);
        smethod_5(document.Variables, class3);
        class3.method_5();
    }