Ejemplo n.º 1
0
    private string method_10()
    {
        float num;

        switch (((TableAlignment)this.method_13().method_8().TableFormat.method_32(0xfaa)))
        {
        case TableAlignment.Center:
            return(Class576.smethod_35((Class969.smethod_31(this.method_11()) - this.method_13().method_10()) / 2));

        case TableAlignment.Right:
            return(Class576.smethod_35(Class969.smethod_31(this.method_11()) - this.method_13().method_10()));

        default:
        {
            Table table = this.method_13().method_8();
            num = 2.147484E+09f;
            int num2 = 0;
            for (TableRow row = table.Rows[0]; row != null; row = table.Rows[num2++])
            {
                if (num2 >= table.Rows.Count)
                {
                    break;
                }
                num = Math.Min(row.RowFormat.LeftIndent, num);
            }
            break;
        }
        }
        return(Class576.smethod_42((double)num));
    }
Ejemplo n.º 2
0
    private void method_3(TableCell A_0, CellFormat A_1)
    {
        RowFormat rowFormat = A_0.OwnerRow.RowFormat;
        float     num       = A_1.HasKey(0xbfe) ? A_1.Paddings.Top : rowFormat.Paddings.Top;
        float     num4      = A_1.HasKey(0xc08) ? A_1.Paddings.Bottom : rowFormat.Paddings.Bottom;
        float     num2      = A_1.HasKey(0xc12) ? A_1.Paddings.Left : rowFormat.Paddings.Left;
        float     num3      = A_1.HasKey(0xc1c) ? A_1.Paddings.Right : rowFormat.Paddings.Right;

        if (A_1.CellWidth <= (num2 + num3))
        {
            num3 = 0f;
            num2 = 0f;
        }
        if (num != 0f)
        {
            this.class86_0.class1048_0.class411_0.string_2 = Class576.smethod_42((double)num);
        }
        if (num4 != 0f)
        {
            this.class86_0.class1048_0.class411_1.string_2 = Class576.smethod_42((double)num4);
        }
        if (num2 != 0f)
        {
            this.class86_0.class1048_0.class411_2.string_2 = Class576.smethod_42((double)num2);
        }
        if (num3 != 0f)
        {
            this.class86_0.class1048_0.class411_3.string_2 = Class576.smethod_42((double)num3);
        }
    }
Ejemplo n.º 3
0
    internal VisitorAction method_0(Table A_0)
    {
        int num = 6;

        if (this.class422_0.method_23() != OpenDocumentWritingStage.MathML)
        {
            Class400 class2 = this.class422_0.method_18();
            if (!A_0.HasChildElements)
            {
                this.class422_0.method_11(A_0, null);
                return(VisitorAction.SkipThisElement);
            }
            this.stack_1.Push(new Class981(A_0, true, false, false));
            if (this.method_12(A_0))
            {
                return(VisitorAction.Continue);
            }
            this.method_13().method_0();
            int[]  numArray = this.method_13().method_6();
            string str      = Class576.smethod_42((double)(((float)this.method_13().method_8().PreferredWidth.Value) / 20f));
            if (this.class422_0.method_21())
            {
                this.class974_0.method_12(this.method_6(), BookmarkStart.b("堫伭刯帱儳", num));
                this.class974_0.method_7(false, true);
                class2.method_4(BookmarkStart.b("弫娭䤯帱儳వ䰷嬹帻刽┿潁㑃㑅❇㩉⥋㱍⑏㭑ㅓ╕", num));
                class2.method_40(BookmarkStart.b("堫伭刯帱儳వ夷嘹唻夽⸿", num), Class922.smethod_50((TableAlignment)A_0.TableFormat.method_32(0xfaa)));
                class2.method_40(BookmarkStart.b("弫娭䤯帱儳వ伷匹堻䨽⠿", num), str);
                class2.method_40(BookmarkStart.b("䨫䄭ਯ弱唳䐵強匹刻ጽⰿ❁≃㉅", num), this.method_10());
                object obj2 = A_0.FirstRow.RowFormat.method_31(0x111c);
                if (obj2 != null)
                {
                    class2.method_40(BookmarkStart.b("弫娭䤯帱儳వ伷䠹唻䨽⤿ⱁ⍃歅╇╉⡋⭍", num), ((bool)obj2) ? BookmarkStart.b("師䈭ᴯ䘱嘳", num) : BookmarkStart.b("䀫尭ᴯ䘱嘳", num));
                }
                class2.method_6(BookmarkStart.b("弫娭䤯帱儳వ䰷嬹帻刽┿潁㑃㑅❇㩉⥋㱍⑏㭑ㅓ╕", num));
                class2.method_6(BookmarkStart.b("弫娭䤯帱儳వ䬷丹䔻刽┿", num));
                for (int i = 0; i < numArray.Length; i++)
                {
                    this.class974_0.method_12(this.method_7(), BookmarkStart.b("堫伭刯帱儳ᬵ嬷唹倻䬽ⴿⱁ", num));
                    class2.method_33(BookmarkStart.b("弫娭䤯帱儳వ䰷嬹帻刽┿潁❃⥅⑇㽉⅋⁍絏≑♓㥕⡗㽙⹛⩝य़ݡᝣ", num), new object[] { BookmarkStart.b("弫娭䤯帱儳వ嬷唹倻䬽ⴿⱁ楃ㅅⅇ⹉㡋♍", num), Class576.smethod_42((double)(((float)numArray[i]) / 20f)) });
                    class2.method_6(BookmarkStart.b("弫娭䤯帱儳వ䬷丹䔻刽┿", num));
                }
            }
            if (this.class422_0.method_22())
            {
                if (A_0.FirstNonMarkupDescendant.DocumentObjectType == DocumentObjectType.TableCell)
                {
                    this.stack_0.Push(this.int_0);
                }
                class2.method_4(BookmarkStart.b("堫伭刯帱儳వ䰷嬹帻刽┿", num));
                class2.method_40(BookmarkStart.b("堫伭刯帱儳వ䬷丹䔻刽┿潁⩃❅╇⽉", num), this.method_6());
                for (int j = 0; j < numArray.Length; j++)
                {
                    class2.method_33(BookmarkStart.b("堫伭刯帱儳వ䰷嬹帻刽┿潁❃⥅⑇㽉⅋⁍", num), new object[] { BookmarkStart.b("堫伭刯帱儳వ䬷丹䔻刽┿潁⩃❅╇⽉", num), this.method_7() });
                }
            }
        }
        return(VisitorAction.Continue);
    }
