Пример #1
0
 internal void method_15(bool A_0)
 {
     if (A_0)
     {
         Class592.smethod_0(this.class732_0, 0xbc4, SprmCode.TCellWidth, this);
     }
     else
     {
         for (int i = 0; i < this.class732_0.Count; i++)
         {
             if ((this.class732_0.method_0(i).WidthUnit == FtsWidth.Auto) || (this.class732_0.method_0(i).WidthUnit == FtsWidth.None))
             {
                 this.method_23(i, i + 1, 3, this.class732_0.method_0(i).TwipCellWidth);
             }
         }
     }
 }
Пример #2
0
 internal Class432 method_68(Class13 A_0)
 {
     base.class345_0.BaseStream.Position = 0L;
     base.wordAttrCollection_0           = A_0.Interface8.imethod_3();
     if (A_0.Istd >= 15)
     {
         base.class345_0.method_1(SprmCode.TIstd, A_0.Istd);
     }
     this.method_87(true);
     this.method_91(SprmCode.TWidthBefore, 0x109a);
     Class592.smethod_2(this.method_93(), SprmCode.TCellPaddingDefault, this, icomparer_1);
     this.method_91(SprmCode.TLeftIndent, 0x10f4);
     foreach (ConditionalFormattingCode code in A_0.method_25().Keys)
     {
         CellFormat format = A_0.method_25()[code].method_24();
         if (format != null)
         {
             long num = base.method_36(SprmCode.TCnf, code);
             if (format.method_6(0xbf4))
             {
                 base.class345_0.method_0(SprmCode.TCellVertAlignStyle, (byte)format.VerticalAlignment);
             }
             base.method_31(SprmCode.TCellBrcTopStyle, format.Borders.Top);
             base.method_31(SprmCode.TCellBrcBottomStyle, format.Borders.Bottom);
             base.method_31(SprmCode.TCellBrcLeftStyle, format.Borders.Left);
             base.method_31(SprmCode.TCellBrcRightStyle, format.Borders.Top);
             base.method_31(SprmCode.TCellBrcInsideHStyle, format.Borders.Horizontal);
             base.method_31(SprmCode.TCellBrcInsideVStyle, format.Borders.Vertical);
             base.method_31(SprmCode.TCellBrcTL2BRStyle, format.Borders.DiagonalUp);
             base.method_31(SprmCode.TCellBrcTR2BLStyle, format.Borders.DiagonalDown);
             base.method_35(SprmCode.TCellShdStyle, format.method_31(0xc62));
             base.method_37(num);
         }
     }
     if (base.wordAttrCollection_0.method_6(0x1194))
     {
         base.class345_0.method_0(SprmCode.TCHorzBands, (int)((long)base.wordAttrCollection_0.method_31(0x1194)));
     }
     if (base.wordAttrCollection_0.method_6(0x119e))
     {
         base.class345_0.method_0(SprmCode.TCVertBands, (int)((long)base.wordAttrCollection_0.method_31(0x119e)));
     }
     base.method_35(SprmCode.TCellShdStyle, A_0.Interface8.imethod_1().method_31(0xc62));
     return(new Class432(base.method_2()));
 }
