Example #1
0
    internal static void smethod_0(Class1132 A_0, CustomXmlPartCollection A_1)
    {
        int       num    = 5;
        Class1089 class2 = A_0.method_0().method_6(BookmarkStart.b("昪帬䀮田刲䄴嘶樸伺刼䴾⑀", 5));

        if (class2 != null)
        {
            foreach (DictionaryEntry entry in class2)
            {
                CustomXmlPart part   = new CustomXmlPart();
                Class1089     class3 = (Class1089)entry.Value;
                foreach (DictionaryEntry entry2 in class3)
                {
                    string key = (string)entry2.Key;
                    if (key != null)
                    {
                        if (!(key == BookmarkStart.b("截夬䨮尰", num)))
                        {
                            if (key == BookmarkStart.b("笪弬䀮䄰嘲䜴䌶倸帺丼", num))
                            {
                                smethod_1((Stream)entry2.Value, part);
                            }
                        }
                        else
                        {
                            part.Data = Class567.smethod_10((Stream)entry2.Value);
                        }
                    }
                }
                A_1.Add(part);
            }
        }
    }
Example #2
0
 internal Class259(Class1132 A_0)
 {
     this.class1132_0 = A_0;
     this.class1089_0 = A_0.method_0().method_7(BookmarkStart.b("⴪椬丮䔰刲昴䜶堸堺堼䰾", 5));
     this.method_4();
     this.method_5();
 }
Example #3
0
    private void method_8(Class1132 A_0, string A_1)
    {
        Class1154 class2 = new Class1154();

        this.method_9(class2, A_0, A_1, 0x34);
        this.method_9(class2, A_0, BookmarkStart.b("怶嘸䤺夼笾⹀⁂い⩆ⱈ╊㥌", 0x11), 0x44);
        this.method_9(class2, A_0, BookmarkStart.b("猶堸伺尼", 0x11), 0);
    }
Example #4
0
    private static void smethod_1(Class1132 A_0, DigitalSignatures A_1)
    {
        Class1089 class2 = A_0.method_0().method_6(BookmarkStart.b("氲䴴娶唸䠺吼堾⽀≂ㅄ㉆㭈⹊㹌", 13));

        if (class2 != null)
        {
            foreach (string str in class2.GetKeyList())
            {
                Class556.smethod_0(class2.method_4(str), new Class867(A_0), A_1);
            }
        }
    }
Example #5
0
    private void method_20(Class1132 A_0, string A_1)
    {
        int num = 9;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䤮䈰", num));
        }
        this.class1132_0 = A_0;
        BinaryReader reader = new BinaryReader(this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num)), Class813.smethod_0(true));

        this.class703_0 = new Class703(reader);
        if (this.class703_0.method_1())
        {
            throw new NotSupportedException(BookmarkStart.b("笮夰娲䘴᜶崸吺帼䨾ⱀ♂⭄㍆楈≊㹌潎㽐㱒⅔睖⩘⹚ⵜ⽞๠ᅢᅤɦ൨䕪", num));
        }
        if (this.class703_0.bool_4)
        {
            if (A_1 == null)
            {
                throw new PasswordErrorException(BookmarkStart.b("欮帰倲䀴娶尸唺䤼Ἶ⡀あ敄≆❈⡊㽌㙎⅐❒ご㍖畘筚ቜ⽞Ѡൢ䕤፦Ũ๪䵬Ὦၰrٴvᙸॺ᥼彾愈ꮊﶌレ뎜", num));
            }
            new Class987().method_1(this.class1132_0, this.class703_0, A_1);
        }
        Stream input = this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num));

        this.binaryReader_0 = new BinaryReader(input, Class813.smethod_0(true));
        this.binaryReader_1 = new BinaryReader(input, Class813.smethod_0(false));
        this.class703_0.method_3(this.binaryReader_0);
        Stream stream2 = this.class1132_0.method_0().method_5(this.class703_0.method_0());

        this.binaryReader_2 = new BinaryReader(stream2, Encoding.Unicode);
        Stream stream3 = this.class1132_0.method_0().method_4(BookmarkStart.b("欮倰䜲吴", num));

        this.binaryReader_3 = (stream3 != null) ? new BinaryReader(stream3, Encoding.Unicode) : null;
        this.class770_0     = new Class770(this.method_5(), this.method_3());
        this.class160_0     = new Class160(this.method_5(), this.method_1(), this.method_3());
        this.method_26();
        this.method_27();
        this.class598_0  = new Class598(this.method_5(), this.method_3());
        this.class165_0  = new Class165(this.method_5(), this.method_3(), this.class160_0.method_4());
        this.class348_0  = new Class348(SubDocumentType.Main, this.method_5(), this.method_3());
        this.class348_1  = new Class348(SubDocumentType.Header, this.method_5(), this.method_3());
        this.class996_0  = new Class996(this.method_5(), this.method_3());
        this.class700_0  = new Class700(FootnoteType.Footnote, this.method_5(), this.method_3());
        this.class700_1  = new Class700(FootnoteType.Endnote, this.method_5(), this.method_3());
        this.class1065_0 = new Class1065(this.method_5(), this.method_3());
        this.class168_0  = new Class168(this.method_5(), this.method_3());
        this.class349_0  = new Class349(this.method_5(), this.method_3());
        this.class986_0  = new Class986(this.method_5(), this.method_3());
        this.method_21();
    }
