Beispiel #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));
    }
Beispiel #2
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));
        }
    }
Beispiel #3
0
    private static double smethod_1(double A_0, NMLUnit A_1, NMLUnit A_2)
    {
        int    num  = 4;
        double num2 = A_0;

        if (A_1 == A_2)
        {
            return(num2);
        }
        switch (A_1)
        {
        case NMLUnit.Pica:
            num2 *= 12.0;
            break;

        case NMLUnit.Point:
            break;

        case NMLUnit.Inch:
            num2 = Class969.smethod_13(A_0);
            break;

        case NMLUnit.Milimiter:
            num2 = Class969.smethod_15(A_0);
            break;

        case NMLUnit.Centimeter:
            num2 = Class969.smethod_22(A_0);
            break;

        default:
            throw new InvalidOperationException(BookmarkStart.b("缩䈫䔭帯崱䌳堵ᠷ伹刻圽㘿❁㙃㕅⥇♉汋⍍㕏㍑❓⍕⩗㽙牛", num));
        }
        return(num2 * smethod_2(A_2));
    }
    public static Class1044 smethod_3(int A_0, int A_1, int A_2, int A_3, int A_4, int A_5)
    {
        int    num  = A_2 - A_0;
        int    num2 = A_3 - A_1;
        double num3 = (A_4 != 0) ? (((double)num) / Class969.smethod_49(A_4)) : 0.0;

        return(new Class1044(A_0, A_1, num, num2, num3, (A_5 != 0) ? (((double)num2) / Class969.smethod_49(A_5)) : 0.0));
    }
 internal void method_46()
 {
     if (this.IsHorizontalRule && this.ShapePr.HasKey(0x395))
     {
         this.method_39(Class969.smethod_32((int)this.GetDirectShapeAttribute(0x395)));
         this.RemoveShapeAttribute(0x395);
     }
 }
Beispiel #6
0
    public void method_5(double A_0)
    {
        int num = 0x13;

        if (A_0 < 0.0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("伸娺儼䨾⑀", num));
        }
        this.method_17(130, Class969.smethod_40(A_0));
    }
Beispiel #7
0
    public void method_3(double A_0)
    {
        int num = 7;

        if (A_0 < 0.0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("嬬丮崰䘲倴", num));
        }
        this.method_17(0x83, Class969.smethod_40(A_0));
    }
Beispiel #8
0
    public void method_1(double A_0)
    {
        int num = 0x12;

        if (A_0 < 0.0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("丷嬹倻䬽┿", num));
        }
        this.method_17(0x81, Class969.smethod_40(A_0));
    }
Beispiel #9
0
        private void method_1(double A_0, int A_1)
        {
            int num = 15;

            if ((A_0 < 0.0) || (A_0 > 1.0))
            {
                throw new ArgumentOutOfRangeException(BookmarkStart.b("䌴嘶唸为堼", num));
            }
            this.method_3(A_1, Class969.smethod_71(A_0));
        }
Beispiel #10
0
    private void method_14(int A_0, double A_1)
    {
        int num = 2;

        if ((A_1 < -1.0) || (A_1 > 1.0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("帧䬩䀫嬭唯", num));
        }
        this.method_31(A_0, Class969.smethod_71(A_1));
    }
Beispiel #11
0
    public void method_23(double A_0)
    {
        int num = 9;

        if ((A_0 < 0.0) || (A_0 > 1.0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("央倰弲䀴制", num));
        }
        this.method_31(0x108, Class969.smethod_71(smethod_3(A_0)));
    }
Beispiel #12
0
    public void method_3(double A_0)
    {
        int num = 0x10;

        if (A_0 < 0.0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䀵夷嘹䤻嬽", num));
        }
        this.method_40(0x1cb, Class969.smethod_40(A_0));
    }
