private static void smethod_1(Class272 A_0, Class289 A_1)
 {
     for (int i = 0; i < A_0.method_7().Count; i++)
     {
         Class266 class3 = A_0.method_7().method_0(i);
         if (class3 is Class279)
         {
             Class279 class2 = (Class279)class3;
             if (!class2.method_12() && !class2.method_24())
             {
                 A_1.method_7(A_1.method_6() + 1);
             }
             if (!class2.method_12())
             {
                 A_1.method_9(Math.Max(A_1.method_8(), class2.method_4()));
             }
         }
         if (class3 is Class272)
         {
             smethod_1((Class272)class3, A_1);
         }
     }
 }
Exemple #2
0
    internal Class273 method_6(ShapeBase A_0, EscherShapeKind A_1)
    {
        Class273 class2 = new Class273();

        if (A_0.IsGroup)
        {
            Class285 class3 = new Class285();
            class3.method_5(A_0.CoordOrigin);
            class3.method_7(A_0.CoordSize);
            class2.method_7().Add(class3);
        }
        Class279 class4 = new Class279();

        class4.method_5(A_0.Id);
        switch (A_0.ShapeType)
        {
        case ShapeType.OleObject:
        case ShapeType.OleControl:
            class4.method_31(ShapeType.Image);
            break;

        case ShapeType.Group:
            class4.method_31(ShapeType.NonPrimitive);
            break;

        default:
            class4.method_31(A_0.ShapeType);
            break;
        }
        class4.method_7(A_0.IsGroup);
        class4.method_25(A_1 == EscherShapeKind.Background);
        class4.method_9(A_1 == EscherShapeKind.Child);
        class4.method_23(A_0.IsConnector);
        class4.method_15(A_0.IsOle && !A_0.IsInline);
        class4.method_29(!A_0.IsGroup);
        class4.method_27(true);
        class4.method_33(A_0.FlipOrientation);
        class2.method_7().Add(class4);
        Class287 class8 = new Class287(false);
        Class287 class5 = new Class287(true);

        this.class930_0.method_23(A_0, class8.method_4(), class5.method_4(), class4.method_24());
        if (class8.method_4().method_2() > 0)
        {
            class2.method_7().Add(class8);
        }
        if (class5.method_4().method_2() > 0)
        {
            class2.method_7().Add(class5);
        }
        if (A_1 == EscherShapeKind.InlineReal)
        {
            Class267 class11 = new Class267();
            class11.method_5(EscherClientAnchorFlags.Inline);
            class2.method_7().Add(class11);
            return(class2);
        }
        if (!class4.method_24())
        {
            if (class4.method_8())
            {
                Class291 class6 = new Class291();
                Class265 class7 = Class265.smethod_3(A_0);
                class6.method_5((int)class7.double_0);
                class6.method_7((int)class7.double_1);
                class6.method_9((int)class7.double_2);
                class6.method_11((int)class7.double_3);
                class2.method_7().Add(class6);
            }
            else
            {
                Class267 class12 = new Class267();
                class2.method_7().Add(class12);
            }
        }
        Class280 class9 = new Class280();

        class9.method_5(1);
        class2.method_7().Add(class9);
        if (A_0.Txid != 0)
        {
            Class282 class10 = new Class282();
            class10.method_5(A_0.Txid);
            class2.method_7().Add(class10);
        }
        return(class2);
    }