Example #6
0
    private static void smethod_2(Class1132 A_0, DigitalSignatures A_1)
    {
        Stream input = A_0.method_0().method_4(BookmarkStart.b("氲䘴帶常唺尼䬾㑀ㅂ⁄㑆", 13));

        if (input != null)
        {
            BinaryReader reader = new BinaryReader(input, Encoding.Unicode);
            int          num    = reader.ReadInt32();
            smethod_3(reader, num);
            reader.ReadInt32();
            smethod_4(reader, A_1, new Class594(A_0.method_0()).method_4());
        }
    }
Example #7
0
    internal static MemoryStream smethod_0(string A_0, byte[] A_1)
    {
        Class1132    class2 = new Class1132(smethod_7(A_0));
        BinaryWriter writer = new BinaryWriter(new MemoryStream(A_1.Length + 4));

        writer.Write(A_1.Length);
        writer.Write(A_1);
        class2.method_0().Add(BookmarkStart.b("㌱笳娵崷ହ఻瀽ℿ㙁ⵃぅⵇ", 12), writer.BaseStream);
        MemoryStream stream = new MemoryStream();

        class2.method_5(stream);
        return(stream);
    }
Example #8
0
    private static MemoryStream smethod_0(Class1089 A_0)
    {
        Class1132    class2 = new Class1132(A_0);
        MemoryStream stream = new MemoryStream();

        class2.method_5(stream);
        stream.Position = 0L;
        MemoryStream stream2 = new MemoryStream();

        Class567.smethod_1((uint)stream.Length, stream2);
        Class1156.smethod_4(stream, stream2, CompressionMethod.Stored);
        return(stream2);
    }
Example #9
0
    private void method_9(Class1154 A_0, Class1132 A_1, string A_2, int A_3)
    {
        Stream stream = (MemoryStream)A_1.method_0()[A_2];

        if (stream != null)
        {
            byte[] buffer = new byte[A_3];
            stream.Position = 0L;
            stream.Read(buffer, 0, A_3);
            this.method_10(A_0, stream);
            stream.Position = 0L;
            stream.Write(buffer, 0, A_3);
        }
    }
Example #10
0
    internal static Class1132 smethod_1(Stream A_0, string A_1)
    {
        Class1132 class2 = new Class1132(new Guid(BookmarkStart.b("ᠧᨩᰫḭ/ȱгصᔷਹ఻฽瀿潁瑃癅硇穉態繍恏扑摓筕桗橙汛湝偟剡呣噥塧婩屫幭", 2)));

        smethod_0(class2);
        Interface13  interface2 = new Class864();
        MemoryStream stream     = new MemoryStream();
        MemoryStream stream2    = new MemoryStream();

        interface2.imethod_1(stream, A_0, stream2, A_1);
        class2.method_0().method_2(BookmarkStart.b("洧䐩伫尭䤯䈱䀳張圷吹画倽☿ⵁ", 2), stream);
        class2.method_0().method_2(BookmarkStart.b("洧䐩伫尭䤯䈱䀳匵尷樹崻崽⬿⍁⍃⍅", 2), stream2);
        return(class2);
    }
