Exemplo n.º 1
0
    private static int smethod_0(ShapeObject A_0, int[] A_1, int A_2)
    {
        int num = 0x11;

        if ((A_2 >= 0x400) && (A_2 <= 0x47f))
        {
            return(A_1[A_2 - 0x400]);
        }
        switch (A_2)
        {
        case 320:
            return(A_0.CoordOriginX + (A_0.CoordSizeWidth / 2));

        case 0x141:
            return(A_0.CoordOriginY + (A_0.CoordSizeHeight / 2));

        case 0x142:
            return(A_0.CoordSizeWidth);

        case 0x143:
            return(A_0.CoordSizeHeight);

        case 0x147:
            return(A_0.method_60(1));

        case 0x148:
            return(A_0.method_60(2));

        case 0x149:
            return(A_0.method_60(3));

        case 330:
            return(A_0.method_60(4));

        case 0x14b:
            return(A_0.method_60(5));

        case 0x14c:
            return(A_0.method_60(6));

        case 0x14d:
            return(A_0.method_60(7));

        case 0x14e:
            return(A_0.method_60(8));

        case 0x153:
            return(A_0.LimoX);

        case 340:
            return(A_0.LimoY);

        case 0x1fc:
            if (!A_0.IsStroked)
            {
                return(0);
            }
            return(1);

        case 0x4f7:
            return((int)Class969.smethod_50((int)A_0.LineWidth));

        case 0x4f8:
            return((int)Class509.smethod_0(A_0.Width));

        case 0x4f9:
            return((int)Class509.smethod_0(A_0.Height));

        case 0x4fc:
            return(Class969.smethod_40(A_0.Width));

        case 0x4fd:
            return(Class969.smethod_40(A_0.Height));

        case 0x4fe:
            return(Class969.smethod_40(A_0.Width * 0.5));

        case 0x4ff:
            return(Class969.smethod_40(A_0.Height * 0.5));
        }
        throw new ArgumentOutOfRangeException(BookmarkStart.b("䜶堸䤺尼刾", num), string.Format(BookmarkStart.b("然嘸䤺值䨾ⵀ≂敄⑆⡈❊⹌㩎㵐㉒⅔㉖㵘筚ⵜ㹞፠ɢࡤɦᵨ๪Ὤ佮ᥰቲٴ坶ླྀ᩺ᅼ੾ꎂ뎈ꮊ뾎", num), A_2));
    }
Exemplo n.º 2
0
    private static int smethod_19(ShapeObject A_0, int[] A_1, int A_2)
    {
        int num = 14;

        if ((A_2 >= 0x400) && (A_2 <= 0x47f))
        {
            return(A_1[A_2 - 0x400]);
        }
        switch (A_2)
        {
        case 320:
            return(A_0.CoordOriginX + (A_0.CoordSizeWidth / 2));

        case 0x141:
            return(A_0.CoordOriginY + (A_0.CoordSizeHeight / 2));

        case 0x142:
            return(A_0.CoordSizeWidth);

        case 0x143:
            return(A_0.CoordSizeHeight);

        case 0x147:
            return(A_0.method_60(1));

        case 0x148:
            return(A_0.method_60(2));

        case 0x149:
            return(A_0.method_60(3));

        case 330:
            return(A_0.method_60(4));

        case 0x14b:
            return(A_0.method_60(5));

        case 0x14c:
            return(A_0.method_60(6));

        case 0x14d:
            return(A_0.method_60(7));

        case 0x14e:
            return(A_0.method_60(8));

        case 0x153:
            return(A_0.LimoX);

        case 340:
            return(A_0.LimoY);

        case 0x1fc:
            if (!A_0.IsStroked)
            {
                return(0);
            }
            return(1);

        case 0x4f7:
            return((int)Class969.smethod_50((int)A_0.LineWidth));

        case 0x4f8:
            return((int)Class509.smethod_0(A_0.Width));

        case 0x4f9:
            return((int)Class509.smethod_0(A_0.Height));

        case 0x4fc:
            return(Class969.smethod_40(A_0.Width));

        case 0x4fd:
            return(Class969.smethod_40(A_0.Height));

        case 0x4fe:
            return(Class969.smethod_40(A_0.Width * 0.5));

        case 0x4ff:
            return(Class969.smethod_40(A_0.Height * 0.5));
        }
        throw new ArgumentOutOfRangeException(BookmarkStart.b("䐳圵䨷嬹儻", num), string.Format(BookmarkStart.b("爳夵䨷圹䤻刽ℿ扁❃❅⑇⥉㥋≍ㅏ♑ㅓ㉕硗⩙㵛ⱝşཡţብ൧ᡩ䱫٭ᅯű味u᥷ᙹॻ᭽ꁿ벅ꢇ벋", num), A_2));
    }
Exemplo n.º 3
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);
    }
Exemplo n.º 4
0
    private static int smethod_18(ShapeObject A_0, int[] A_1, int A_2)
    {
        int num = 5;

        if ((A_2 >= 0x400) && (A_2 <= 0x47f))
        {
            return(A_1[A_2 - 0x400]);
        }
        switch (A_2)
        {
        case 320:
            return(A_0.CoordOriginX + (A_0.CoordSizeWidth / 2));

        case 0x141:
            return(A_0.CoordOriginY + (A_0.CoordSizeHeight / 2));

        case 0x142:
            return(A_0.CoordSizeWidth);

        case 0x143:
            return(A_0.CoordSizeHeight);

        case 0x147:
            return(A_0.method_60(1));

        case 0x148:
            return(A_0.method_60(2));

        case 0x149:
            return(A_0.method_60(3));

        case 330:
            return(A_0.method_60(4));

        case 0x14b:
            return(A_0.method_60(5));

        case 0x14c:
            return(A_0.method_60(6));

        case 0x14d:
            return(A_0.method_60(7));

        case 0x14e:
            return(A_0.method_60(8));

        case 0x153:
            return(A_0.LimoX);

        case 340:
            return(A_0.LimoY);

        case 0x1fc:
            if (!A_0.IsStroked)
            {
                return(0);
            }
            return(1);

        case 0x4f7:
            return((int)Class969.smethod_50((int)A_0.LineWidth));

        case 0x4f8:
            return((int)Class509.smethod_0(A_0.Width));

        case 0x4f9:
            return((int)Class509.smethod_0(A_0.Height));

        case 0x4fc:
            return(Class969.smethod_40(A_0.Width));

        case 0x4fd:
            return(Class969.smethod_40(A_0.Height));

        case 0x4fe:
            return(Class969.smethod_40(A_0.Width * 0.5));

        case 0x4ff:
            return(Class969.smethod_40(A_0.Height * 0.5));
        }
        throw new ArgumentOutOfRangeException(BookmarkStart.b("嬪䰬崮倰帲", num), string.Format(BookmarkStart.b("洪䈬崮尰䘲头嘶ᤸ堺尼匾≀㙂⥄♆㵈⹊⥌潎⅐㉒❔㙖㑘㹚⥜㩞፠䍢൤٦ᩨ䭪᭬๮ᵰٲၴ坶ᙸᵺ䝼彾婢뎂", num), A_2));
    }