Beispiel #13
0
    public void method_35(double A_0)
    {
        int num = 0x11;

        if ((A_0 < 0.0) || (A_0 > 1.0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䄶堸场䠼娾", num));
        }
        this.method_40(0x1c1, Class969.smethod_71(A_0));
    }
Beispiel #14
0
    public void method_21(double A_0)
    {
        int num = 0x10;

        if ((A_0 < 0.0) || (A_0 > 1.0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䀵夷嘹䤻嬽", num));
        }
        this.method_31(0x109, Class969.smethod_71(smethod_1(A_0)));
    }
Beispiel #15
0
    internal static string smethod_14(int A_0)
    {
        int    num2 = 8;
        double a    = Class969.smethod_68(A_0);

        if (a == Math.Round(a))
        {
            return(Class1041.smethod_8((int)a));
        }
        return(Class1041.smethod_8(A_0) + BookmarkStart.b("䠭启", num2));
    }
Beispiel #16
0
    internal static spr⊗ smethod_1(sprᮃ A_0, SizeF A_1, Class378 A_2)
    {
        Size size = Class969.smethod_5(A_1, A_2.method_0(), (double)A_2.method_1());
        spr⊗ r⊗   = new spr⊗(size.Width, size.Height, A_2.method_1(), A_2.method_1(), A_2.method_5());

        using (spr⤿ r⤿ = new spr⤿(r⊗))
        {
            smethod_3(A_0, r⤿, size, A_2);
        }
        r⊗.ᜀ(new spr⇼(A_2.method_2(), A_2.method_3(), A_2.method_4()));
        return(r⊗);
    }
Beispiel #17
0
 public double method_3()
 {
     if (this.method_41())
     {
         return(this.method_39().method_3());
     }
     if (!this.method_6())
     {
         return(Class969.smethod_29(this.int_3));
     }
     return((double)this.int_3);
 }
Beispiel #18
0
    private static int smethod_7(ShapeBase A_0)
    {
        object directShapeAttribute = A_0.GetDirectShapeAttribute(0x147);

        if (directShapeAttribute != null)
        {
            int    num  = (int)directShapeAttribute;
            double num2 = ((double)num) / ((double)A_0.CoordSizeWidth);
            return(Class969.smethod_71(num2));
        }
        return(0x2aab);
    }
Beispiel #19
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));
        }
    }
Beispiel #20
0
    public static Class1044 smethod_28(Stream A_0)
    {
        BinaryReader reader = new BinaryReader(A_0);

        reader.ReadUInt16();
        int num  = Class336.smethod_4(reader.ReadUInt16());
        int num2 = Class336.smethod_4(reader.ReadUInt16());
        int num3 = Class336.smethod_4(reader.ReadUInt16());
        int num4 = Class336.smethod_4(reader.ReadUInt16());
        int num5 = Class969.smethod_40((double)(num4 - num2));
        int num6 = Class969.smethod_40((double)(num3 - num));

        return(Class1044.smethod_3(num2, num, num4, num3, num5, num6));
    }
Beispiel #21
0
    internal static string smethod_8(Hashtable A_0)
    {
        StringBuilder builder = new StringBuilder();

        for (int i = 0x81; i <= 0x84; i++)
        {
            if (A_0[i] != null)
            {
                builder.Append(smethod_20(Class969.smethod_42((int)A_0[i])));
            }
            builder.Append(',');
        }
        return(builder.ToString().TrimEnd(new char[] { ',' }));
    }
Beispiel #22
0
 private static void smethod_3(ShapeObject A_0, Class98 A_1)
 {
     if (((((A_0.Height != 0.0) && (A_0.Width != 0.0)) && (A_1 != null)) && (((A_1.method_47() != 0.0) || (A_1.method_49() != 0.0)) || ((A_1.method_53() != 0.0) || (A_1.method_51() != 0.0)))) && A_0.HasImageBytes)
     {
         ImageSize size = new ImageSize((int)A_0.ImageData.Size.Width, (int)A_0.ImageData.Size.Height);
         if (size.IsValid)
         {
             A_0.ShapePr.SetAttr(0x103, Class969.smethod_71(A_1.method_47() / ((double)size.WidthPixels)));
             A_0.ShapePr.SetAttr(0x100, Class969.smethod_71(A_1.method_49() / ((double)size.HeightPixels)));
             A_0.ShapePr.SetAttr(0x102, Class969.smethod_71(A_1.method_51() / ((double)size.WidthPixels)));
             A_0.ShapePr.SetAttr(0x101, Class969.smethod_71(A_1.method_53() / ((double)size.WidthPixels)));
         }
     }
 }
Beispiel #23
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);
        }
    }
Beispiel #24
0
    private static spr⇼ smethod_7(DocPicture A_0)
    {
        ImageColorModeCore core = 0;

        if (A_0.BiLevel)
        {
            core = 2;
        }
        else if (A_0.GrayScale)
        {
            core = 1;
        }
        float num = (float)Class1077.smethod_0((double)Class969.smethod_69((int)A_0.GetShapeAttribute(0x109)));

        return(new spr⇼(core, num, (float)Class1077.smethod_2((double)Class969.smethod_69((int)A_0.GetShapeAttribute(0x108)))));
    }
Beispiel #25
0
    private void method_32(double A_0, bool A_1)
    {
        int    num  = 0x10;
        double num2 = Class1133.smethod_2(A_0, 0.0, 31.0);

        if ((num2 != A_0) && A_1)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("娵儷吹夻椽⤿♁ぃ⹅", num));
        }
        this.method_43();
        this.method_27(this.method_6() ? Class1133.smethod_5(num2) : Class969.smethod_28(num2));
        if ((num2 > 0.0) && (this.method_1() == BorderStyle.None))
        {
            this.method_2(BorderStyle.Single);
        }
    }