Example #11
0
 private void method_29()
 {
     this.method_32();
     byte[] buffer = this.imethod_3(BookmarkStart.b("䌫䈭唯嘱唳䈵夷ᐹ儻䴽⼿", 6));
     if (buffer.Length > 0)
     {
         MemoryStream stream = new MemoryStream(buffer);
         Class1132    class2 = new Class1132(stream);
         foreach (DictionaryEntry entry in class2.method_0())
         {
             byte[] buffer2 = smethod_1((MemoryStream)entry.Value);
             this.dictionary_2[(string)entry.Key] = buffer2;
         }
     }
 }
Example #12
0
    private static void smethod_1(Class363 A_0, DigitalSignatures A_1)
    {
        MemoryStream stream = A_0.method_46(BookmarkStart.b("栶䄸嘺儼䰾⡀⑂⭄♆㵈㹊㽌⩎≐", 0x11));

        if (stream != null)
        {
            Class1132 class3 = new Class1132(stream);
            Class1089 class2 = class3.method_0();
            if (class2 != null)
            {
                foreach (string str in class2.GetKeyList())
                {
                    Class556.smethod_0(class2.method_4(str), new Class625(class3), A_1);
                }
            }
        }
    }
Example #13
0
    private void method_7()
    {
        Class1132 class2 = new Class1132(Guid.Empty);

        foreach (KeyValuePair <string, DocOleObject> pair in this.class928_0.document_0.DocOleObjects)
        {
            string       key    = pair.Key;
            DocOleObject obj2   = pair.Value;
            Class1089    class3 = Class627.smethod_1(Class627.smethod_7(obj2.Interface49.get_ObjectType()), obj2.Interface49.get_ObjectType(), obj2, obj2.Interface49.get_DisplayAsIcon());
            class2.method_0().method_2(key, smethod_0(class3));
        }
        if (class2.method_0().Count > 0)
        {
            this.memoryStream_0 = new MemoryStream();
            class2.method_5(this.memoryStream_0);
        }
    }
Example #14
0
    private static void smethod_0(Class1132 A_0)
    {
        Class1089 class2 = new Class1089();

        class2.method_2(BookmarkStart.b("缫娭䈯崱娳儵紷吹弻䰽㤿㉁ぃ⽅❇⑉ࡋ⽍⑏㍑ݓ♕㥗㥙㥛", 6), new MemoryStream(byte_2));
        Class1089 class3 = new Class1089();

        class3.method_2(BookmarkStart.b("⨫縭䈯嬱夳圵䨷䌹", 6), new MemoryStream(byte_3));
        Class1089 class4 = new Class1089();

        class4.method_3(BookmarkStart.b("缫娭䈯崱娳儵紷吹弻䰽㤿㉁ぃ⽅❇⑉ᡋ㱍ㅏ㱑❓さ㝗⡙ㅛ", 6), class3);
        Class1089 class5 = new Class1089();

        class5.method_3(BookmarkStart.b("栫伭䐯匱朳䘵夷夹夻眽⸿⑁⭃", 6), class2);
        class5.method_2(BookmarkStart.b("栫伭䐯匱朳䘵夷夹夻猽ℿ㉁", 6), new MemoryStream(byte_1));
        class5.method_2(BookmarkStart.b("稫䬭䈯䄱崳夵嘷", 6), new MemoryStream(byte_0));
        class5.method_3(BookmarkStart.b("砫尭儯就䜳倵圷䠹儻眽⸿⑁⭃", 6), class4);
        A_0.method_0().method_3(BookmarkStart.b("⨫樭儯䘱唳攵䠷嬹弻嬽㌿", 6), class5);
    }
Example #15
0
    internal void method_0(Class1132 A_0, string A_1, string A_2)
    {
        int          num    = 6;
        BinaryReader reader = new BinaryReader(A_0.method_0().method_5(A_1));

        switch (((VersionInfo)reader.ReadInt32()))
        {
        case VersionInfo.CryptoApi:
        case VersionInfo.CryptoApi2007:
        case VersionInfo.CryptoApi2010:
            throw new NotSupportedException(BookmarkStart.b("縫洭Яሱ娳夵䰷ᨹ伻䬽〿㉁⭃㑅㱇⽉⡋恍", num));

        case VersionInfo.RC4:
            if (!this.method_13(reader, A_2))
            {
                throw new Exception(BookmarkStart.b("簫伭䌯䄱䌳夵䨷帹᰻᰽", num) + A_2 + BookmarkStart.b("หอ夯䄱ᐳ張嘷夹医䰽㈿❁❃㉅楇", num));
            }
            this.method_8(A_0, A_1);
            return;
        }
        throw new InvalidOperationException(BookmarkStart.b("礫䀭唯䨱䐳匵嬷丹夻娽怿❁⩃╅㩇㍉㱋㩍㥏㵑㩓癕⹗㽙⹛ⵝय़ൡ੣䡥", num));
    }
