コード例 #1
0
 internal static void smethod_6(ShapeObject A_0, Class98 A_1)
 {
     A_0.SetShapeAttr(0x81, Class1133.smethod_5(A_1.method_39().method_4() * 12700.0));
     A_0.SetShapeAttr(130, Class1133.smethod_5(A_1.method_39().method_0() * 12700.0));
     A_0.SetShapeAttr(0x83, Class1133.smethod_5(A_1.method_39().method_6() * 12700.0));
     A_0.SetShapeAttr(0x84, Class1133.smethod_5(A_1.method_39().method_2() * 12700.0));
 }
コード例 #2
0
    private static void smethod_8(Class17 A_0, Class92 A_1, int A_2, int A_3, Class472 A_4, double A_5, double A_6, bool A_7)
    {
        Border border = A_0.method_49()[A_2] as Border;

        if (A_4 != null)
        {
            border.BorderType = A_4.method_2();
            border.Color      = A_4.method_4();
            border.LineWidth  = (float)A_4.method_0();
        }
        if ((A_5 > double_0) || (A_0.method_94() == PageBorderOffsetFrom.PageEdge))
        {
            if ((A_6 <= double_0) && A_7)
            {
                A_5 = A_6;
                A_6 = A_5;
                A_0.method_95(PageBorderOffsetFrom.PageEdge);
            }
            else
            {
                A_5 = double_0;
            }
        }
        border.Space  = Class1133.smethod_5(A_5);
        border.Shadow = A_1.method_16();
        if (A_7)
        {
            A_0.method_156(A_3, ((float)(A_6 + A_5)) + ((A_4 == null) ? 0f : border.LineWidth));
        }
    }
コード例 #3
0
 internal int method_11()
 {
     if (this.method_4())
     {
         return(Class1133.smethod_5(this.double_0));
     }
     return(0);
 }
コード例 #4
0
 internal static string smethod_19(double A_0, bool A_1)
 {
     if (A_1)
     {
         return(smethod_20(A_0));
     }
     return(Class1041.smethod_8(Class1133.smethod_5(A_0)));
 }
コード例 #5
0
    public Rectangle method_4(Rectangle A_0)
    {
        double num  = A_0.Left + (A_0.Width * Math.Max(0.0, this.double_1));
        double num2 = A_0.Left + (A_0.Width * (1.0 - Math.Max(0.0, this.double_2)));
        double num3 = A_0.Top + (A_0.Height * Math.Max(0.0, this.double_3));
        double num4 = A_0.Top + (A_0.Height * (1.0 - Math.Max(0.0, this.double_0)));

        return(Rectangle.FromLTRB(Class1133.smethod_5(num), Class1133.smethod_5(num3), Class1133.smethod_5(num2), Class1133.smethod_5(num4)));
    }
コード例 #6
0
 public static int smethod_71(double A_0)
 {
     if (A_0 > 32767.999984741211)
     {
         A_0 = 32767.999984741211;
     }
     else if (A_0 < -32768.999984741211)
     {
         A_0 = -32768.999984741211;
     }
     return(Class1133.smethod_5(A_0 * 65536.0));
 }
コード例 #7
0
 internal int method_12()
 {
     if (!this.method_3())
     {
         return(0);
     }
     if (this.method_0())
     {
         return(Class1133.smethod_5(this.double_0 * 65536.0));
     }
     return(Class1133.smethod_5(this.double_0));
 }
コード例 #8
0
    internal static Class1031 smethod_1(Class472 A_0, double A_1, int A_2)
    {
        Class1031 class2 = new Class1031();

        if (A_0 != null)
        {
            class2.method_2(A_0.method_2());
            class2.method_11(A_0.method_4());
            class2.method_27(Class576.smethod_60(class2.method_1(), A_0.method_0()));
        }
        class2.method_15((double)Class1133.smethod_5((A_1 > 31.0) ? 31.0 : A_1));
        return(class2);
    }
コード例 #9
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);
        }
    }