Ejemplo n.º 4
0
    private void method_5(Class411 A_0, object A_1)
    {
        int num = (int)A_1;

        if (num == 0)
        {
            this.class87_0.int_0--;
        }
        else
        {
            A_0.string_3 = Class576.smethod_42(Class969.smethod_42(num));
        }
    }
Ejemplo n.º 5
0
    private void method_9(ShapeObject A_0, string A_1)
    {
        int    num  = 5;
        PointF tf   = A_0.method_48(new PointF((float)A_0.Left, (float)A_0.Top));
        double x    = tf.X;
        double num3 = tf.X;
        double y    = tf.Y;
        double num5 = tf.Y;
        double num6 = smethod_11(A_0, (double)A_0.SizeInPoints.Width);
        double num7 = smethod_11(A_0, (double)A_0.SizeInPoints.Height);

        switch (A_0.FlipOrientation)
        {
        case FlipOrientation.Horizontal:
            x    += num6;
            num5 += num7;
            break;

        case FlipOrientation.Vertical:
            num3 += num6;
            y    += num7;
            break;

        case FlipOrientation.Both:
            x += num6;
            y += num7;
            break;

        default:
            num3 += num6;
            num5 += num7;
            break;
        }
        Class400 class2 = this.class422_0.method_18();

        class2.method_66(A_1);
        class2.method_68(BookmarkStart.b("伪弬丮䘰ल䄴丶䤸帺", num), Class922.smethod_7(A_0.ConnectorType));
        class2.method_68(BookmarkStart.b("堪嬬䠮ର䬲д", num), Class576.smethod_42(x));
        class2.method_68(BookmarkStart.b("堪嬬䠮ର䨲д", num), Class576.smethod_42(y));
        class2.method_68(BookmarkStart.b("堪嬬䠮ର䬲ܴ", num), Class576.smethod_42(num3));
        class2.method_68(BookmarkStart.b("堪嬬䠮ର䨲ܴ", num), Class576.smethod_42(num5));
        this.method_8(A_0);
    }
Ejemplo n.º 6
0
    private void method_15(ListLevel A_0)
    {
        int num = 12;

        this.class400_0.method_4(BookmarkStart.b("䄱䀳伵吷弹ػ刽⤿ㅁぃ歅⑇⽉㩋⭍㱏网⑓⑕㝗⩙㥛ⱝᑟୡţᕥ", 12));
        if (A_0.NumberAlignment == ListNumberAlignment.Right)
        {
            this.class400_0.method_40(BookmarkStart.b("䘱儳丵䰷9儻圽⸿潁⡃❅⩇⽉⁋捍❏㭑こ≕し", num), Class576.smethod_42((double)A_0.TextPosition));
            this.class400_0.method_40(BookmarkStart.b("䘱儳丵䰷9儻圽⸿潁⡃❅⩇⽉⁋捍㑏㭑❓≕㥗㑙㽛㭝", num), Class576.smethod_42((double)(A_0.TextPosition - A_0.NumberPosition)));
        }
        else
        {
            this.class400_0.method_40(BookmarkStart.b("䘱儳丵䰷9伻丽ℿ⅁⅃歅⩇⽉⩋⅍≏㝑", num), Class576.smethod_42((double)(A_0.TextPosition + A_0.NumberPosition)));
            this.class400_0.method_40(BookmarkStart.b("䘱儳丵䰷9儻圽⸿潁⡃❅⩇⽉⁋捍❏㭑こ≕し", num), Class576.smethod_42((double)(0f - A_0.NumberPosition)));
        }
        this.class400_0.method_40(BookmarkStart.b("吱嬳వ䰷弹䐻䨽洿⍁⡃⽅⽇⑉", num), Class922.smethod_52(A_0.NumberAlignment));
        this.method_16(A_0);
        this.class400_0.method_6(BookmarkStart.b("䄱䀳伵吷弹ػ刽⤿ㅁぃ歅⑇⽉㩋⭍㱏网⑓⑕㝗⩙㥛ⱝᑟୡţᕥ", num));
    }
Ejemplo n.º 7
0
    private void method_16(ListLevel A_0)
    {
        int num = 8;

        if (A_0.HasPictureBullet)
        {
            double fontSize = A_0.CharacterFormat.FontSize;
            double height   = A_0.PicBullet.Size.Height;
            double width    = A_0.PicBullet.Size.Width;
            if (fontSize < height)
            {
                width *= fontSize / height;
                height = fontSize;
            }
            this.class400_0.method_40(BookmarkStart.b("䠭弯࠱䌳張尷丹吻", num), Class576.smethod_42(width));
            this.class400_0.method_40(BookmarkStart.b("䠭弯࠱尳匵儷崹吻䨽", num), Class576.smethod_42(height));
            this.class400_0.method_40(BookmarkStart.b("崭䐯䬱堳匵ȷ䰹夻䰽㐿⭁❃❅⑇杉㱋⅍⍏", num), BookmarkStart.b("䌭夯嘱倳娵崷", num));
            this.class400_0.method_40(BookmarkStart.b("崭䐯䬱堳匵ȷ䰹夻䰽㐿⭁❃❅⑇杉㹋⭍㱏", num), BookmarkStart.b("䈭夯就儳", num));
        }
    }