Example #16
0
    internal void method_1(Class1132 A_0, Class703 A_1, string A_2)
    {
        int    num     = 0x12;
        string key     = A_1.method_0();
        Stream stream  = null;
        Stream stream2 = null;
        Stream stream3 = null;

        if (A_0.method_0().ContainsKey(key))
        {
            stream = A_0.method_0().method_5(A_1.method_0());
        }
        if (A_0.method_0().ContainsKey(BookmarkStart.b("漷唹主娽пⵁ❃㍅╇⽉≋㩍", num)))
        {
            stream2 = A_0.method_0().method_5(BookmarkStart.b("漷唹主娽пⵁ❃㍅╇⽉≋㩍", num));
        }
        if (A_0.method_0().ContainsKey(BookmarkStart.b("簷嬹䠻弽", num)))
        {
            stream3 = A_0.method_0().method_5(BookmarkStart.b("簷嬹䠻弽", num));
        }
        if (A_1.bool_11)
        {
            Class988 class3 = new Class988();
            if (class3.method_0(A_2, (uint)A_1.int_8))
            {
                this.method_4(stream, false, A_2);
                this.method_4(stream2, true, A_2);
                this.method_4(stream3, false, A_2);
                return;
            }
        }
        else
        {
            BinaryReader reader = new BinaryReader(stream);
            switch (((VersionInfo)reader.ReadInt32()))
            {
            case VersionInfo.CryptoApi:
            case VersionInfo.CryptoApi2007:
            case VersionInfo.CryptoApi2010:
            {
                stream.Position = 0L;
                byte[] buffer = new byte[A_1.int_8];
                stream.Read(buffer, 0, A_1.int_8);
                Class994 class2 = null;
                using (MemoryStream stream4 = new MemoryStream(buffer))
                {
                    class2 = new Class994(stream4);
                }
                if (!this.method_3(A_2, class2))
                {
                    break;
                }
                A_0.method_0()[key] = this.method_5(stream, A_2, class2);
                A_0.method_0()[BookmarkStart.b("漷唹主娽пⵁ❃㍅╇⽉≋㩍", num)] = this.method_5(stream2, A_2, class2);
                if (stream3 != null)
                {
                    A_0.method_0()[BookmarkStart.b("簷嬹䠻弽", num)] = this.method_5(stream3, A_2, class2);
                }
                return;
            }

            case VersionInfo.RC4:
                if (this.method_13(reader, A_2))
                {
                    this.method_8(A_0, key);
                    return;
                }
                break;

            default:
                throw new InvalidOperationException(BookmarkStart.b("洷吹夻䘽〿❁❃㉅ⵇ⹉汋⭍㹏ㅑ♓⽕⡗⹙㕛ㅝ๟䉡ባͥᩧᥩիŭṯ山", num));
            }
        }
        this.method_2(A_2);
    }
Example #17
0
 internal Class763(Class1132 A_0, string A_1)
 {
     this.method_20(A_0, A_1);
 }
Example #18
0
 internal static void smethod_0(Class1132 A_0, DigitalSignatures A_1)
 {
     smethod_1(A_0, A_1);
     smethod_2(A_0, A_1);
 }
Example #19
0
 internal void method_7(Class1132 A_0, string A_1)
 {
     this.method_8(A_0, A_1);
 }
Example #20
0
 internal Class764(Class1132 A_0, string A_1, Document A_2) : this(A_0, A_1, A_2, new Class861())
 {
 }
Example #21
0
 internal Class764(Class1132 A_0, string A_1, Document A_2, Class861 A_3) : base(A_0, A_1)
 {
     this.document_0    = A_2;
     this.interface28_0 = new Class482(A_2, A_3, this);
     this.class861_0    = A_3;
 }
