Exemplo n.º 1
0
    internal static bool smethod_6(Class857 A_0, Class43 A_1)
    {
        int      num    = 15;
        Class396 class2 = A_0.method_11();
        string   str    = class2.method_1();

        if (str != null)
        {
            if (str == BookmarkStart.b("吴夶娸区刼䴾汀㝂㱄㝆ⱈ", num))
            {
                if (class2.method_3() == BookmarkStart.b("吴䐶ᐸ堺唼帾㍀", num))
                {
                    A_1.SetAttr(0x1001, TextWrappingStyle.Inline);
                }
                if (class2.method_3() == BookmarkStart.b("䔴嘶常帺", num))
                {
                    A_1.SetAttr(0x390, RelativeHorizontalPosition.Page);
                    A_1.SetAttr(0x392, RelativeVerticalPosition.Page);
                }
                return(true);
            }
            if (str == BookmarkStart.b("吴夶娸区刼䴾汀㍂⑄⁆ⱈ晊⍌㩎㱐ㅒご╖", num))
            {
                return(false);
            }
        }
        return(false);
    }
Exemplo n.º 2
0
 private void imethod_11(string A_0, Class43 A_1)
 {
     if (Class567.smethod_16(A_0))
     {
         this.hashtable_8[A_0] = A_1;
     }
 }
Exemplo n.º 3
0
    internal static void smethod_4(Class43 A_0, string A_1)
    {
        int num = 6;

        if (Class567.smethod_16(A_1))
        {
            string[] strArray = A_1.Replace(BookmarkStart.b("ఫ", num), "").Replace(BookmarkStart.b("伫䌭", num), BookmarkStart.b("伫䌭䰯", num)).Replace(BookmarkStart.b("䄫䌭", num), BookmarkStart.b("䄫䌭䰯", num)).Replace(BookmarkStart.b("䔫䀭", num), BookmarkStart.b("䔫䀭䰯", num)).Replace(BookmarkStart.b("尫娭", num), BookmarkStart.b("尫娭䰯", num)).Replace(BookmarkStart.b("尫䴭", num), BookmarkStart.b("尫䴭䰯", num)).Replace(BookmarkStart.b("尫嘭", num), BookmarkStart.b("尫嘭䰯", num)).Split(char_0);
            double   num2     = (A_0.method_31(0x1021) == null) ? 0.0 : ((double)A_0.method_31(0x1021));
            double   num4     = (A_0.method_31(0x1022) == null) ? 0.0 : ((double)A_0.method_31(0x1022));
            double   num5     = (A_0.method_31(4) == null) ? 0.0 : Class969.smethod_68((int)A_0.method_31(4));
            for (int i = 0; i < strArray.Length; i++)
            {
                string str = strArray[i];
                if (Class567.smethod_16(str))
                {
                    if (str == BookmarkStart.b("堫尭儯就䜳娵夷丹夻", num))
                    {
                        num2 += Class576.smethod_41(strArray[++i]);
                        num4 += Class576.smethod_41(strArray[++i]);
                    }
                    else if (str == BookmarkStart.b("師䄭䐯匱䀳匵", num))
                    {
                        num5 += -(180.0 * Class1041.smethod_12(strArray[++i])) / 3.1415926535897931;
                    }
                }
            }
            A_0.SetAttr(0x1021, num2);
            A_0.SetAttr(0x1022, num4);
            A_0.SetAttr(4, Class969.smethod_71(num5));
        }
    }
