Exemple #1
0
    private static void smethod_12(Class857 A_0, Class93 A_1)
    {
        int num = 0x10;

        if (Class567.smethod_16(A_1.method_0()))
        {
            string name = Class922.smethod_79(A_1.method_0());
            if (A_0.method_9().Styles.FindByName(name) == null)
            {
                Style   style  = smethod_11(StyleType.ParagraphStyle, A_1.method_0(), A_0.method_9());
                Class97 class2 = (Class97)A_1;
                if (A_1.method_8() != null)
                {
                    style.ApplyBaseStyle(smethod_11(StyleType.ParagraphStyle, A_1.method_8(), A_0.method_9()));
                }
                if (class2.method_13() != null)
                {
                    class2.method_13().CopyPropertiesTo(style.RunPr);
                }
                if ((class2.method_15() != null) && (style.ParaPr != null))
                {
                    class2.method_15().CopyPropertiesTo(style.ParaPr);
                }
                if (class2.method_25() != -1)
                {
                    style.ParaPr.SetAttr(0x500, (byte)class2.method_25());
                }
                if (style.StyleIdentifier == StyleIdentifier.Normal)
                {
                    style.QuickFormat = true;
                    A_0.method_9().Styles.DefaultParaStyle = style as ParagraphStyle;
                    style.Name = BookmarkStart.b("砵圷䠹儻弽ⰿ", num);
                    style.method_5(BookmarkStart.b("圵", num));
                    A_0.method_9().Styles.method_7(style, null);
                }
                else
                {
                    A_0.method_9().Styles.method_7(style, null);
                }
            }
        }
        else
        {
            Class97 class3 = (Class97)A_1;
            if (class3.method_13() != null)
            {
                A_0.method_9().DefCharFormat = new CharacterFormat(A_0.method_9());
                class3.method_13().method_37(A_0.method_9().DefCharFormat);
            }
            if (class3.method_15() != null)
            {
                A_0.method_9().DefParaFormat = new ParagraphFormat(A_0.method_9());
                class3.method_15().method_37(A_0.method_9().DefParaFormat);
            }
        }
    }
Exemple #2
0
    internal static void smethod_0(Class857 A_0, Class97 A_1)
    {
        ParagraphFormat format = new ParagraphFormat(A_0.method_9());

        smethod_1(A_0, A_1, format);
        smethod_5(A_0, A_1, format);
        if (A_1.method_25() != -1)
        {
            format.OutlineLevel = (OutlineLevel)A_1.method_25();
        }
        if (format.Count > 0)
        {
            if (A_1.method_15() == null)
            {
                A_1.method_16(format);
            }
            else
            {
                format.method_37(A_1.method_15());
            }
        }
    }