Example #22
0
    internal static ShapeObject smethod_1(Interface50 A_0)
    {
        int      num    = 13;
        string   str    = "";
        string   str2   = "";
        string   str3   = "";
        string   str4   = "";
        string   str5   = "";
        string   str6   = "";
        Class394 class2 = A_0.imethod_1();

        while (class2.method_19())
        {
            string str7 = class2.method_3();
            string key  = class2.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_11 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(10);
                    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("倲头嘶䨸䠺", 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);
                    Class1160.dictionary_11 = dictionary1;
                }
                if (Class1160.dictionary_11.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                        str = str7;
                        break;

                    case 2:
                        str2 = str7;
                        break;

                    case 3:
                        str6 = str7;
                        break;

                    case 4:
                        str3 = str7;
                        break;

                    case 6:
                        str4 = str7;
                        break;

                    case 7:
                        str5 = str7;
                        break;
                    }
                }
            }
        }
        ShapeObject obj2 = (ShapeObject)A_0.imethod_8(str3);

        if (obj2 == null)
        {
            obj2 = new ShapeObject(A_0.imethod_0());
            obj2.SetShapeType(ShapeType.OleControl);
            obj2.TextWrappingStyle = TextWrappingStyle.Inline;
        }
        if (!string.IsNullOrEmpty(str4))
        {
            obj2.method_37(Class509.smethod_2(Class1041.smethod_12(str4)));
        }
        if (!string.IsNullOrEmpty(str5))
        {
            obj2.method_39(Class509.smethod_2(Class1041.smethod_12(str5)));
        }
        Class1132 class3 = null;

        if (str.StartsWith(BookmarkStart.b("眲琴挶砸ĺ尼伾ㅀ⽂ⱄ⑆⡈㽊⑌⁎㽐籒ⵔ穖㙘㝚㡜ぞ͠ॢdѦᵨ偪⽬⹮≰㙲䍴䍶啸", num)))
        {
            byte[] buffer2 = Convert.FromBase64String(str.Substring(BookmarkStart.b("眲琴挶砸ĺ尼伾ㅀ⽂ⱄ⑆⡈㽊⑌⁎㽐籒ⵔ穖㙘㝚㡜ぞ͠ॢdѦᵨ偪⽬⹮≰㙲䍴䍶啸", num).Length));
            if (str6.StartsWith(BookmarkStart.b("瀲礴搶瀸缺ܼ", num)))
            {
                str6 = str6.Substring(BookmarkStart.b("瀲礴搶瀸缺ܼ", num).Length);
            }
            Guid guid = !string.IsNullOrEmpty(str6) ? new Guid(str6) : Guid.Empty;
            class3 = new Class1132(new Class1089(guid));
            class3.method_0().method_2(BookmarkStart.b("〲稴琶愸缺簼款@", num), new MemoryStream(buffer2));
        }
        else
        {
            byte[] buffer = A_0.imethod_3(str);
            if (buffer != null)
            {
                class3 = new Class1132(new MemoryStream(buffer));
            }
        }
        if (class3 != null)
        {
            Class627.smethod_6(class3.method_0(), new Class221(str2));
            Class627.smethod_6(class3.method_0(), new Class320(OdtPersist1.Ocx | OdtPersist1.RecomposeOnResize, OdtPersist2.QueriedEmf, OdtClipboardFormat.Metafile));
        }
        return(obj2);
    }