Exemplo n.º 4
0
    private void method_5(ShapeBase A_0)
    {
        Class43 shapePr = A_0.ShapePr;

        for (int i = 0; i < shapePr.Count; i++)
        {
            int    num2 = shapePr.method_18(i);
            object obj2 = shapePr.method_19(i);
            if (obj2 != null)
            {
                switch (num2)
                {
                case 0x1ce:
                {
                    LineDashing dashing = (LineDashing)obj2;
                    Class109    class3  = Class922.smethod_13(A_0, this.class422_0.method_81().method_8());
                    if (((dashing != LineDashing.Solid) && (dashing != LineDashing.Solid)) && (this.class422_0.method_81().method_2(class3.method_0(), null, false, false) == null))
                    {
                        this.class422_0.method_81().method_1(class3, false, false);
                    }
                    break;
                }

                case 0x1d0:
                    this.class422_0.method_12(shapePr, (ArrowType)obj2, true);
                    break;

                case 0x1d1:
                    this.class422_0.method_12(shapePr, (ArrowType)obj2, false);
                    break;
                }
            }
        }
    }
Exemplo n.º 5
0
        internal Class81 method_6()
        {
            Class81       class81    = new Class81();
            List <ushort> ushortList = new List <ushort>((IEnumerable <ushort>) this.idictionary_0.Keys);

            ushortList.Sort();
            ushort  startIndex1   = ushortList[0];
            ushort  unicodeValue1 = this.idictionary_0[startIndex1];
            Class43 entry         = new Class43(startIndex1, unicodeValue1);

            class81.Add(entry);
            for (int index = 1; index < this.idictionary_0.Count; ++index)
            {
                ushort startIndex2   = ushortList[index];
                ushort unicodeValue2 = this.idictionary_0[startIndex2];
                if ((int)unicodeValue2 == (int)unicodeValue1 + 1 && (int)startIndex2 == (int)startIndex1 + 1)
                {
                    entry.method_0();
                }
                else
                {
                    entry = new Class43(startIndex2, unicodeValue2);
                    class81.Add(entry);
                }
                startIndex1   = startIndex2;
                unicodeValue1 = unicodeValue2;
            }
            return(class81);
        }
Exemplo n.º 6
0
    internal static Class43 smethod_1(ShapeType A_0)
    {
        Class43 class2 = null;

        lock (object_1)
        {
            if (dictionary_0.ContainsKey(A_0))
            {
                class2 = dictionary_0[A_0];
            }
        }
        if (class2 == null)
        {
            lock (object_1)
            {
                if (dictionary_0.ContainsKey(A_0))
                {
                    return(dictionary_0[A_0]);
                }
                dictionary_0[A_0] = null;
                string str = smethod_0(A_0);
                if (Class567.smethod_16(str))
                {
                    class2            = Class964.smethod_3(new Class466(str));
                    dictionary_0[A_0] = class2;
                }
            }
        }
        return(class2);
    }
Exemplo n.º 7
0
    private static void smethod_2(Class857 A_0, Class43 A_1)
    {
        int num = 0x11;

        A_0.method_17(null);
        Class396 class2 = A_0.method_11();

        while (class2.method_19())
        {
            string str;
            if ((!Class857.smethod_7(A_0, A_1) && !Class857.smethod_6(A_0, A_1)) && (!A_0.method_2(class2, A_1) && ((str = class2.method_1()) != null)))
            {
                int num2;
                if (Class1160.dictionary_44 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(7);
                    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);
                    Class1160.dictionary_44 = dictionary1;
                }
                if (Class1160.dictionary_44.TryGetValue(str, out num2))
                {
                }
            }
        }
    }
 // Token: 0x060012FD RID: 4861 RVA: 0x0000477F File Offset: 0x0000297F
 internal void method_23(object object_0, Class43 class43_0)
 {
     if (this.delegate138_0 != null)
     {
         this.delegate138_0(object_0, class43_0);
     }
 }
Exemplo n.º 9
0
 private static void smethod_0(Class43 A_0, int A_1, object A_2)
 {
     if (!A_0.method_6(A_1))
     {
         A_0.SetAttr(A_1, A_2);
     }
 }