Ejemplo n.º 8
0
    private void method_10(ShapeObject A_0, string A_1)
    {
        int      num    = 8;
        Class400 class2 = this.class422_0.method_18();

        class2.method_66(A_1);
        if (A_0.Rotation == 0.0)
        {
            PointF tf = A_0.method_48(new PointF((float)A_0.Left, (float)A_0.Top));
            class2.method_68(BookmarkStart.b("崭䘯唱ำ丵", num), Class576.smethod_42((double)tf.X));
            class2.method_68(BookmarkStart.b("崭䘯唱ำ伵", num), Class576.smethod_42((double)tf.Y));
        }
        else
        {
            class2.method_68(BookmarkStart.b("崭䘯唱ำ丵", num), BookmarkStart.b("ḭ匯弱", num));
            class2.method_68(BookmarkStart.b("崭䘯唱ำ伵", num), BookmarkStart.b("ḭ匯弱", num));
        }
        class2.method_68(BookmarkStart.b("崭䘯唱ำ䄵儷帹䠻嘽", num), Class576.smethod_42(smethod_11(A_0, (double)A_0.SizeInPoints.Width)));
        class2.method_68(BookmarkStart.b("崭䘯唱ำ帵崷匹嬻嘽㐿", num), Class576.smethod_42(smethod_11(A_0, (double)A_0.SizeInPoints.Height)));
        this.method_8(A_0);
    }
Ejemplo n.º 9
0
    private void method_11(ShapeBase A_0, string A_1)
    {
        bool     flag;
        int      num    = 0x10;
        Class400 class2 = this.class422_0.method_18();

        class2.method_66(A_1);
        if (!(flag = !(A_0.Rotation == 0.0)))
        {
            PointF tf = A_0.method_48(new PointF((float)A_0.Left, (float)A_0.Top));
            class2.method_68(BookmarkStart.b("䔵丷崹ػ䘽", num), Class576.smethod_42(tf.X - ((!(A_0 is ShapeObject) || !((ShapeObject)A_0).Stroked) ? 0.0 : ((ShapeObject)A_0).StrokeWeight)));
            double num2 = tf.Y - ((!(A_0 is ShapeObject) || !((ShapeObject)A_0).Stroked) ? 0.0 : ((ShapeObject)A_0).StrokeWeight);
            class2.method_68(BookmarkStart.b("䔵丷崹ػ䜽", num), Class576.smethod_42(num2));
        }
        else
        {
            class2.method_68(BookmarkStart.b("䔵丷崹ػ䘽", num), BookmarkStart.b("ص儷吹", num));
            class2.method_68(BookmarkStart.b("䔵丷崹ػ䜽", num), BookmarkStart.b("ص儷吹", num));
        }
        if (A_0.SizeInPoints.Width != 0f)
        {
            class2.method_68(BookmarkStart.b("䔵丷崹ػ䤽⤿♁ぃ⹅", num), Class576.smethod_42((!(A_0 is DocPicture) ? ((double)A_0.SizeInPoints.Width) : ((double)((A_0.SizeInPoints.Width * ((DocPicture)A_0).WidthScale) / 100f))) + (((!(A_0 is ShapeObject) || !((ShapeObject)A_0).Stroked) || flag) ? 0.0 : (((ShapeObject)A_0).StrokeWeight * 2.0))));
        }
        else
        {
            class2.method_68(BookmarkStart.b("䔵丷崹ػ䤽⤿♁ぃ⹅", num), BookmarkStart.b("ص儷吹", num));
        }
        if (A_0.SizeInPoints.Height != 0f)
        {
            class2.method_68(BookmarkStart.b("䔵丷崹ػ嘽┿⭁⍃⹅㱇", num), Class576.smethod_42((!(A_0 is DocPicture) ? ((double)A_0.SizeInPoints.Height) : ((double)((A_0.SizeInPoints.Height * ((DocPicture)A_0).HeightScale) / 100f))) + (((!(A_0 is ShapeObject) || !((ShapeObject)A_0).Stroked) || flag) ? 0.0 : (((ShapeObject)A_0).StrokeWeight * 2.0))));
        }
        else
        {
            class2.method_68(BookmarkStart.b("䔵丷崹ػ嘽┿⭁⍃⹅㱇", num), BookmarkStart.b("ص儷吹", num));
        }
        this.method_8(A_0);
    }