Example #23
0
    internal static ShapeObject smethod_0(Interface50 A_0)
    {
        int       num    = 8;
        Class1132 class2 = null;
        string    str    = "";
        string    str2   = "";
        Class394  class3 = A_0.imethod_1();

        while (class3.method_19())
        {
            string str7 = class3.method_3();
            string str4 = class3.method_1();
            if (str4 != null)
            {
                if (str4 != BookmarkStart.b("䜭启", num))
                {
                    if (!(str4 == BookmarkStart.b("崭堯匱䐳匵儷帹", num)))
                    {
                        if (str4 == BookmarkStart.b("䀭儯弱儳", num))
                        {
                        }
                    }
                    else
                    {
                        str = str7;
                    }
                }
                else
                {
                    str2 = str7;
                }
            }
        }
        ShapeObject obj2 = (ShapeObject)A_0.imethod_8(str);

        obj2.SetShapeType(ShapeType.OleControl);
        Class467 class5 = new Class467(A_0.imethod_4(str2), string.Empty);
        Class394 class6 = new Class394(class5.method_4());
        string   str6   = class6.method_12(BookmarkStart.b("席唯䀱䜳張䬷丹夻倽⌿❁", num), null);
        string   g      = class6.method_12(BookmarkStart.b("䴭尯匱䜳䔵儷帹", num), null);
        string   str3   = str6;

        if (str3 != null)
        {
            if (str3 == BookmarkStart.b("席唯䀱䜳張䬷丹氻䰽⼿㉁⅃㑅㱇㍉๋⽍㝏", num))
            {
                return(obj2);
            }
            if ((str3 == BookmarkStart.b("席唯䀱䜳張䬷丹漻䨽⼿ぁ╃ⅅⵇ", num)) || (str3 == BookmarkStart.b("席唯䀱䜳張䬷丹漻䨽㈿❁╃⭅", num)))
            {
                Class467 class4 = new Class467(class5.method_8(BookmarkStart.b("尭礯嘱Գ", num)), string.Empty);
                if (str6 == BookmarkStart.b("席唯䀱䜳張䬷丹漻䨽⼿ぁ╃ⅅⵇ", num))
                {
                    class2 = new Class1132(class4.method_10());
                    return(obj2);
                }
                class2 = new Class1132(new Guid(g));
                class2.method_0().method_2(BookmarkStart.b("ⴭ缯焱氳爵礷渹紻", num), class4.method_10());
                return(obj2);
            }
            if (str3 == BookmarkStart.b("席唯䀱䜳張䬷丹漻䨽㈿❁╃⭅Ň⑉╋㩍", num))
            {
                return(obj2);
            }
        }
        throw new InvalidOperationException(BookmarkStart.b("札帯䐱唳娵儷帹᰻丽┿ぁ㝃⽅㭇㹉⥋⁍㍏㝑瑓⁕㥗㙙⥛㭝也", num));
    }
Example #24
0
    internal Class1089 method_48(Stream12 A_0, string A_1)
    {
        Class1132 class2 = new Class1132(this.method_46(A_1));

        return(class2.method_0());
    }
Example #25
0
 internal Class867(Class1132 A_0)
 {
     this.class1132_0 = A_0;
 }
Example #26
0
 internal Class625(Class1132 A_0)
 {
     this.class1132_0 = A_0;
 }
Example #27
0
        internal void method_81(Class1089 A_0)
        {
            Class1132    class2 = new Class1132(A_0);
            MemoryStream stream = new MemoryStream();

            class2.method_5(stream);
            byte[] buffer = new byte[stream.Length];
            stream.Position = 0L;
            stream.Read(buffer, 0, buffer.Length);
            this.class1116_0 = new Class1116(buffer, BookmarkStart.b("礥", 0) + this.Interface49.get_OleStorageName());
            Class1089 class3 = new Class1089();

            class3.method_3(BookmarkStart.b("礥", 0) + this.Interface49.get_OleStorageName(), A_0);
            class2 = new Class1132(class3);
            MemoryStream stream2 = new MemoryStream();

            class2.method_5(stream2);
            this.stream_0          = stream2;
            this.stream_0.Position = 0L;
            if (A_0.Contains(string_12))
            {
                MemoryStream stream3 = A_0.method_4(string_12);
                stream3.Position = 0L;
                byte[] buffer2 = new byte[stream3.Length];
                stream3.Read(buffer2, 0, buffer2.Length);
                using (MemoryStream stream4 = new MemoryStream(buffer2))
                {
                    byte[] buffer4 = new byte[6];
                    stream4.Read(buffer4, 0, buffer4.Length);
                    this.Interface49.set_DisplayAsIcon((buffer4[0] & 0x40) == 0x40);
                    stream4.Flush();
                }
            }
            if (A_0.Contains(string_9))
            {
                Stream stream5 = A_0.method_4(string_9);
                stream5.Position = 0L;
                byte[] buffer3 = new byte[stream5.Length];
                stream5.Read(buffer3, 0, buffer3.Length);
                using (BinaryReader reader = new BinaryReader(new MemoryStream(buffer3)))
                {
                    reader.ReadInt32();
                    reader.ReadInt32();
                    reader.ReadBytes(4);
                    new Guid(reader.ReadBytes(0x10));
                    Class627.smethod_2(reader);
                    new Class451(reader, false);
                    string str = Class627.smethod_2(reader);
                    if (!string.IsNullOrEmpty(str) && (str.Length > 0))
                    {
                        this.Interface49.set_ObjectType(str);
                    }
                    if (((reader.BaseStream.Length - reader.BaseStream.Position) >= 4L) && (reader.ReadInt32() == 0x71b239f4))
                    {
                        this.method_82(reader);
                        new Class451(reader, true);
                        this.method_82(reader);
                    }
                }
            }
        }