コード例 #10
0
    internal int method_10()
    {
        int    num = 0x10;
        string str = this.string_1;

        if (str != null)
        {
            if (str == BookmarkStart.b("倵尷", num))
            {
                return(Class1133.smethod_5(this.double_0));
            }
            if (str == "")
            {
                return(Class1133.smethod_5(this.double_0 * 65536.0));
            }
        }
        return(0);
    }
コード例 #11
0
 public static int smethod_59(double A_0)
 {
     return(Class1133.smethod_5(A_0 * 500.0));
 }
コード例 #12
0
 public static int smethod_53(double A_0, double A_1)
 {
     return(Class1133.smethod_5((A_1 * A_0) / 72000.0));
 }
コード例 #13
0
 public static int smethod_39(int A_0)
 {
     return(Class1133.smethod_5(A_0 * 635.0));
 }
コード例 #14
0
 public static int smethod_38(int A_0)
 {
     return(Class1133.smethod_5(((double)A_0) / 635.0));
 }
コード例 #15
0
 public static int smethod_37(double A_0)
 {
     return(Class1133.smethod_5(A_0 * 1440.0));
 }
コード例 #16
0
 public static int smethod_16(double A_0)
 {
     return(Class1133.smethod_5(A_0 * 56.692913385826778));
 }
コード例 #17
0
 public static int smethod_11(double A_0, double A_1)
 {
     return(Class1133.smethod_5((A_0 / A_1) * 1440.0));
 }
コード例 #18
0
 public static double smethod_72(double A_0)
 {
     return(Class1133.smethod_0(A_0 / 60000.0));
 }
コード例 #19
0
 public void method_7(double A_0)
 {
     this.double_2 = Class1133.smethod_2(A_0, 0.0, 1.0);
 }
コード例 #20
0
 internal int method_7()
 {
     return(Class1133.smethod_5(this.method_8() * 12700.0));
 }
コード例 #21
0
    internal void method_6(bool A_0, bool A_1)
    {
        int num  = 11;
        int num2 = this.class89_0.method_8();

        if (!A_0)
        {
            num2 = this.class89_0.method_9();
        }
        else if (A_1)
        {
            num2 = this.class89_0.method_10();
        }
        for (int i = 0; i < num2; i++)
        {
            Class96 class2;
            Class91 class4;
            if (!A_0)
            {
                class4 = this.class89_0.method_7(i);
            }
            else
            {
                class4 = A_1 ? this.class89_0.method_6(i) : this.class89_0.method_5(i);
            }
            if (!(class4 is Class96))
            {
                continue;
            }
            Class96 class3 = class4 as Class96;
            if (((class3.method_17() <= 0.0) || (class3.method_13() == null)) || class3.method_13().HasValue(190))
            {
                continue;
            }
            int    fontSize = -1;
            string str      = class3.method_8();
            goto Label_0129;
Label_00C5:
            if ((class2.method_13() != null) && class2.method_13().HasValue(190))
            {
                fontSize = (int)class2.method_13().FontSize;
                str      = null;
            }
            else
            {
                str = (str == BookmarkStart.b("戰䜲吴夶崸娺似嬾", num)) ? null : class2.method_8();
            }
            if (!Class567.smethod_16(class2.method_0()) || (fontSize != -1))
            {
                goto Label_0149;
            }
Label_0129:
            class2 = (Class96)this.class89_0.method_4(str, class3.method_4());
            if (class2 != null)
            {
                goto Label_00C5;
            }
Label_0149:
            if (fontSize == -1)
            {
                fontSize = 20;
            }
            class3.method_13().SetAttr(190, (float)Class1133.smethod_5((fontSize * class3.method_17()) / 100.0));
        }
    }
コード例 #22
0
 internal bool method_43()
 {
     Class891[] classArray = (Class891[])this.ShapePr.method_31(0x145);
     return((((this.ShapeType == Spire.Doc.Documents.ShapeType.NonPrimitive) && Class1133.smethod_7(this.Width)) && (Class1133.smethod_7(this.Height) && (classArray != null))) && (classArray.Length > 0));
 }