Ejemplo n.º 10
0
    private void method_1(TableCell A_0, WordAttrCollection A_1)
    {
        VerticalAlignment bottom     = VerticalAlignment.Bottom;
        TextOrientation   horizontal = TextOrientation.Horizontal;
        bool flag = false;

        for (int i = 0; i < A_1.Count; i++)
        {
            int    num3 = A_1.method_18(i);
            object obj2 = A_1.method_19(i);
            if (obj2 != null)
            {
                this.class86_0.int_0++;
                switch (num3)
                {
                case 1:
                {
                    Borders borders = obj2 as Borders;
                    if (!borders.Top.IsDefault)
                    {
                        this.class86_0.class1048_0.class411_0.border_0 = borders.Top;
                    }
                    if (!borders.Bottom.IsDefault)
                    {
                        this.class86_0.class1048_0.class411_1.border_0 = borders.Bottom;
                    }
                    if (!borders.Left.IsDefault)
                    {
                        this.class86_0.class1048_0.class411_2.border_0 = borders.Left;
                    }
                    if (!borders.Right.IsDefault)
                    {
                        this.class86_0.class1048_0.class411_3.border_0 = borders.Right;
                    }
                    this.class86_0.int_0--;
                    continue;
                }

                case 2:
                {
                    Paddings paddings = obj2 as Paddings;
                    float    top      = paddings.Top;
                    this.class86_0.class1048_0.class411_0.string_2 = Class576.smethod_42((double)paddings.Top);
                    float single2 = paddings.Bottom;
                    this.class86_0.class1048_0.class411_1.string_2 = Class576.smethod_42((double)paddings.Bottom);
                    float left = paddings.Left;
                    this.class86_0.class1048_0.class411_2.string_2 = Class576.smethod_42((double)paddings.Left);
                    float right = paddings.Right;
                    this.class86_0.class1048_0.class411_3.string_2 = Class576.smethod_42((double)paddings.Right);
                    this.class86_0.int_0--;
                    continue;
                }

                case 0xbea:
                {
                    horizontal = (TextOrientation)obj2;
                    this.class86_0.string_2 = Class922.smethod_12((TextOrientation)obj2);
                    if (this.class86_0.string_2 == null)
                    {
                        this.class86_0.int_0--;
                    }
                    continue;
                }

                case 0xbf4:
                {
                    flag   = true;
                    bottom = (VerticalAlignment)obj2;
                    continue;
                }

                case 0xc62:
                {
                    this.class86_0.string_0 = Class576.smethod_83((Class16)obj2);
                    continue;
                }

                case 0x271a:
                {
                    this.class86_0.class580_0 = (Class580)obj2;
                    continue;
                }
                }
                this.class86_0.int_0--;
            }
        }
        this.method_2(A_0, bottom, horizontal, flag);
        this.method_4(A_0);
        this.method_3(A_0, (CellFormat)A_1);
    }
Ejemplo n.º 11
0
    internal VisitorAction method_2(TableRow A_0)
    {
        int num = 15;

        if (this.class422_0.method_23() != OpenDocumentWritingStage.MathML)
        {
            this.int_0 = 0;
            Class400 class2 = this.class422_0.method_18();
            if (this.method_12(A_0.OwnerTable))
            {
                return(VisitorAction.Continue);
            }
            this.method_13().method_2();
            if (this.class422_0.method_21())
            {
                this.class974_0.method_12(this.method_8(), BookmarkStart.b("䄴嘶嬸场堼ሾ㍀ⱂ㉄", num));
                if (((A_0.RowFormat.method_31(0x1018) != null) && (A_0.RowFormat.HeightType != TableRowHeightType.Auto)) || !A_0.RowFormat.IsBreakAcrossPages)
                {
                    class2.method_4(BookmarkStart.b("䘴䌶䀸场堼Ծ㕀≂❄⭆ⱈ晊㽌⁎♐繒╔╖㙘⭚㡜ⵞᕠ੢dᑦ", num));
                    if (A_0.RowFormat.method_31(0x1018) != null)
                    {
                        if (A_0.RowFormat.HeightType == TableRowHeightType.Exactly)
                        {
                            class2.method_40(BookmarkStart.b("䘴䌶䀸场堼Ծ㍀ⱂ㉄橆ⅈ⹊⑌⡎㥐❒", num), Class576.smethod_42((double)A_0.RowFormat.Height));
                        }
                        else if (A_0.RowFormat.HeightType == TableRowHeightType.AtLeast)
                        {
                            class2.method_40(BookmarkStart.b("䘴䌶䀸场堼Ծⱀ⩂⭄橆㭈⑊㩌扎㥐㙒㱔ざㅘ⽚", num), Class576.smethod_42((double)A_0.RowFormat.Height));
                        }
                    }
                    if (!A_0.RowFormat.IsBreakAcrossPages)
                    {
                        class2.method_40(BookmarkStart.b("匴堶̸债堼娾ㅀ湂ㅄ⡆⹈⹊㥌❎㑐⅒", num), BookmarkStart.b("吴嬶丸娺䐼䰾", num));
                    }
                    class2.method_6(BookmarkStart.b("䘴䌶䀸场堼Ծ㕀≂❄⭆ⱈ晊㽌⁎♐繒╔╖㙘⭚㡜ⵞᕠ੢dᑦ", num));
                }
                class2.method_6(BookmarkStart.b("䘴䌶䀸场堼Ծ㉀㝂㱄⭆ⱈ", num));
            }
            if (this.class422_0.method_22())
            {
                if (A_0.RowFormat.IsHeader)
                {
                    class2.method_4(BookmarkStart.b("䄴嘶嬸场堼Ծ㕀≂❄⭆ⱈ晊╌⩎ぐ㝒ご╖瑘⥚㉜⡞በ", num));
                }
                class2.method_4(BookmarkStart.b("䄴嘶嬸场堼Ծ㕀≂❄⭆ⱈ晊㽌⁎♐", num));
                class2.method_40(BookmarkStart.b("䄴嘶嬸场堼Ծ㉀㝂㱄⭆ⱈ晊⍌⹎㱐㙒", num), this.method_8());
            }
        }
        return(VisitorAction.Continue);
    }
Ejemplo n.º 12
0
    internal void method_0(Class400 A_0)
    {
        int num = 0x12;

        this.class411_0.method_0(A_0, BookmarkStart.b("䰷唹䰻", 0x12));
        this.class411_1.method_0(A_0, BookmarkStart.b("娷唹䠻䨽⼿⽁", 0x12));
        this.class411_2.method_0(A_0, BookmarkStart.b("吷弹娻䨽", 0x12));
        this.class411_3.method_0(A_0, BookmarkStart.b("䨷匹嬻嘽㐿", 0x12));
        if (this.bool_0)
        {
            A_0.method_40(BookmarkStart.b("䬷丹䔻刽┿硁㝃⹅⥇⹉⍋㥍", num), string.Format(BookmarkStart.b("ᬷਹ఻฽瀿牁瑃晅㍇穉ㅋ湍⭏捑⥓", num), Class576.smethod_42((double)this.float_0), Class576.smethod_42((double)this.float_0)));
        }
    }
