private static void smethod_3(CellFormat A_0, int A_1, BorderStyle A_2) { Border border = (Border)A_0.method_31(A_1); if (border != null) { border.BorderType = A_2; } }
private static bool smethod_1(CellFormat A_0, int A_1, CellFormat A_2, int A_3) { bool flag; object obj2 = A_2.method_31(A_3); if (flag = obj2 != null) { A_0.SetAttr(A_1, obj2); } return(flag); }
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())); }
private static void smethod_3(CellFormat A_0, int A_1, BinaryWriter A_2) { Border border = (Border)A_0.method_31(A_1); if ((border != null) && !border.IsDefault) { if (border.BorderType == BorderStyle.Cleared) { A_2.Write(uint.MaxValue); } else { Class355.smethod_2(border, A_2, false); } } else { A_2.Write((uint)0); } }
internal static void smethod_2(Class857 A_0, Class100 A_1) { int num = 8; Class396 class2 = A_0.method_11(); CellFormat format = new CellFormat(); while (class2.method_19()) { string str; if ((!Class857.smethod_9(class2, A_1.method_35()) && !Class857.smethod_2(class2, A_1.method_39())) && (!Class857.smethod_1(class2, A_1.method_37()) && ((str = class2.method_1()) != null))) { if (str != BookmarkStart.b("夭䈯嬱䀳張嘷崹ᄻ匽⼿♁⅃", num)) { if (str != BookmarkStart.b("䤭尯䬱䐳帵ᔷ唹主圽┿ⱁぃ❅㱇⍉⍋⁍絏ㅓⱗ㍙㽛㽝", num)) { if (str != BookmarkStart.b("堭唯䀱䀳張嬷嬹倻ጽℿ⹁ⵃⅅ♇", num)) { if (!(str == BookmarkStart.b("䰭儯儱弳儵䨷唹䤻倽潁❃⥅⑇╉㹋", num))) { if (str == BookmarkStart.b("夭䈯匱䐳ᬵ圷䨹䠻圽⼿ⱁ", num)) { format.SetAttr(0xc6c, class2.method_3() == BookmarkStart.b("夭䈯匱䐳", num)); } } else { format.SetAttr(0xc62, Class576.smethod_62(class2.method_3(), (Class16)format.method_31(0xc62))); } } else { format.SetAttr(0xbf4, Class922.smethod_48(class2.method_3())); } } else if (class2.method_3() == BookmarkStart.b("ḭ", num)) { format.SetAttr(0xbea, TextOrientation.Upward); } } else if (Class922.smethod_37(class2.method_3()) != TextOrientation.Horizontal) { format.SetAttr(0xbea, Class922.smethod_37(class2.method_3())); } } } smethod_3(format, A_1); if (format.Count > 0) { A_1.method_46(format); } }