Esempio n. 1
0
        protected void AcceptFormatRevisionCore(int istdKey, int[] keysToPreserve)
        {
            Class580 formatRevision = this.FormatRevision;

            if (formatRevision != null)
            {
                WordAttrCollection attrs = formatRevision.method_4();
                if (((istdKey >= 0) && (attrs.method_31(istdKey) != null)) && (keysToPreserve != null))
                {
                    object[] objArray = new object[keysToPreserve.Length];
                    for (int j = 0; j < keysToPreserve.Length; j++)
                    {
                        objArray[j] = base.method_31(keysToPreserve[j]);
                    }
                    this.ClearAttrs();
                    for (int k = 0; k < keysToPreserve.Length; k++)
                    {
                        if (objArray[k] != null)
                        {
                            this.SetAttr(keysToPreserve[k], objArray[k]);
                        }
                    }
                }
                for (int i = 0; i < attrs.Count; i++)
                {
                    this.SetAttr(attrs.method_18(i), attrs.method_19(i));
                }
            }
            this.Remove(0x271a);
        }
Esempio n. 2
0
    Interface31 Interface31.imethod_1()
    {
        Class580 class2 = (Class580)base.MemberwiseClone();

        class2.wordAttrCollection_0 = (WordAttrCollection)this.wordAttrCollection_0.Clone();
        return(class2);
    }
Esempio n. 3
0
    private static void smethod_10(TableRow A_0)
    {
        int num = 14;

        if (A_0.RowFormat.HasFormatRevision)
        {
            Class580  formatRevision = A_0.RowFormat.FormatRevision;
            RowFormat format2        = (RowFormat)formatRevision.method_4();
            Class732  class2         = (Class732)format2.method_31(0x13ec);
            if (class2 == null)
            {
                A_0.RowFormat.method_47();
            }
            else
            {
                int num3 = 0;
                for (int i = 0; i < A_0.Cells.Count; i++)
                {
                    TableCell cell   = A_0.Cells[i];
                    Class580  class4 = new Class580(class2.method_0(num3), formatRevision.method_0(), formatRevision.method_2());
                    cell.CellFormat.FormatRevision = class4;
                    num3++;
                }
                if (num3 != class2.Count)
                {
                    throw new InvalidOperationException(BookmarkStart.b("稳䌵唷堹夻䰽怿ⵁ≃晅㡇㡉⍋㹍㕏⁑⁓㽕㵗⥙牛", num));
                }
            }
        }
    }
Esempio n. 4
0
    protected void method_45(WordAttrCollection A_0, bool A_1)
    {
        bool     flag = this.binaryReader_0.ReadByte() != 0;
        int      num  = this.binaryReader_0.ReadInt16();
        DateTime time = Class353.smethod_2(this.binaryReader_0);

        if (flag)
        {
            Class580 class2 = new Class580(A_0, this.class812_0.method_1(num), time);
            if (A_1)
            {
                class2.method_4().method_25(this.wordAttrCollection_0);
            }
            if (this.wordAttrCollection_0 is CharacterFormat)
            {
                (this.wordAttrCollection_0 as CharacterFormat).IsChangedFormat = true;
                (class2.method_4() as CharacterFormat).method_74(this.wordAttrCollection_0 as CharacterFormat);
            }
            else if (this.wordAttrCollection_0 is ParagraphFormat)
            {
                (this.wordAttrCollection_0 as ParagraphFormat).IsChangedFormat = true;
            }
            this.wordAttrCollection_0.SetAttr(0x271a, class2);
        }
    }
Esempio n. 5
0
 private void method_84(CellCollection A_0, RowFormat A_1)
 {
     if (A_1.HasFormatRevision)
     {
         RowFormat format = (RowFormat)A_1.FormatRevision.method_4();
         Class732  class3 = new Class732();
         format.SetAttr(0x13ec, class3);
         foreach (TableCell cell in A_0)
         {
             Class580 formatRevision = cell.CellFormat.FormatRevision;
             class3.Add((formatRevision != null) ? formatRevision.method_4() : this.cellFormat_0);
         }
     }
 }
Esempio n. 6
0
 protected void method_46(SprmCode A_0, SprmCode A_1)
 {
     if (this.wordAttrCollection_0.FormatRevision != null)
     {
         Class580 formatRevision = this.wordAttrCollection_0.FormatRevision;
         this.class345_0.method_5(A_0);
         this.class345_0.Write((byte)7);
         this.class345_0.Write((byte)1);
         this.class345_0.Write((short)this.class812_0.method_2(formatRevision.method_0()));
         Class353.smethod_3(formatRevision.method_2(), this.class345_0);
         this.class345_0.method_4(A_1, true);
         this.bool_1 = true;
         this.vmethod_0();
         this.bool_1 = false;
     }
 }
Esempio n. 7
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);
    }
Esempio n. 8
0
    private void imethod_32(RowFormat A_0)
    {
        int num = 14;

        if (this.documentObject_0.DocumentObjectType != DocumentObjectType.TableRow)
        {
            throw new InvalidOperationException(BookmarkStart.b("笳䌵䰷ᨹ医堽怿ㅁ㵃⡅⭇摉", num));
        }
        TableRow row    = (TableRow)this.documentObject_0;
        Class732 class3 = (Class732)A_0.method_31(0x13ec);

        if (class3 != null)
        {
            row.HasTblPrEx = true;
            row.RowFormat.method_25(A_0);
            this.method_8(row, class3);
            smethod_8(row);
            smethod_10(row);
            this.method_9(A_0, row);
            row.RowFormat.Remove(0x13ec);
            Class580 formatRevision = row.RowFormat.FormatRevision;
            if (formatRevision != null)
            {
                formatRevision.method_4().Remove(0x13ec);
            }
            Class646.smethod_2(row.RowFormat);
            this.method_10(row);
            row.method_30();
            this.method_13();
        }
        else
        {
            this.method_13();
            row.method_19();
        }
    }
Esempio n. 9
0
 internal override void vmethod_5(Class580 A_0, string A_1, int A_2)
 {
     this.method_59(A_2.ToString(), A_0.method_0(), A_0.method_2(), BookmarkStart.b("砮帰䄲儴ᤶ缸吺似刾⁀㝂ㅄ⹆❈ⱊ", 9), false);
     base.method_4(BookmarkStart.b("丮尰弲༴吶嘸唺䤼娾⽀㝂", 9));
 }
Esempio n. 10
0
 internal virtual void vmethod_5(Class580 A_0, string A_1, int A_2)
 {
     throw new NotImplementedException(BookmarkStart.b("欧䔩䈫䴭䈯圱䀳匵ᠷ夹倻弽㌿ㅁ⅃㕅桇㥉⑋⅍╏㹑こ癕ㅗ㝙ⱛ㉝՟ཡţࡥᱧ䑩", 2));
 }