Beispiel #26
0
    internal Class890(Class672 A_0)
    {
        ShapeObject obj2 = A_0.method_28();

        this.float_0 = (float)Class969.smethod_42(obj2.ExtrusionForeDepth);
        this.float_1 = (float)Class969.smethod_42(obj2.ExtrusionBackDepth);
        this.float_2 = (float)Class969.smethod_68(obj2.ExtrusionSkewAngle);
        SizeF ef = A_0.method_32();

        this.pointF_0 = new PointF((ef.Width / 2f) + (ef.Width * ((float)Class969.smethod_68(obj2.ViewpointOriginX))), (ef.Height / 2f) + (ef.Height * ((float)Class969.smethod_68(obj2.ViewpointOriginY))));
        this.float_3  = (float)Class969.smethod_42(obj2.ViewpointX);
        this.float_4  = (float)Class969.smethod_42(obj2.ViewpointY);
        this.float_5  = (float)Class969.smethod_42(obj2.ViewpointZ);
        this.float_6  = (float)Class969.smethod_68(-obj2.TDRotationAngleX);
        this.float_7  = (float)Class969.smethod_68(obj2.TDRotationAngleY);
        this.pointF_1 = new PointF(ef.Width / 2f, ef.Height / 2f);
    }
Beispiel #27
0
    internal static void smethod_1(ShapeBase A_0, double A_1, double A_2, double A_3, double A_4)
    {
        double num = A_1;

        if (A_1 > A_2)
        {
            A_1 = A_2;
            A_2 = num;
        }
        num = A_3;
        if (A_3 > A_4)
        {
            A_3 = A_4;
            A_4 = num;
        }
        smethod_2(A_0, Class969.smethod_33(A_1), Class969.smethod_33(A_3), Class969.smethod_33(A_2 - A_1), Class969.smethod_33(A_4 - A_3));
    }
Beispiel #28
0
    internal double method_8()
    {
        int    num = 12;
        string key = this.string_1;

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_172 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(6);
                dictionary1.Add("", 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);
                Class1160.dictionary_172 = dictionary1;
            }
            if (Class1160.dictionary_172.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                    return(this.double_0);

                case 1:
                    return(Class969.smethod_8(this.double_0));

                case 2:
                    return(this.double_0);

                case 3:
                    return(Class969.smethod_13(this.double_0));

                case 4:
                    return(Class969.smethod_15(this.double_0));

                case 5:
                    return(Class969.smethod_22(this.double_0));
                }
            }
        }
        return(0.0);
    }
Beispiel #29
0
    private static void smethod_2(sprᮃ A_0, SizeF A_1, Class378 A_2, Stream A_3)
    {
        int      num      = 12;
        Bitmap   bitmap   = null;
        Graphics graphics = null;
        IntPtr   zero     = IntPtr.Zero;
        Metafile metafile = null;

        try
        {
            bitmap = new Bitmap(1, 1);
            bitmap.SetResolution(96f, 96f);
            graphics = spr᪻.ᜀ(bitmap);
            zero     = graphics.GetHdc();
            Size size = Class969.smethod_5(A_1, A_2.method_0(), 96.0);
            metafile = new Metafile(A_3, zero, new RectangleF(0f, 0f, (float)size.Width, (float)size.Height), MetafileFrameUnit.Pixel, A_2.method_8());
            using (spr⤿ r⤿ = new spr⤿(metafile))
            {
                smethod_3(A_0, r⤿, size, A_2);
            }
        }
        finally
        {
            if (metafile != null)
            {
                metafile.Dispose();
            }
            if ((zero != IntPtr.Zero) && (graphics != null))
            {
                graphics.ReleaseHdc(zero);
            }
            if (graphics != null)
            {
                graphics.Dispose();
            }
            if (bitmap != null)
            {
                bitmap.Dispose();
            }
        }
        if (A_3 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䄱䀳䐵崷嬹儻", num));
        }
    }
Beispiel #30
0
 internal void method_44()
 {
     Class891[] classArray = (Class891[])this.ShapePr.method_31(0x145);
     PointF[]   tfArray    = smethod_0(classArray);
     if (tfArray != null)
     {
         RectangleF ef = this.method_45(tfArray);
         this.Width  = Class969.smethod_33((double)ef.Width);
         this.Height = Class969.smethod_33((double)ef.Height);
         this.Left   = Class969.smethod_33((double)ef.X);
         this.Top    = Class969.smethod_33((double)ef.Y);
         for (int i = 0; i < classArray.Length; i++)
         {
             classArray[i] = new Class891(classArray[i].method_0().method_1() - ((int)ef.X), classArray[i].method_1().method_1() - ((int)ef.Y));
         }
         this.SetShapeAttribute(0x145, classArray);
     }
 }