Ejemplo n.º 13
0
    internal void method_1(Interface46 A_0, AttrCollection A_1, bool A_2)
    {
        bool     flag2;
        int      num    = 14;
        Class400 class2 = this.class422_0.method_18();

        this.class972_0 = new Class972();
        this.method_5(A_0, A_1, A_2);
        if (this.class972_0.class580_0 != null)
        {
            this.method_5(A_0, this.class972_0.class580_0.method_4(), A_2);
        }
        bool flag = (this.class422_0.method_15().Settings.bool_67&& (A_0 is Style)) && ((A_0 as Style).StyleIdentifier == StyleIdentifier.Normal);

        if (flag2 = ((((this.class972_0.int_0 > 0) || this.method_14()) || (this.method_12() || this.class972_0.bool_2)) || flag) || A_2)
        {
            class2.method_4(BookmarkStart.b("䜳䈵䄷嘹夻н〿⍁㙃❅⽇㡉ⵋ㹍㡏网⑓⑕㝗⩙㥛ⱝᑟୡţᕥ", num));
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㐿❁㱃㉅敇⭉㥋㩍㽏⅑⑓㝕㭗㽙", num), this.class972_0.string_14);
            class2.method_40(BookmarkStart.b("刳夵ȷ丹夻䘽㐿潁╃⩅ⅇⵉ≋", num), this.class972_0.string_2);
            class2.method_40(BookmarkStart.b("刳夵ȷ丹夻䘽㐿潁╃⩅ⅇⵉ≋捍㱏㍑❓≕", num), this.class972_0.string_3);
            object obj2  = (A_0 is Paragraph) ? this.class422_0.method_16().SectPr.method_31(0x92e) : null;
            bool   flag3 = (obj2 != null) && (((int)obj2) > 0);
            if (!this.method_14() && (!this.method_12() || flag3))
            {
                if ((this.method_12() && flag3) && (this.class972_0.string_0 == null))
                {
                    this.class972_0.string_0 = BookmarkStart.b("圳夵吷伹儻倽", num);
                }
            }
            else
            {
                this.class972_0.string_0 = BookmarkStart.b("䐳圵強弹", num);
            }
            class2.method_40(BookmarkStart.b("刳夵ȷ堹主嬽ℿ⥁楃⑅ⵇⱉ⍋㱍㕏", num), this.class972_0.string_0);
            class2.method_40(BookmarkStart.b("刳夵ȷ堹崻崽⬿╁㙃⥅㵇⑉⡋捍㍏㵑㡓㥕⩗", num), this.class972_0.string_1);
            class2.method_40(BookmarkStart.b("刳夵ȷ丹夻䘽㐿潁ⵃ⡅ⱇ⽉≋㩍", num), this.class972_0.string_6);
            if (this.class972_0.lineSpacingRule_0 == LineSpacingRule.AtLeast)
            {
                class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻нⰿ⭁⩃⍅敇≉⥋❍㝏㩑⁓筕㥗⹙煛㉝՟͡ᝣብ", num), this.class972_0.string_7);
            }
            else
            {
                class2.method_40(BookmarkStart.b("刳夵ȷ嘹唻倽┿潁ⱃ⍅ⅇⵉ⑋㩍", num), this.class972_0.string_7);
            }
            this.class972_0.class1048_0.method_0(class2);
            class2.method_40(BookmarkStart.b("刳夵ȷ儹夻嬽〿潁㍃⽅㱇≉態⁍㕏⩑⁓", num), this.class972_0.string_8);
            class2.method_40(BookmarkStart.b("刳夵ȷ儹夻嬽〿潁ぃ⥅⽇⽉㡋♍㕏⁑", num), this.class972_0.string_9);
            if (this.class972_0.bool_2 && flag)
            {
                class2.method_40(BookmarkStart.b("刳夵ȷ唹主丽⠿⍁⩃㕅", num), BookmarkStart.b("س", num));
                class2.method_40(BookmarkStart.b("刳夵ȷ䴹唻娽⼿㕁㝃", num), BookmarkStart.b("س", num));
            }
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㜿ぁⵃ㉅ⅇ⑉⭋捍㵏㵑こ㍕", num), this.class972_0.string_10);
            class2.method_40(BookmarkStart.b("䀳匵䀷丹ػ倽㔿⽁♃⍅㩇杉⁋❍㹏㝑❓", num), this.class972_0.string_11);
            class2.method_40(BookmarkStart.b("䀳匵䀷丹ػ刽⤿ⱁ⅃歅♇㽉⅋ⱍ㕏⁑", num), this.class972_0.string_12);
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㌿ⱁ╃㙅敇㹉⍋捍㱏㍑ⵓ㥕ⵗ⹙煛㥝቟ୡc", num), this.class972_0.string_13);
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н〿㝁⩃╅㱇㽉ⵋ㩍㥏㵑㩓筕⽗⡙㵛⹝", num), this.class972_0.string_15);
            class2.method_40(BookmarkStart.b("刳夵ȷ刹䔻丽⠿❁⩃❅㱇⍉⍋⁍絏㹑㕓㉕㱗㽙⹛獝͟ൡᅣࡥᱧ", num), this.class972_0.string_16);
            class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㘿❁㙃㉅ⅇ⥉ⵋ≍絏㍑㡓㽕㽗㑙", num), this.class972_0.string_17);
            if ((A_2 && (this.class422_0.method_15().Settings.float_0 != 0f)) && (this.class422_0.method_15().Settings.float_0 != 1134f))
            {
                class2.method_40(BookmarkStart.b("䜳䈵䄷嘹夻н㐿⍁♃歅㭇㹉⍋㹍絏㙑㵓╕ⱗ㭙㉛㵝՟", num), Class576.smethod_42((double)(this.class422_0.method_15().Settings.float_0 / 20f)));
            }
            if ((((this.class422_0.method_33() == 1) && (this.class422_0.method_16().PreviousSibling == null)) || this.class422_0.method_75()) && this.class422_0.method_16().SectPr.method_60())
            {
                this.class422_0.method_16().SectPr.method_86();
                class2.method_43(BookmarkStart.b("䜳䈵䄷嘹夻н〿⍁⍃⍅敇⑉㥋⍍㉏㝑♓", num), this.class422_0.method_16().SectPr.method_86());
            }
        }
        if (this.method_2(A_0, this.method_3(A_0, flag2) || flag2))
        {
            class2.method_6(BookmarkStart.b("䜳䈵䄷嘹夻н〿⍁㙃❅⽇㡉ⵋ㹍㡏网⑓⑕㝗⩙㥛ⱝᑟୡţᕥ", num));
        }
    }