Exemplo n.º 10
0
 internal Background(Document A_0) : base(A_0, null)
 {
     this.color_0              = System.Drawing.Color.White;
     this.color_1              = System.Drawing.Color.White;
     this.float_0              = 1f;
     this.class43_0            = new Class43();
     this.backgroundGradient_0 = new BackgroundGradient(this);
 }
Exemplo n.º 11
0
 internal Background(BackgroundType A_0) : base(null, null)
 {
     this.color_0              = System.Drawing.Color.White;
     this.color_1              = System.Drawing.Color.White;
     this.float_0              = 1f;
     this.class43_0            = new Class43();
     this.backgroundGradient_0 = new BackgroundGradient(this);
     this.Type = A_0;
 }
Exemplo n.º 12
0
        private void method_3(Class81 entries)
        {
            Class43 entry1 = entries[0];
            Class43 entry2 = entries[entries.Count - 1];

            this.XOut.WriteLine("1 begincodespacerange");
            this.XOut.WriteLine(string.Format("<{0:X4}> <{1:X4}>", (object)entry1.StartGlyphIndex, (object)entry2.EndGlyphIndex));
            this.XOut.WriteLine("endcodespacerange");
        }
Exemplo n.º 13
0
    internal static void smethod_1(Class857 A_0, Class43 A_1)
    {
        Class98 class2 = (Class98)A_0.method_13().method_2(A_0.method_16(), BookmarkStart.b("唱䘳圵䠷刹唻崽", 12), A_0.method_20(), true);

        if ((class2 != null) && (class2.method_45() != null))
        {
            class2.method_45().method_37(A_1);
        }
    }
Exemplo n.º 14
0
    private static void smethod_1(Class43 A_0, string A_1, Class111 A_2)
    {
        int num = 15;

        if (A_1 != null)
        {
            if (A_1 == BookmarkStart.b("嬴堶圸帺", num))
            {
                A_0.SetAttr(0x1bb, false);
            }
            else
            {
                A_0.SetAttr(0x1bb, true);
                A_0.SetAttr(0x180, Class922.smethod_19(A_1, A_2));
                if ((A_1 == BookmarkStart.b("刴䔶堸强吼娾⽀㝂", num)) && (A_2 != null))
                {
                    if (Class567.smethod_16(A_2.method_14()))
                    {
                        A_0.SetAttr(0x181, Class576.smethod_76(A_2.method_14()));
                    }
                    if (Class567.smethod_16(A_2.method_16()))
                    {
                        A_0.SetAttr(0x183, Class576.smethod_76(A_2.method_16()));
                    }
                    if (Class567.smethod_16(A_2.method_18()))
                    {
                        A_0.SetAttr(0x182, Class576.smethod_78(A_2.method_18()));
                    }
                    if (Class567.smethod_16(A_2.method_20()))
                    {
                        A_0.SetAttr(0x184, Class576.smethod_78(A_2.method_20()));
                    }
                    if (Class567.smethod_16(A_2.method_6()))
                    {
                        A_0.SetAttr(0x18d, Class576.smethod_28(A_2.method_6()));
                    }
                    if (Class567.smethod_16(A_2.method_8()))
                    {
                        A_0.SetAttr(0x18e, Class576.smethod_28(A_2.method_8()));
                    }
                    if (Class567.smethod_16(A_2.method_10()))
                    {
                        A_0.SetAttr(0x18b, Class576.smethod_7(A_2.method_10()) / 10);
                    }
                    if (A_2.method_4() == BookmarkStart.b("吴伶倸娺儼", num))
                    {
                        A_0.SetAttr(0x18c, -1);
                    }
                    if (A_2.method_4() == BookmarkStart.b("头帶圸帺尼䴾", num))
                    {
                        A_0.SetAttr(0x18c, 100);
                    }
                }
            }
        }
    }
