コード例 #1
0
    internal void method_0(Class857 A_0, DocumentObject A_1, ShapeObject A_2)
    {
        int num = 2;

        if (this.class396_0 == null)
        {
            A_2.SetShapeType(ShapeType.OleObject);
            Class798.smethod_0(A_0, A_1, A_2);
        }
        else
        {
            string str = (string)A_0.method_63()[string.Format(BookmarkStart.b("匧ᨩ儫ĭ", num), this.string_0)];
            if (str != BookmarkStart.b("䤧娩尫䈭夯儱唳䈵儷唹刻ᄽ㘿ⱁ⁃桅❇⭉㽋❍⍏籑㭓♕㵗㑙㡛ㅝ͟ᝡॣͥ٧ṩ䉫࡭Ὧqᥳ͵ᑷ᭹", num))
            {
                Class922.smethod_0(str);
                A_2.SetShapeType(ShapeType.OleObject);
                Class476 class2 = new Class476();
                this.method_2(class2, str, this.method_1(A_0, class2, BookmarkStart.b("䬧䔩䈫娭唯就䀳ᠵ䀷圹倻", num)), this.method_1(A_0, class2, BookmarkStart.b("嬧帩唫䈭唯䄱ᨳ丵唷嘹", num)), this.method_1(A_0, class2, BookmarkStart.b("嬧伩堫娭夯就匳䔵ᘷ䈹儻刽", num)));
                MemoryStream stream = new MemoryStream();
                class2.method_3(stream, str);
            }
        }
    }
コード例 #2
0
    private void method_19(CharacterFormat A_0, int A_1)
    {
        Class454 class2 = this.class764_0.method_41(A_1);

        if (class2 != null)
        {
            ShapeObject obj2 = new ShapeObject(this.class764_0.method_42());
            obj2.SetShapeType(ShapeType.OleObject);
            obj2.CharacterFormat.method_25(A_0);
            obj2.TextWrappingStyle = TextWrappingStyle.Inline;
            MemoryStream input = class2.method_7();
            if (input != null)
            {
                byte[] buffer = new byte[(int)(input.Length - 8L)];
                input.Position = 0L;
                BinaryReader reader2 = new BinaryReader(input);
                reader2.ReadUInt16();
                int num5 = reader2.ReadUInt16();
                int num6 = reader2.ReadUInt16();
                reader2.ReadUInt16();
                input.Read(buffer, 0, buffer.Length);
                obj2.ImageData.method_87(Class409.smethod_29(buffer, Class1044.smethod_1((int)((((double)num5) / 2540.0) * 1963.0), (int)((((double)num6) / 2540.0) * 1963.0), 1963.0, 1963.0)));
                obj2.SetShapeAttribute(0x1006, obj2.ImageData.ImageBytes);
            }
            MemoryStream stream = class2.method_8();
            if (stream != null)
            {
                BinaryReader reader = new BinaryReader(stream);
                stream.Position = 12L;
                reader.ReadUInt16();
                reader.ReadUInt16();
                reader.ReadUInt16();
                reader.ReadUInt16();
                int num  = reader.ReadInt32();
                int num2 = reader.ReadInt32();
                stream.Position = 0x2cL;
                int num3 = reader.ReadInt32();
                int num4 = reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                obj2.method_37((Class969.smethod_32(num) * num3) / 1000.0);
                obj2.method_39((Class969.smethod_32(num2) * num4) / 1000.0);
            }
            this.class764_0.method_43().imethod_18(obj2);
        }
    }
コード例 #3
0
    private void method_6(Field A_0, Class454 A_1)
    {
        ShapeObject obj2 = (this.shapeObject_0 != null) ? this.shapeObject_0 : this.stack_2.Pop();

        obj2.SetShapeType(ShapeType.OleObject);
        obj2.OleFormat.Field = A_0;
        obj2.OleFormat.method_86((A_0.Type == FieldType.FieldEmbed) ? OleLinkType.Embed : OleLinkType.Link);
        obj2.OleFormat.method_78();
        if (A_1 != null)
        {
            obj2.OleFormat.method_81(A_1.method_12());
        }
        int index = this.documentObject_0.ChildObjects.IndexOf(A_0.End);
        int num2  = this.documentObject_0.ChildObjects.IndexOf(A_0);

        while (index >= num2)
        {
            this.documentObject_0.ChildObjects.Remove(this.documentObject_0.ChildObjects[index]);
            index--;
        }
        DocOleObject oleFormat = obj2.OleFormat;

        this.documentObject_0.method_13(oleFormat);
        FieldMark mark = new FieldMark(this.document_0)
        {
            Type = FieldMarkType.FieldSeparator
        };

        this.documentObject_0.method_13(mark);
        DocPicture picture = oleFormat.Interface49.get_OlePicture();

        if (picture != null)
        {
            this.documentObject_0.method_13(picture);
            picture.ApplyCharacterFormat(obj2.CharacterFormat);
        }
        FieldMark mark2 = new FieldMark(this.document_0)
        {
            Type = FieldMarkType.FieldEnd
        };

        this.documentObject_0.method_13(mark2);
    }
コード例 #4
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);
    }