Ejemplo n.º 14
0
    private void method_5(Interface46 A_0, AttrCollection A_1, bool A_2)
    {
        int            num   = 7;
        AttrCollection attrs = this.method_11(A_0, A_1, A_2);

        this.class972_0.class1048_0.bool_0 = false;
        ParagraphFormat paraPr = null;

        if (A_0 is Paragraph)
        {
            paraPr = (A_0 as Paragraph).Format;
        }
        else if (A_0 is Style)
        {
            paraPr = (A_0 as Style).ParaPr;
        }
        if (A_2)
        {
            this.class972_0.string_14 = BookmarkStart.b("䐬䬮吰尲刴䔶堸䬺唼ሾ⁀⽂㕄⽆⡈", num);
            this.class972_0.string_15 = BookmarkStart.b("䔬丮弰吲尴夶常", num);
        }
        HorizontalAlignment left = HorizontalAlignment.Left;
        bool flag = false;

        for (int i = 0; i < attrs.Count; i++)
        {
            int    num3;
            int    num5 = attrs.method_18(i);
            object obj2 = attrs.method_19(i);
            if (obj2 != null)
            {
                this.class972_0.int_0++;
                num3 = num5;
                if (num3 <= 0x4ba)
                {
                    if (num3 <= 0x442)
                    {
                        if (num3 <= 0x410)
                        {
                            switch (num3)
                            {
                            case 20:
                            {
                                Borders borders = obj2 as Borders;
                                if (!borders.Left.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_2.border_0 = borders.Left;
                                }
                                if (!borders.Right.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_3.border_0 = borders.Right;
                                }
                                if (!borders.Top.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_0.border_0 = borders.Top;
                                }
                                if (!borders.Bottom.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_1.border_0 = borders.Bottom;
                                }
                                if (borders.IsDefault || (borders == null))
                                {
                                    this.class972_0.int_0--;
                                }
                                continue;
                            }

                            case 0x3fc:
                            {
                                flag = true;
                                left = (HorizontalAlignment)obj2;
                                continue;
                            }
                            }
                            if (num3 != 0x410)
                            {
                                goto Label_09CD;
                            }
                            if ((bool)obj2)
                            {
                                this.class972_0.string_9 = BookmarkStart.b("䰬䌮䘰刲䰴䐶", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                        }
                        else
                        {
                            switch (num3)
                            {
                            case 0x41a:
                            {
                                if ((bool)obj2)
                                {
                                    this.class972_0.string_8 = BookmarkStart.b("䰬䌮䘰刲䰴䐶", num);
                                }
                                else
                                {
                                    this.class972_0.int_0--;
                                }
                                continue;
                            }

                            case 0x424:
                            {
                                this.class972_0.string_0 = ((bool)obj2) ? BookmarkStart.b("崬丮嘰嘲", num) : BookmarkStart.b("䰬娮䔰尲", num);
                                continue;
                            }
                            }
                            if (num3 != 0x442)
                            {
                                goto Label_09CD;
                            }
                            if (!((bool)obj2))
                            {
                                this.class972_0.string_15 = BookmarkStart.b("帬䘮尰䌲头制", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                        }
                    }
                    else if (num3 <= 0x47e)
                    {
                        switch (num3)
                        {
                        case 0x46a:
                        {
                            if (!((bool)obj2))
                            {
                                this.class972_0.string_11 = BookmarkStart.b("夬崮䐰嘲", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                            continue;
                        }

                        case 0x474:
                        {
                            if ((obj2 != null) && (((TabCollection)obj2).Count != 0))
                            {
                                this.class972_0.tabCollection_0 = (TabCollection)obj2;
                            }
                            this.class972_0.int_0--;
                            continue;
                        }
                        }
                        if (num3 != 0x47e)
                        {
                            goto Label_09CD;
                        }
                        if (((A_0 is Paragraph) && ((Paragraph)A_0).IsList) && (((Paragraph)A_0).ListFormat.method_31(0x47e) != null))
                        {
                            this.class972_0.int_0--;
                        }
                        else
                        {
                            this.class972_0.class1048_0.class411_3.string_3 = Class576.smethod_42((double)((float)obj2));
                            this.method_7(A_0);
                        }
                    }
                    else if (num3 <= 0x492)
                    {
                        if (num3 == 0x488)
                        {
                            if (((A_0 is Paragraph) && ((Paragraph)A_0).IsList) && (((Paragraph)A_0).ListFormat.method_31(0x488) != null))
                            {
                                this.class972_0.int_0--;
                            }
                            else
                            {
                                this.class972_0.class1048_0.class411_2.string_3 = Class576.smethod_42((double)((float)obj2));
                                this.method_7(A_0);
                            }
                            this.class972_0.int_1 = (int)((float)obj2);
                        }
                        else
                        {
                            if (num3 != 0x492)
                            {
                                goto Label_09CD;
                            }
                            if ((A_0 is Paragraph) && (((float)obj2) < 0f))
                            {
                                if ((A_0 is Paragraph) && !(A_0 as Paragraph).IsList)
                                {
                                    this.class972_0.string_6 = Class576.smethod_42((double)((float)obj2));
                                }
                                else
                                {
                                    this.class972_0.int_0--;
                                }
                            }
                            else
                            {
                                this.class972_0.string_6 = Class576.smethod_42((double)((float)obj2));
                            }
                        }
                    }
                    else if (num3 != 0x4b0)
                    {
                        if (num3 != 0x4ba)
                        {
                            goto Label_09CD;
                        }
                        this.class972_0.bool_0 = (bool)obj2;
                        this.class972_0.int_0--;
                    }
                    else
                    {
                        this.class972_0.class1048_0.class411_0.string_3 = Class576.smethod_42((double)((float)obj2));
                    }
                }
                else
                {
                    if (num3 > 0x5aa)
                    {
                        goto Label_0837;
                    }
                    if (num3 > 0x4d8)
                    {
                        goto Label_073E;
                    }
                    switch (num3)
                    {
                    case 0x4c4:
                    {
                        if (!(A_0 is Paragraph))
                        {
                            goto Label_0717;
                        }
                        Paragraph paragraph = (Paragraph)A_0;
                        if ((paragraph.NextSibling == null) || !(paragraph.NextSibling is Paragraph))
                        {
                            goto Label_06E9;
                        }
                        Paragraph nextSibling = (Paragraph)paragraph.NextSibling;
                        object    obj3        = nextSibling.Format.method_31(0x4b0);
                        if ((obj3 != null) && nextSibling.Format.BeforeAutoSpacing)
                        {
                            obj3 = 280f;
                        }
                        if ((obj3 != null) && (((float)obj3) > ((float)obj2)))
                        {
                            this.class972_0.int_0--;
                        }
                        else
                        {
                            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
                            this.method_7(A_0);
                        }
                        continue;
                    }

                    case 0x4ce:
                    {
                        this.class972_0.bool_1 = (bool)obj2;
                        this.class972_0.int_0--;
                        continue;
                    }
                    }
                    if (num3 != 0x4d8)
                    {
                        goto Label_09CD;
                    }
                    this.class972_0.string_14 = ((bool)obj2) ? BookmarkStart.b("䐬䬮吰尲刴䔶堸䬺唼ሾ⁀⽂㕄⽆⡈", num) : BookmarkStart.b("䌬䀮弰嘲", num);
                }
            }
            continue;
Label_06E9:
            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
            this.method_7(A_0);
            continue;
Label_0717:
            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
            continue;
Label_073E:
            if (num3 <= 0x500)
            {
                if (num3 != 0x4ec)
                {
                    if (num3 != 0x500)
                    {
                        goto Label_09CD;
                    }
                    this.class972_0.int_2 = (byte)obj2;
                }
                else if ((bool)obj2)
                {
                    this.class972_0.string_13 = BookmarkStart.b("夬崮䐰嘲", num);
                }
                else
                {
                    this.class972_0.int_0--;
                }
            }
            else if (num3 != 0x582)
            {
                if (num3 != 0x5aa)
                {
                    goto Label_09CD;
                }
                this.class972_0.string_4 = ((int)obj2).ToString();
                this.class972_0.int_0--;
            }
            else if ((bool)obj2)
            {
                this.class972_0.string_16 = BookmarkStart.b("䌬䀮ᰰ弲尴娶倸伺", num);
            }
            else
            {
                this.class972_0.int_0--;
            }
            continue;
Label_0837:
            if (num3 <= 0x5dc)
            {
                switch (num3)
                {
                case 0x5b4:
                {
                    this.class972_0.string_1 = Class576.smethod_83((Class16)obj2);
                    if (this.class972_0.string_1 == null)
                    {
                        this.class972_0.int_0--;
                    }
                    continue;
                }

                case 0x5be:
                {
                    if ((bool)obj2)
                    {
                        this.class972_0.bool_2 = true;
                    }
                    else
                    {
                        this.class972_0.bool_2 = false;
                        this.class972_0.int_0--;
                    }
                    continue;
                }
                }
                if (num3 != 0x5dc)
                {
                    goto Label_09CD;
                }
                if (attrs.HasValue(0x5aa))
                {
                    this.class972_0.string_5 = Class576.smethod_35(obj2);
                }
                this.class972_0.int_0--;
                continue;
            }
            if (num3 <= 0x618)
            {
                if (num3 == 0x5e6)
                {
                    this.class972_0.string_17 = Class922.smethod_42((BaselineAlignment)obj2);
                    if (this.class972_0.string_17 == null)
                    {
                        this.class972_0.int_0--;
                    }
                }
                else
                {
                    if (num3 != 0x618)
                    {
                        goto Label_09CD;
                    }
                    if ((bool)obj2)
                    {
                        this.class972_0.string_10 = BookmarkStart.b("弬䌮ᰰ䜲圴", num);
                    }
                    else
                    {
                        this.class972_0.string_10 = BookmarkStart.b("䄬崮ᰰ䜲圴", num);
                    }
                }
                continue;
            }
            switch (num3)
            {
            case 0x672:
            {
                float           num4 = Math.Abs((float)obj2);
                LineSpacingRule rule = (LineSpacingRule)attrs.method_31(0x677);
                this.class972_0.lineSpacingRule_0 = rule;
                if (((A_0 is Paragraph) && ((Paragraph)A_0).Format.HasKey(0x532)) || (!(A_0 is Paragraph) && !(A_0 is Style)))
                {
                    goto Label_0A84;
                }
                this.class972_0.string_7 = Class576.smethod_9(num4, rule);
                continue;
            }

            case 0x271a:
            {
                this.class972_0.class580_0 = (Class580)obj2;
                this.class972_0.int_0--;
                continue;
            }
            }
Label_09CD:
            this.class972_0.int_0--;
            continue;
Label_0A84:
            this.class972_0.int_0--;
        }
        this.method_8(A_0);
        this.method_9(A_0, paraPr, left, flag);
        if (this.class972_0.bool_0 && (this.class972_0.class1048_0.class411_0.string_3 != null))
        {
            if ((A_0 is Paragraph) && (((Paragraph)A_0).PreviousSibling == null))
            {
                this.class972_0.class1048_0.class411_0.string_3 = null;
                this.class972_0.int_0--;
            }
            else
            {
                this.class972_0.class1048_0.class411_0.string_3 = Class576.smethod_42(280.0);
            }
        }
        if (this.class972_0.bool_1 && (this.class972_0.class1048_0.class411_1.string_3 != null))
        {
            if ((A_0 is Paragraph) && (((Paragraph)A_0).NextSibling == null))
            {
                this.class972_0.class1048_0.class411_1.string_3 = null;
                this.class972_0.int_0--;
            }
            else
            {
                this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42(280.0);
            }
        }
        this.method_6(A_0, paraPr);
    }
Ejemplo n.º 15
0
    private void method_4(ShapeBase A_0)
    {
        int num = 13;

        if (A_0.IsTopLevel && (A_0 is ShapeObject))
        {
            ShapeObject obj2 = (ShapeObject)A_0;
            if ((((this.class87_0.double_0 != 0.0) || (this.class87_0.double_1 != 0.0)) || ((this.class87_0.double_2 != 0.0) || (this.class87_0.double_3 != 0.0))) && obj2.HasImageBytes)
            {
                ImageSize size = new ImageSize((int)obj2.ImageData.Size.Width, (int)obj2.ImageData.Size.Height);
                if (size.IsValid)
                {
                    this.class87_0.string_7 = string.Format(BookmarkStart.b("䄲倴吶䴸ጺ䘼༾㱀捂㹄癆㑈歊㙌絎ⱐ獒⹔摖⑘牚", num), new object[] { Class576.smethod_42(this.class87_0.double_2 * size.HeightPixels), Class576.smethod_42(this.class87_0.double_1 * size.WidthPixels), Class576.smethod_42(this.class87_0.double_3 * size.HeightPixels), Class576.smethod_42(this.class87_0.double_0 * size.WidthPixels) });
                    this.class87_0.int_0++;
                }
            }
        }
    }
Ejemplo n.º 16
0
    internal bool method_1(bool A_0, bool A_1)
    {
        double num4;
        int    num = 10;
        double d   = A_1 ? 0.0 : double.NaN;

        if (this.border_0 != null)
        {
            double num2 = Class576.smethod_44((double)this.border_0.Space);
            if (A_1)
            {
                d = num2;
                if (double.IsNaN(this.double_2))
                {
                    num4 = num2 - Class576.smethod_44((double)this.border_0.LineWidth);
                }
                else if (!double.IsNaN(this.double_0))
                {
                    num4 = (this.double_0 - num2) - Class576.smethod_44((double)this.border_0.LineWidth);
                }
                else if (!double.IsNaN(this.double_1))
                {
                    num4 = (this.double_1 - num2) - Class576.smethod_44((double)this.border_0.LineWidth);
                }
                else
                {
                    num4 = (this.double_2 - num2) - Class576.smethod_44((double)this.border_0.LineWidth);
                }
                if (this.bool_0)
                {
                    double num5 = num4;
                    num4 = d;
                    d    = num5;
                }
            }
            else
            {
                if (double.IsNaN(this.double_2))
                {
                    d = (num2 == 0.0) ? double.NaN : num2;
                }
                else
                {
                    d = ((this.double_2 - num2) == 0.0) ? double.NaN : (this.double_2 - num2);
                }
                num4 = this.double_2;
            }
            if (Class922.smethod_34(this.border_0.BorderType) == BookmarkStart.b("启崱䄳吵吷弹", num))
            {
                string str = Class576.smethod_42(Class576.smethod_59(this.border_0.BorderType, (int)this.border_0.LineWidth) / 3.0);
                this.string_1 = string.Format(BookmarkStart.b("䬯ȱ䤳ᘵ䌷ହ䄻ḽ㬿灁㥃", num), str, str, str);
            }
            this.string_0 = Class576.smethod_58(this.border_0, A_0);
        }
        else if (!double.IsNaN(this.double_0))
        {
            num4 = this.double_0;
        }
        else if (!double.IsNaN(this.double_1))
        {
            num4 = this.double_1;
        }
        else
        {
            num4 = this.double_2;
        }
        if (!double.IsNaN(num4) && (num4 >= 0.0))
        {
            this.string_3 = Class576.smethod_54(num4);
        }
        if (!double.IsNaN(d) && (d >= 0.0))
        {
            this.string_2 = Class576.smethod_54(d);
        }
        if ((this.string_2 == null) && (this.string_0 == null))
        {
            return(this.string_3 != null);
        }
        return(true);
    }