예제 #1
0
    private Class527 method_35(Section A_0)
    {
        int num = 14;
        WordAttrCollection attrs  = (WordAttrCollection)A_0.SectPr.Clone();
        Class527           class2 = new Class527();

        class2.class1048_0.class411_3.double_2 = 0.59015748031496063;
        class2.class1048_0.class411_2.double_2 = 0.59015748031496063;
        class2.class1048_0.class411_0.double_2 = 0.59015748031496063;
        class2.class1048_0.class411_1.double_2 = 0.59015748031496063;
        if (A_0.TextDirection == TextDirection.RightToLeft)
        {
            class2.string_3 = BookmarkStart.b("䀳吵ᔷ䠹倻", num);
        }
        for (int i = 0; i < attrs.Count; i++)
        {
            int    num5 = attrs.method_18(i);
            object obj2 = attrs.method_19(i);
            if (obj2 != null)
            {
                int num3 = num5;
                if (num3 <= 0x8c0)
                {
                    if (num3 <= 0x7da)
                    {
                        switch (num3)
                        {
                        case 0x7c6:
                        {
                            class2.class1048_0.class411_0.border_0 = (obj2 as Borders).Top;
                            class2.class1048_0.class411_1.border_0 = (obj2 as Borders).Bottom;
                            class2.class1048_0.class411_2.border_0 = (obj2 as Borders).Left;
                            class2.class1048_0.class411_3.border_0 = (obj2 as Borders).Right;
                            continue;
                        }

                        case 0x7d0:
                        {
                            MarginsF sf = (MarginsF)obj2;
                            class2.class1048_0.class411_0.double_2 = Class576.smethod_47(sf.Top * 20f);
                            class2.class1048_0.class411_1.double_2 = Class576.smethod_47(sf.Bottom * 20f);
                            class2.class1048_0.class411_2.double_2 = Class576.smethod_47(sf.Left * 20f);
                            class2.class1048_0.class411_3.double_2 = Class576.smethod_47(sf.Right * 20f);
                            continue;
                        }
                        }
                        if (num3 == 0x7da)
                        {
                            PageNumberStyle style = (PageNumberStyle)obj2;
                            if ((style != PageNumberStyle.Arabic) && (style != PageNumberStyle.Arabic))
                            {
                                class2.string_6 = Class922.smethod_54((PageNumberStyle)obj2);
                            }
                        }
                    }
                    else
                    {
                        switch (num3)
                        {
                        case 0x87a:
                        {
                            class2.string_5 = ((int)(((A_0.SectPr.method_98() - A_0.SectPr.method_50().Top) - A_0.SectPr.method_50().Bottom) / ((float)obj2))).ToString();
                            continue;
                        }

                        case 0x8a2:
                        {
                            class2.string_2 = Class922.smethod_85((PageOrientation)obj2);
                            continue;
                        }
                        }
                        if (num3 == 0x8c0)
                        {
                            class2.class1048_0.bool_1 = ((PageBorderOffsetFrom)obj2) == PageBorderOffsetFrom.PageEdge;
                        }
                    }
                }
                else if (num3 <= 0x910)
                {
                    switch (num3)
                    {
                    case 0x8d4:
                    {
                        class2.string_0 = Class576.smethod_35(obj2);
                        continue;
                    }

                    case 0x8de:
                    {
                        class2.string_1 = Class576.smethod_35(obj2);
                        continue;
                    }
                    }
                    if (num3 == 0x910)
                    {
                        class2.class1048_0.class411_0.double_0 = Class576.smethod_44((double)((float)obj2));
                    }
                }
                else if (num3 <= 0x97e)
                {
                    if (num3 == 0x91a)
                    {
                        class2.class1048_0.class411_1.double_1 = Class576.smethod_44((double)((float)obj2));
                    }
                    else
                    {
                        string str2;
                        if ((num3 == 0x97e) && ((str2 = obj2.ToString()) != null))
                        {
                            if (!(str2 == BookmarkStart.b("砳張嘷弹伻焽⸿⹁㵃", num)))
                            {
                                if (str2 == BookmarkStart.b("眳帵夷䠹伻缽⸿♁ࡃ⽅♇⽉", num))
                                {
                                    class2.string_4 = BookmarkStart.b("嘳夵䰷刹", num);
                                }
                            }
                            else
                            {
                                class2.string_4 = BookmarkStart.b("堳張嘷弹", num);
                            }
                        }
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 0x988:
                        if (((TextOrientation)obj2) == TextOrientation.VerticalFarEast)
                        {
                            class2.string_3 = BookmarkStart.b("䘳娵ᔷ丹帻", num);
                        }
                        if (((TextOrientation)obj2) == TextOrientation.Downward)
                        {
                            class2.string_3 = BookmarkStart.b("䀳吵ᔷ䠹倻", num);
                        }
                        break;

                    case 0x992:
                        class2.string_3 = ((bool)obj2) ? BookmarkStart.b("䘳娵ᔷ丹帻", num) : BookmarkStart.b("堳䐵ᔷ丹帻", num);
                        break;
                    }
                }
            }
        }
        if (double.IsNaN(class2.class1048_0.class411_0.double_0))
        {
            class2.class1048_0.class411_0.double_0 = Class576.smethod_44((double)A_0.SectPr.method_110());
        }
        if (double.IsNaN(class2.class1048_0.class411_1.double_0))
        {
            class2.class1048_0.class411_1.double_1 = Class576.smethod_44((double)A_0.SectPr.method_112());
        }
        class2.class1048_0.method_1(true, true);
        return(class2);
    }
예제 #2
0
 // Token: 0x06003082 RID: 12418
 // RVA: 0x00023F9D File Offset: 0x0002219D
 public bool method_11(Class527 class527_0)
 {
     return class527_0.class861_0 != null && class527_0.class861_0.int_1 == this.class19_0.int_2;
 }
예제 #3
0
 // Token: 0x06003541 RID: 13633
 // RVA: 0x00026FF5 File Offset: 0x000251F5
 public bool method_0(Class527 class527_0)
 {
     return class527_0.class861_0 == this.class861_0;
 }