Example #28
0
    private void method_15(ShapeObject A_0)
    {
        FieldType fieldOCX;
        string    str;
        int       num       = 0x10;
        ShapeType shapeType = A_0.ShapeType;

        if (shapeType != ShapeType.OleObject)
        {
            if (shapeType != ShapeType.OleControl)
            {
                throw new InvalidOperationException(BookmarkStart.b("挵嘷弹䐻丽┿⅁ぃ⍅ⱇ橉㽋♍ㅏ≑ㅓ癕ⱗ⍙ⱛ㭝也", num));
            }
            fieldOCX = FieldType.FieldOCX;
            str      = Class169.smethod_0(A_0.OleFormat.Interface49.get_ObjectType());
        }
        else if (A_0.OleFormat.IsLink)
        {
            Class677 class5;
            fieldOCX = FieldType.FieldLink;
            if (!A_0.IsOleControl && !A_0.IsOleObject)
            {
                class5 = null;
            }
            else
            {
                class5 = new Class677(A_0);
            }
            char ch = '\v';
            str = Class655.smethod_0(class5).Replace(BookmarkStart.b("ጵ਷ਹ", num), BookmarkStart.b("ᘵ", num)).Replace(BookmarkStart.b("ጵ਷༹", num), BookmarkStart.b("ጵ", num)).Replace(ch.ToString(), string.Empty).Replace(BookmarkStart.b("ਵ", num), BookmarkStart.b("ጵଷ夹", num)).Replace(BookmarkStart.b("࠵", num), BookmarkStart.b("ጵଷ弹", num));
        }
        else
        {
            fieldOCX = FieldType.FieldEmbed;
            str      = Class1061.smethod_0(A_0.OleFormat.Interface49.get_ObjectType());
        }
        this.class423_0.method_39(fieldOCX, A_0.CharacterFormat);
        this.class423_0.method_37(str, A_0.CharacterFormat);
        this.class423_0.stack_1.Push(new Field(A_0.Document, fieldOCX, str));
        if (A_0.OleFormat.Interface49.get_Container() == null)
        {
            this.class423_0.method_46(A_0.CharacterFormat, 0);
            this.method_16(A_0);
            goto Label_02FE;
        }
        if (A_0.OleFormat.IsChangeNativeData)
        {
            A_0.OleFormat.method_103();
        }
        Class1132 class2 = new Class1132(A_0.OleFormat.Interface49.get_Container());
        Class454  class3 = null;

        if (class2.method_0().ContainsKey(BookmarkStart.b("椵", num) + A_0.OleFormat.Interface49.get_OleStorageName()))
        {
            Class1089 class4 = class2.method_0()[BookmarkStart.b("椵", num) + A_0.OleFormat.Interface49.get_OleStorageName()] as Class1089;
            class3 = new Class454(Convert.ToInt32(A_0.OleFormat.Interface49.get_OleStorageName()), class4);
            this.class423_0.method_46(A_0.CharacterFormat, class3.method_0());
            this.class423_0.method_62().class1089_0[class3.method_2()] = class3.method_12();
            switch (A_0.OleObjectType)
            {
            case ShapeOleObjectType.Embedded:
                this.class423_0.method_62().class1089_1[class3.method_2()] = class3.method_12();
                goto Label_02A7;

            case ShapeOleObjectType.Linked:
                goto Label_02A7;

            case ShapeOleObjectType.Control:
                this.class423_0.method_62().bool_2 = true;
                goto Label_02A7;
            }
            throw new InvalidOperationException(BookmarkStart.b("挵嘷弹䐻丽┿⅁ぃ⍅ⱇ橉͋ɍᕏ牑㭓㑕㉗㽙㽛⩝䁟ᙡᵣᙥ൧䑩", num));
        }
Label_02A7:
        A_0.OleFormat.Interface49.get_Container().Position = 0L;
        if (((class3 != null) && class3.method_11()) && (class3.method_7() != null))
        {
            this.method_17(class3);
        }
        else
        {
            this.method_16(A_0);
        }
Label_02FE:
        this.class423_0.method_40(new FieldMark(A_0.Document, A_0.CharacterFormat, FieldMarkType.FieldEnd));
    }