コード例 #5
0
    internal static void smethod_2(Interface50 A_0)
    {
        int      num    = 13;
        bool     flag   = false;
        string   str    = null;
        string   str2   = null;
        string   str3   = null;
        string   str4   = "";
        bool     flag2  = false;
        bool     flag3  = false;
        string   str5   = null;
        Class394 class2 = A_0.imethod_1();

        while (class2.method_19())
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_12 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(8);
                    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);
                    Class1160.dictionary_12 = dictionary1;
                }
                if (Class1160.dictionary_12.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                        flag = Class567.smethod_41(class2.method_3(), BookmarkStart.b("缲尴夶券", num));
                        break;

                    case 1:
                        str = class2.method_3();
                        break;

                    case 2:
                        str2 = class2.method_3();
                        break;

                    case 3:
                        flag3 = Class567.smethod_41(class2.method_3(), BookmarkStart.b("稲嘴堶圸", num));
                        break;

                    case 4:
                        str3 = class2.method_3();
                        break;

                    case 5:
                        str4 = class2.method_3();
                        break;

                    case 6:
                        flag2 = Class567.smethod_41(class2.method_3(), BookmarkStart.b("爲头䀶堸䈺丼", num));
                        break;

                    case 7:
                        str5 = class2.method_3();
                        break;
                    }
                }
            }
        }
        ShapeObject obj2 = (ShapeObject)A_0.imethod_8(str2);

        if (obj2 != null)
        {
            obj2.SetShapeType(ShapeType.OleObject);
            DocOleObject oleFormat = obj2.OleFormat;
            oleFormat.AutoUpdate = flag2;
            oleFormat.Interface49.set_DisplayAsIcon(flag3);
            if (str != null)
            {
                oleFormat.Interface49.set_ObjectType(str);
            }
            if (flag)
            {
                oleFormat.method_86(OleLinkType.Link);
                if (!string.IsNullOrEmpty(str5))
                {
                    if (A_0.imethod_5(str5))
                    {
                        str4 = A_0.imethod_4(str5);
                    }
                    else
                    {
                        str4 = (A_0 as Class466).method_0().method_184(str5);
                        oleFormat.Interface49.set_LinkPath(str4);
                    }
                }
                if (!string.IsNullOrEmpty(str4))
                {
                    string[] strArray = str4.Split(new char[] { '!' }, 2);
                    oleFormat.SourceFullName = strArray[0];
                    if (strArray.Length > 1)
                    {
                        oleFormat.SourceItem = strArray[1];
                    }
                }
            }
            else
            {
                string str8 = !string.IsNullOrEmpty(str5) ? str5 : str3;
                A_0.imethod_2(str8, oleFormat);
            }
            while (class2.method_9(BookmarkStart.b("簲礴父瘸夺圼娾≀㝂", num)))
            {
                string str6;
                if (((str6 = class2.method_1()) != null) && (str6 != BookmarkStart.b("缲尴夶券漺䐼伾⑀", num)))
                {
                    if (!(str6 == BookmarkStart.b("缲娴吶券帺夼社⡀♂⥄⍆", num)))
                    {
                        if ((str6 == BookmarkStart.b("搲娴䔶崸紺吼娾ⵀ❂ل⡆ⵈ⹊㹌", num)) || (str6 == BookmarkStart.b("甲尴制唸强縼倾╀♂㙄", num)))
                        {
                        }
                    }
                    else
                    {
                        oleFormat.IsLocked = class2.method_33(true);
                    }
                }
            }
        }
    }
コード例 #6
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));
    }
コード例 #7
0
    internal static double smethod_5(Class857 A_0, DocumentObject A_1, ShapeObject A_2, Class43 A_3)
    {
        int num = 8;

        if (((A_1 is ShapeObject) && !(A_1 is ShapeGroup)) || (A_1 is TableCell))
        {
            return(double.NaN);
        }
        double   naN    = double.NaN;
        Class396 class2 = A_0.method_11();

        while (class2.method_9(BookmarkStart.b("䠭䈯匱夳匵", num)))
        {
            if (A_0.method_5(A_3))
            {
                continue;
            }
            string str = A_0.method_11().method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("娭唯䨱䀳ᬵ娷唹䐻", num))
                {
                    if (str != BookmarkStart.b("䜭崯匱匳匵", num))
                    {
                        if (!(str == BookmarkStart.b("䄭刯報儳唵䰷", num)))
                        {
                            if (!(str == BookmarkStart.b("䄭刯報儳唵䰷᜹医刽┿", num)))
                            {
                                goto Label_011A;
                            }
                            A_2.SetShapeType(ShapeType.OleObject);
                            Class798.smethod_0(A_0, A_1, A_2);
                        }
                        else
                        {
                            new Class338(A_0);
                        }
                    }
                    else
                    {
                        if (A_2.ShapeType != ShapeType.OleObject)
                        {
                            A_2.SetShapeType(ShapeType.Image);
                        }
                        DocPicture imageData = A_2.ImageData;
                        Class798.smethod_0(A_0, A_1, A_2);
                    }
                }
                else if (A_0.method_55())
                {
                    class2.vmethod_1();
                }
                else
                {
                    A_0.method_56(true);
                    A_2.SetShapeType(ShapeType.TextBox);
                    naN = Class856.smethod_0(A_0, A_1, A_2);
                    A_0.method_56(false);
                }
                continue;
            }
Label_011A:
            class2.vmethod_1();
        }
        return(naN);
    }