Exemplo n.º 15
0
    internal static bool smethod_7(Class857 A_0, Class43 A_1)
    {
        int      num    = 4;
        Class396 class2 = A_0.method_11();

        if (A_0.method_4(class2))
        {
            return(true);
        }
        string key = class2.method_1();

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_173 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(12);
                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);
                dictionary1.Add(BookmarkStart.b("帩䴫䰭尯圱ᤳ吵夷夹圻夽㈿ⵁㅃ⡅ⱇ", num), 10);
                dictionary1.Add(BookmarkStart.b("䬩䈫䴭堯崱䘳ᬵ䠷嬹嬻嬽洿ⱁㅃ⭅⩇⽉㹋", num), 11);
                Class1160.dictionary_173 = dictionary1;
            }
            if (Class1160.dictionary_173.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                    A_1.SetAttr(0x103a, (long)class2.method_4());
                    return(true);

                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                case 8:
                case 9:
                case 10:
                case 11:
                    return(false);
                }
            }
        }
        return(false);
    }
Exemplo n.º 16
0
 private static void smethod_1(Class857 A_0, string A_1, ShapeObject A_2, Class43 A_3)
 {
     while (A_0.method_11().method_9(A_1))
     {
         if (!A_0.method_5(A_3))
         {
             Class857.smethod_13(A_0, A_2);
         }
     }
 }
Exemplo n.º 17
0
 private static void smethod_1(Class857 A_0, string A_1, Class43 A_2)
 {
     while (A_0.method_11().method_9(A_1))
     {
         if (!A_0.method_5(A_2))
         {
             A_0.method_11().vmethod_1();
         }
     }
 }
Exemplo n.º 18
0
    private static void smethod_2(Border A_0, ShapeBase A_1, int A_2, int A_3)
    {
        Class43 shapePr = A_1.ShapePr;

        if (shapePr.method_6(A_3))
        {
            A_0.Color = (Color)shapePr.method_31(A_3);
            shapePr.Remove(A_3);
        }
    }
Exemplo n.º 19
0
        public object GetInheritedShapeAttribute(int key)
        {
            Class43 class2 = Class565.smethod_1(this.ShapeType);

            if (class2 != null)
            {
                return(class2.method_32(key));
            }
            return(Class43.smethod_5(key));
        }
Exemplo n.º 20
0
        public void Test3()
        {
            var  linkedList = new LinkedList();
            Node repeatNode = new Node(null, 7);

            linkedList.AppendLinkedList(new Node(null, 1));
            var result = Class43.FindCycleStart(linkedList);

            Assert.Null(result);
        }
Exemplo n.º 21
0
    internal static void smethod_4(ShapeBase A_0, Class398 A_1)
    {
        int     num     = 11;
        Class43 shapePr = A_0.ShapePr;
        string  str2    = shapePr.HasKey(0x1001) ? Class1085.smethod_72((TextWrappingStyle)shapePr[0x1001]) : "";

        if (A_0.ShapePr.HasKey(0x1001))
        {
            string str4 = Class417.smethod_16(A_0.HorizontalOrigin);
            if (str4 == BookmarkStart.b("䔰嘲䴴䌶", num))
            {
                str4 = "";
            }
            string str = Class417.smethod_14(A_0.VerticalOrigin);
            if (str == BookmarkStart.b("䔰嘲䴴䌶", num))
            {
                str = "";
            }
            string str3 = shapePr.HasKey(0x1002) ? Class1085.smethod_56(A_0.TextWrappingType) : "";
            if (A_0.IsInline)
            {
                if ((str4 == BookmarkStart.b("到嬲吴䔶", num)) && (str == BookmarkStart.b("崰娲嬴制", num)))
                {
                    A_1.method_4(BookmarkStart.b("䘰ȲԴശ丸䤺尼伾", num));
                    A_1.method_36(BookmarkStart.b("䔰䨲䔴制", num), str2);
                    A_1.method_5();
                }
            }
            else if (Class567.smethod_16(str2))
            {
                A_1.method_4(BookmarkStart.b("䘰ȲԴശ丸䤺尼伾", num));
                A_1.method_36(BookmarkStart.b("䔰䨲䔴制", num), str2);
                A_1.method_36(BookmarkStart.b("䈰娲儴制", num), str3);
                A_1.method_5();
            }
            else if (Class567.smethod_16(str4) || Class567.smethod_16(str))
            {
                A_1.method_4(BookmarkStart.b("䘰ȲԴശ丸䤺尼伾", num));
                A_1.method_36(BookmarkStart.b("䈰娲儴制", num), str3);
                if (smethod_5(str4))
                {
                    A_1.method_36(BookmarkStart.b("倰崲嘴弶嘸䤺䔼", num), str4);
                }
                if (smethod_5(str))
                {
                    A_1.method_36(BookmarkStart.b("倰崲嘴弶嘸䤺䐼", num), str);
                }
                A_1.method_5();
            }
        }
        if (A_0.AnchorLocked)
        {
            A_1.method_10(BookmarkStart.b("䘰ȲԴശ堸唺帼圾⹀ㅂ⥄⡆⩈⁊", num));
        }
    }
