Ejemplo n.º 1
0
    private void method_13(ListLevel A_0, int A_1)
    {
        string bulletCharacter;

        this.binaryWriter_0.Write(A_0.StartAt);
        this.binaryWriter_0.Write((byte)A_0.PatternType);
        int num = 0;

        num  = 0 | ((byte)A_0.NumberAlignment);
        num |= A_0.IsLegalStyleNumbering ? 4 : 0;
        num |= A_0.NoRestartByHigher ? 8 : 0;
        num |= A_0.bool_8 ? 0x10 : 0;
        num |= A_0.bool_9 ? 0x20 : 0;
        num |= A_0.Word6Legacy ? 0x40 : 0;
        num |= A_0.bool_7 ? 0x80 : 0;
        this.binaryWriter_0.Write((byte)num);
        if (A_0.PatternType == ListPatternType.Bullet)
        {
            bulletCharacter = A_0.BulletCharacter;
        }
        else
        {
            string str2 = string.Empty;
            if ((A_0.NumberPrefix != null) && (A_0.NumberPrefix.Length > 0))
            {
                str2 = this.method_14(A_0.NumberPrefix);
            }
            bulletCharacter = str2;
            if (!A_0.NoLevelText && (A_0.NumberSufix != null))
            {
                bulletCharacter = bulletCharacter + Convert.ToChar(A_1).ToString() + A_0.NumberSufix;
            }
            else if (A_0.PatternType == ListPatternType.None)
            {
                bulletCharacter = A_0.LevelText;
            }
        }
        bulletCharacter = this.method_12(bulletCharacter);
        byte[] buffer = smethod_2(bulletCharacter);
        this.binaryWriter_0.Write(buffer);
        this.binaryWriter_0.Write((byte)A_0.FollowCharacter);
        this.binaryWriter_0.Write(A_0.LegacySpace);
        this.binaryWriter_0.Write(A_0.LegacyIndent);
        smethod_1(A_0);
        Class431 class2 = this.class140_0.method_64(A_0.CharacterFormat, null, false);

        this.binaryWriter_0.Write((byte)class2.method_2().Length);
        Class430 class3 = this.class141_0.method_62(A_0.ParagraphFormat, null);

        this.binaryWriter_0.Write((byte)class3.method_2().Length);
        this.binaryWriter_0.Write((short)0);
        this.binaryWriter_0.Write(class3.method_2());
        this.binaryWriter_0.Write(class2.method_2());
        Class813.smethod_2(bulletCharacter, 0x7fffffff, this.binaryWriter_0, true, false);
    }
Ejemplo n.º 2
0
    private void method_10()
    {
        Class431 class2 = this.class140_0.method_64(this.styleCollection_0.Document.DefCharFormat, this.class1107_0, false);

        this.binaryWriter_0.Write(class2.method_2().Length);
        this.binaryWriter_0.Write(class2.method_2());
        Class430 class3 = this.class141_0.method_62(this.styleCollection_0.DefaultParaPr, this.class1150_0);

        this.binaryWriter_0.Write(class3.method_2().Length);
        this.binaryWriter_0.Write(class3.method_2());
    }
Ejemplo n.º 3
0
    internal static Class430 smethod_2(Stream A_0, Class430 A_1)
    {
        int          position = (int)A_0.Position;
        BinaryWriter writer   = new BinaryWriter(A_0, Encoding.Unicode);

        writer.Write((short)A_1.method_2().Length);
        writer.Write(A_1.method_2());
        MemoryStream stream = new MemoryStream();

        new Class345(stream).method_3(SprmCode.PHugePapx, position);
        return(new Class430(A_1.method_6(), stream.ToArray()));
    }
Ejemplo n.º 4
0
    internal Class430 method_66(TableRow A_0, Class430 A_1, BinaryWriter A_2, Class1056 A_3)
    {
        CellCollection cells     = A_0.Cells;
        RowFormat      rowFormat = A_0.RowFormat;

        smethod_2(cells, rowFormat, false);
        this.method_84(cells, rowFormat);
        if (!A_3.method_2())
        {
            rowFormat = (RowFormat)A_0.RowFormat.SysDirectAttrs;
            smethod_2(cells, rowFormat, true);
            this.method_84(cells, rowFormat);
        }
        Class428 class2   = this.method_67(A_0.RowFormat, true, A_3);
        int      position = (int)A_2.BaseStream.Position;
        int      num2     = class2.method_2().Length + A_1.method_2().Length;

        A_2.Write((ushort)num2);
        A_2.Write(A_1.method_2());
        A_2.Write(class2.method_2());
        Class428 class3 = this.method_85(position);
        Class430 class4 = new Class430(0, class3.method_2());

        class4.method_5(A_1);
        Class428 class5 = this.method_67(A_0.RowFormat, false, A_3);

        class4.method_5(class5);
        A_0.RowFormat.Remove(0x13ec);
        Class580 formatRevision = A_0.RowFormat.FormatRevision;

        if (formatRevision != null)
        {
            formatRevision.method_4().Remove(0x13ec);
        }
        return(class4);
    }
Ejemplo n.º 5
0
 internal void method_0(Class430 A_0, byte[] A_1, Document A_2)
 {
     this.paragraphFormat_0 = new ParagraphFormat(A_2);
     this.class1150_0       = new Class1150();
     this.rowFormat_0       = null;
     this.class141_0.method_67(this.paragraphFormat_0, this.class1150_0);
     this.paragraphFormat_0.SetAttr(0x3e8, A_0.method_6());
     this.class479_0.method_1(A_0.method_2());
     this.class479_0.method_1(A_1);
     if (this.rowFormat_0 != null)
     {
         this.class143_0.method_65();
     }
     this.class141_0.method_68();
 }
Ejemplo n.º 6
0
 internal static bool smethod_1(Class430 A_0)
 {
     return(A_0.method_2().Length > 0x1e5);
 }
Ejemplo n.º 7
0
 internal void method_64(Class430 A_0, ParagraphFormat A_1, Class1150 A_2)
 {
     A_1.Istd = A_0.method_6();
     this.method_65(A_0.method_2(), A_1, A_2);
 }