Пример #3
0
    private void method_80()
    {
        this.class758_0.method_30((Class732)this.method_93().method_31(0x13ec));
        int num = (int)(((this.method_93().Paddings.Left + this.method_93().Paddings.Right) * 20f) / 2f);

        base.class345_0.method_1(SprmCode.TDxaLeft, (this.class1056_0.method_0() + num) + ((int)this.method_93().GridBeforeWidth.method_49()));
        this.class758_0.method_13(base.method_56());
        this.class758_0.method_15(false);
        Class592.smethod_0((Class732)this.method_93().method_31(0x13ec), 0xbc2, SprmCode.TDxaCol, this.class758_0);
        if (this.method_83())
        {
            int num3;
            if (this.method_93().OwnerRow.OwnerTable.TableStyle is Style)
            {
                int num2 = this.method_93().Document.Styles.DocStyleCollection.method_17(this.method_93().OwnerRow.OwnerTable.TableStyle as Style);
                num3 = (num2 != 0xfff) ? num2 : 11;
            }
            else
            {
                num3 = 11;
            }
            base.class345_0.method_1(SprmCode.TIstd, num3);
        }
        if (!base.method_56() && (num != 0))
        {
            base.class345_0.method_1(SprmCode.TDxaGapHalf, num);
        }
        this.method_82();
        base.method_3(SprmCode.TTableHeader, 0xfc8);
        this.method_88();
        Class732 class2 = (Class732)this.rowFormat_1.method_31(0x13ec);

        this.class758_0.method_17(class2, SprmCode.TCellShd);
        base.method_9(SprmCode.TFBiDi, 0x111c);
        this.method_89();
        base.method_52(SprmCode.TPositionCode, 0x3f, 0x40);
        base.method_49(SprmCode.TFrameLeft, 0x3d, 0x3b);
        base.method_50(SprmCode.TFrameTop, 0x3e, 60);
        if (this.method_93().Positioning.HasKey(0x43))
        {
            base.method_16(SprmCode.TFromTextLeft, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromLeft * 20f), 2));
        }
        if (this.method_93().Positioning.HasKey(0x41))
        {
            base.method_16(SprmCode.TFromTextTop, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromTop * 20f), 2));
        }
        this.class758_0.method_17(class2, SprmCode.TCellShdEx3);
        this.class758_0.method_17(class2, SprmCode.TCellShdEx);
        this.class758_0.method_14();
        this.method_87(true);
        this.method_90(SprmCode.TTableWidth, 0x1086);
        base.method_5(SprmCode.TFAllowAutoFit, base.wordAttrCollection_0.method_32(0x1090));
        this.class758_0.method_17(class2, SprmCode.TCellShdEx2);
        this.method_91(SprmCode.TWidthBefore, 0x109a);
        this.method_91(SprmCode.TWidthAfter, 0x10a4);
        Class592.smethod_0(class2, 0xbea, SprmCode.TTextFlow, this.class758_0);
        Class592.smethod_0(class2, 0xbf4, SprmCode.TVertAlign, this.class758_0);
        if (this.method_93().Positioning.HasKey(0x44))
        {
            base.method_16(SprmCode.TFromTextRight, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromRight * 20f), 2));
        }
        if (this.method_93().Positioning.HasKey(0x42))
        {
            base.method_16(SprmCode.TFromTextBottom, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromBottom * 20f), 2));
        }
        this.class758_0.method_16();
        this.class758_0.method_15(true);
        Class592.smethod_0(class2, 0xc76, SprmCode.TFitText, this.class758_0);
        Class592.smethod_0(class2, 0xc6c, SprmCode.TFCellNoWrap, this.class758_0);
        Class592.smethod_4(class2, SprmCode.TSetBrc, this.class758_0, icomparer_0);
        Class592.smethod_0(class2, 0xc94, SprmCode.TCellHideMark, this.class758_0);
        this.class758_0.method_26();
        object obj2 = null;

        if ((base.wordAttrCollection_0 as RowFormat).Positioning.method_6(0x45))
        {
            obj2 = !((bool)(base.wordAttrCollection_0 as RowFormat).Positioning.method_32(0x45));
        }
        base.method_4(SprmCode.TFCantOverlap, obj2);
        if ((base.wordAttrCollection_0 as RowFormat).IsChangedFormat)
        {
            WordAttrCollection attrs = base.wordAttrCollection_0;
            base.wordAttrCollection_0 = base.wordAttrCollection_0.FormatRevision.method_4();
            base.method_46(SprmCode.TPropRMark, SprmCode.TWall);
            base.wordAttrCollection_0 = attrs;
        }
        Class592.smethod_3(class2, SprmCode.TCellPadding, this.class758_0);
        Class354.smethod_4(base.class345_0, SprmCode.TCellSpacingDefault, CellAlign.Box, this.method_93().method_31(0x10c2));
        base.method_34(SprmCode.TTableShd, 0x10ea);
        Class592.smethod_1(this.method_93(), SprmCode.TCellPaddingDefault, this);
        base.method_6(SprmCode.TFCantSplit, 0x1108);
        this.class758_0.method_18(SprmCode.TCellShdExRaw);
        this.class758_0.method_18(SprmCode.TCellShdExRaw2);
        this.class758_0.method_18(SprmCode.TCellShdExRaw3);
        this.method_91(SprmCode.TLeftIndent, 0x10f4);
        base.method_18(SprmCode.TRsidTr, 0x1130);
        this.method_86(true);
    }