Exemplo n.º 22
0
 internal static void smethod_12(Class857 A_0, string A_1, bool A_2, bool A_3, Class43 A_4)
 {
     bool_9   = false;
     bool_10  = false;
     double_2 = 1.0;
     if (Class567.smethod_16(A_1))
     {
         string[] strArray = A_1.Trim().Split(new char[] { ' ' });
         int[]    numArray = new int[4];
         for (int i = 0; i < strArray.Length; i++)
         {
             if (i >= 4)
             {
                 break;
             }
             int num6 = Class1041.smethod_18(strArray[i]);
             if (num6 == -2147483648)
             {
                 return;
             }
             numArray[i] = num6;
         }
         int num4 = numArray[2] - numArray[0];
         int num5 = numArray[3] - numArray[1];
         int_2 = numArray[2];
         int_3 = numArray[3];
         if (num5 > 0)
         {
             double num  = ((double)num4) / ((double)num5);
             double num2 = A_0.method_47() / A_0.method_46();
             if (A_2 && (num < num2))
             {
                 num4     = (int)(num4 * num2);
                 double_2 = num2;
                 bool_9   = true;
             }
             if (A_3 && (num > num2))
             {
                 num5     = (int)(((double)num5) / num2);
                 double_2 = num2;
                 bool_10  = true;
             }
         }
         if (Class576.smethod_4(num4, num5))
         {
             Class576.smethod_3(num4, num5);
             num4 = Class576.smethod_2(num4);
             num5 = Class576.smethod_2(num5);
         }
         A_4.SetAttr(0x101d, numArray[0]);
         A_4.SetAttr(0x101e, numArray[1]);
         A_4.SetAttr(0x101f, num4);
         A_4.SetAttr(0x1020, num5);
     }
 }
Exemplo n.º 23
0
 private void imethod_11(string A_0, Class43 A_1)
 {
     if (!this.dictionary_1.ContainsKey(A_0))
     {
         this.dictionary_1.Add(A_0, A_1);
     }
     else
     {
         this.dictionary_1[A_0] = A_1;
     }
 }
Exemplo n.º 24
0
    internal static bool smethod_5(Class396 A_0, Class43 A_1)
    {
        string str;
        int    num = 10;

        if (((str = A_0.method_1()) == null) || (!(str == BookmarkStart.b("䈯圱堳ᬵ伷匹堻䨽⠿", num)) && !(str == BookmarkStart.b("䈯圱堳ᬵ倷弹唻夽⠿㙁", num))))
        {
            return(false);
        }
        return(true);
    }
Exemplo n.º 25
0
    internal bool method_5(Class43 A_0)
    {
        Class396 class2 = this.method_11();

        if (class2.method_1() == BookmarkStart.b("伪䠬尮到", 5))
        {
            A_0.SetAttr(0x381, class2.method_21());
            return(true);
        }
        return(false);
    }