コード例 #23
0
 public static double smethod_73(double A_0)
 {
     return(Class1133.smethod_1(A_0) * 60000.0);
 }
コード例 #24
0
 public static int smethod_24(int A_0)
 {
     return(Class1133.smethod_5((A_0 * 240.0) / 100.0));
 }
コード例 #25
0
 public static int smethod_12(double A_0, double A_1, double A_2)
 {
     return(Class1133.smethod_5((A_0 * A_2) / A_1));
 }
コード例 #26
0
 public static int smethod_28(double A_0)
 {
     return(Class1133.smethod_5(A_0 * 8.0));
 }
コード例 #27
0
 public static int smethod_17(double A_0)
 {
     return(Class1133.smethod_5(smethod_18(A_0)));
 }
コード例 #28
0
 public static int smethod_3(double A_0, double A_1)
 {
     return(Class1133.smethod_5(smethod_1(A_0, A_1)));
 }
コード例 #29
0
    internal static int[] smethod_1(ShapeObject A_0)
    {
        Class456[] formulas = A_0.Formulas;
        if ((formulas == null) || (formulas.Length == 0))
        {
            return(null);
        }
        int[] numArray = new int[formulas.Length];
        for (int i = 0; i < formulas.Length; i++)
        {
            int      num3;
            Class456 class2 = formulas[i];
            int      num2   = class2.method_0() ? smethod_0(A_0, numArray, class2.int_1) : class2.int_1;
            int      num    = class2.method_1() ? smethod_0(A_0, numArray, class2.int_2) : class2.int_2;
            int      num4   = class2.method_2() ? smethod_0(A_0, numArray, class2.int_3) : class2.int_3;
            switch (class2.operation_0)
            {
            case Operation.Sum:
                num3 = (num2 + num) - num4;
                break;

            case Operation.Prod:
                num3 = num2 * num;
                if (num4 != 0)
                {
                    num3 /= num4;
                }
                break;

            case Operation.Mid:
                num3 = (num2 + num) / 2;
                break;

            case Operation.Abs:
                num3 = Math.Abs(num2);
                break;

            case Operation.Min:
                num3 = Math.Min(num2, num);
                break;

            case Operation.Max:
                num3 = Math.Max(num2, num);
                break;

            case Operation.If:
                num3 = (num2 > 0) ? num : num4;
                break;

            case Operation.Mod:
                num3 = (int)Math.Sqrt((double)(((num2 * num2) + (num * num)) + (num4 * num4)));
                break;

            case Operation.Atan2:
                num3 = (int)(Class1133.smethod_1(Math.Atan2((double)num, (double)num2)) * 65536.0);
                break;

            case Operation.Sin:
                num3 = (int)(num2 * Math.Sin(Class1133.smethod_0((double)(((float)num) / 65536f))));
                break;

            case Operation.Cos:
                num3 = (int)(num2 * Math.Cos(Class1133.smethod_0((double)(((float)num) / 65536f))));
                break;

            case Operation.CosAtan2:
                num3 = (int)(num2 * Math.Cos(Math.Atan2((double)num4, (double)num)));
                break;

            case Operation.SinAtan2:
                num3 = (int)(num2 * Math.Sin(Math.Atan2((double)num4, (double)num)));
                break;

            case Operation.Sqrt:
                num3 = (int)Math.Floor(Math.Sqrt((double)num2));
                break;

            case Operation.SumAngle:
                num3 = (num2 + (num * 0x10000)) - (num4 * 0x10000);
                break;

            case Operation.Ellipse:
                num3 = (int)(num4 * Math.Sqrt(1.0 - Math.Pow(((double)num2) / ((double)num), 2.0)));
                break;

            case Operation.Tan:
                num3 = (int)(num2 * Math.Tan(Class1133.smethod_0((double)(((float)num) / 65536f))));
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            numArray[i] = num3;
        }
        return(numArray);
    }
コード例 #30
0
 public static int smethod_30(int A_0)
 {
     return(Class1133.smethod_5(A_0 * 2.5));
 }