Пример #4
0
 private void method_79()
 {
     this.class758_0.method_30(this.method_94());
     this.method_86(false);
     if (this.method_93().method_6(0xfb4) && !base.method_56())
     {
         base.class345_0.method_1(SprmCode.TDxaGapHalf, (int)((this.method_93().Paddings.Left + this.method_93().Paddings.Right) / 2f));
     }
     this.method_82();
     base.method_3(SprmCode.TTableHeader, 0xfc8);
     this.method_87(false);
     this.method_88();
     this.class758_0.method_20(base.method_56(), this.class1056_0.method_0(), this.class1056_0.method_1(), (int)this.method_93().GridBeforeWidth.method_49());
     this.class758_0.method_18(SprmCode.TCellShd);
     this.method_89();
     base.method_9(SprmCode.TFBiDi, 0x111c);
     base.method_52(SprmCode.TPositionCode, 0x3f, 0x40);
     base.method_49(SprmCode.TFrameLeft, 0x3d, 0x3b);
     base.method_50(SprmCode.TFrameTop, 0x3e, 60);
     if (this.method_93().Positioning.HasKey(0x43))
     {
         base.method_16(SprmCode.TFromTextLeft, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromLeft * 20f), 2));
     }
     if (this.method_93().Positioning.HasKey(0x41))
     {
         base.method_16(SprmCode.TFromTextTop, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromTop * 20f), 2));
     }
     this.class758_0.method_18(SprmCode.TCellShdEx3);
     this.class758_0.method_18(SprmCode.TCellShdEx);
     this.method_87(true);
     this.method_90(SprmCode.TTableWidth, 0x1086);
     base.method_5(SprmCode.TFAllowAutoFit, base.wordAttrCollection_0.method_31(0x1090));
     this.class758_0.method_18(SprmCode.TCellShdEx2);
     this.method_91(SprmCode.TWidthBefore, 0x109a);
     this.method_91(SprmCode.TWidthAfter, 0x10a4);
     this.class758_0.method_21();
     if (this.method_93().Positioning.HasKey(0x44))
     {
         base.method_16(SprmCode.TFromTextRight, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromRight * 20f), 2));
     }
     if (this.method_93().Positioning.HasKey(0x42))
     {
         base.method_16(SprmCode.TFromTextBottom, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromBottom * 20f), 2));
     }
     Class592.smethod_3(this.method_94(), SprmCode.TCellPadding, this.class758_0);
     Class354.smethod_4(base.class345_0, SprmCode.TCellSpacingDefault, CellAlign.Box, this.method_93().method_31(0x10c2));
     if (!base.method_56())
     {
         Class592.smethod_1(this.method_93(), SprmCode.TCellPaddingDefault, this);
     }
     this.class758_0.method_26();
     base.method_34(SprmCode.TTableShd, 0x10ea);
     this.method_91(SprmCode.TLeftIndent, 0x10f4);
     base.method_6(SprmCode.TFCantOverlap, 0x10fe);
     base.method_6(SprmCode.TFCantSplit, 0x1108);
     this.class758_0.method_18(SprmCode.TCellShdExRaw);
     this.class758_0.method_18(SprmCode.TCellShdExRaw2);
     this.class758_0.method_18(SprmCode.TCellShdExRaw3);
     base.method_18(SprmCode.TRsidTr, 0x1130);
     base.method_9(SprmCode.TJcEx, 0xfaa);
     if ((base.wordAttrCollection_0 as RowFormat).IsChangedFormat)
     {
         WordAttrCollection attrs = base.wordAttrCollection_0;
         base.wordAttrCollection_0 = base.wordAttrCollection_0.FormatRevision.method_4();
         base.method_46(SprmCode.TPropRMark, SprmCode.TWall);
         base.wordAttrCollection_0 = attrs;
     }
 }