Exemplo n.º 26
0
        public void Test2()
        {
            int  expected   = 7;
            var  linkedList = new LinkedList();
            Node repeatNode = new Node(null, 7);

            linkedList.AppendLinkedList(new Node(null, 1));
            linkedList.AppendLinkedList(repeatNode);
            linkedList.AppendLinkedList(new Node(repeatNode, 3));
            var result = Class43.FindCycleStart(linkedList);

            Assert.Equal(expected, result.GetData());
        }
Exemplo n.º 27
0
    private static void smethod_1(Class857 A_0, Class43 A_1)
    {
        int      num    = 14;
        Class396 class2 = A_0.method_11();

        while (class2.method_9(BookmarkStart.b("圳夵嘷吹夻崽㐿ⵁ㙃", num)))
        {
            if (!A_0.method_5(A_1))
            {
                class2.vmethod_1();
            }
        }
    }
Exemplo n.º 28
0
    internal string method_12(Class43 A_0, ArrowType A_1, bool A_2)
    {
        if (A_1 == ArrowType.None)
        {
            return(null);
        }
        Class110 class2 = Class576.smethod_63(A_0, A_1, A_2);

        if (this.class89_1.method_2(class2.method_0(), null, false, false) == null)
        {
            this.class89_1.method_1(class2, false, false);
        }
        return(class2.method_0());
    }
Exemplo n.º 29
0
    private static Class43 smethod_4(Class857 A_0)
    {
        int      num    = 11;
        Class396 class2 = A_0.method_11();
        Class43  class3 = new Class43();

        while (class2.method_19())
        {
            string str;
            if (((!Class857.smethod_7(A_0, class3) && !Class857.smethod_6(A_0, class3)) && (!Class857.smethod_5(class2, class3) && !A_0.method_2(class2, class3))) && ((((str = class2.method_1()) != null) && !(str == BookmarkStart.b("尰娲嬴ᨶ儸帺吼堾⥀㝂", num))) && (!(str == BookmarkStart.b("尰娲嬴ᨶ丸刺夼䬾⥀", num)) && !(str == BookmarkStart.b("尰刲䴴ᨶ儸帺吼堾⥀㝂", num)))))
            {
                bool flag1 = str == BookmarkStart.b("尰刲䴴ᨶ丸刺夼䬾⥀", num);
            }
        }
        return(class3);
    }
Exemplo n.º 30
0
    private static void smethod_2(string A_0, Class43 A_1, bool A_2)
    {
        if (Class567.smethod_16(A_0))
        {
            int num4    = Class576.smethod_36(A_0);
            int propKey = A_2 ? 0x1d2 : 0x1d4;
            int num     = A_2 ? 0x1d0 : 0x1d1;
            int num3    = num4;
            if (num3 <= 0xf5)
            {
                switch (num3)
                {
                case 140:
                    A_1.SetAttr(propKey, StrokeArrowWidth.Narrow);
                    return;

                case 210:
                    A_1.SetAttr(propKey, StrokeArrowWidth.Medium);
                    return;
                }
                if (num3 == 0xf5)
                {
                    A_1.SetAttr(num, ArrowType.Open);
                    A_1.SetAttr(propKey, StrokeArrowWidth.Narrow);
                }
            }
            else
            {
                switch (num3)
                {
                case 0x13b:
                    A_1.SetAttr(num, ArrowType.Open);
                    A_1.SetAttr(propKey, StrokeArrowWidth.Medium);
                    return;

                case 350:
                    A_1.SetAttr(propKey, StrokeArrowWidth.Wide);
                    return;
                }
                if (num3 == 420)
                {
                    A_1.SetAttr(num, ArrowType.Open);
                    A_1.SetAttr(propKey, StrokeArrowWidth.Wide);
                }
            }
        }
    }