private void method_116() { Borders borders = this.paragraph_0.Format.Borders; if (!borders.NoBorder && !this.paragraph_0.SectionEndMark) { Class372 class1 = base.Interface22.imethod_0(); class1.method_5(class1.method_4() + (borders.Top.LineWidth + borders.Top.Space)); if (borders.Bottom.Shadow) { Class372 class2 = base.Interface22.imethod_0(); class2.method_13(class2.method_12() + ((borders.Bottom.LineWidth * 2f) + borders.Bottom.Space)); } else { Class372 class3 = base.Interface22.imethod_0(); class3.method_13(class3.method_12() + (borders.Bottom.LineWidth + borders.Bottom.Space)); } } if (((this.paragraph_0.PreviousSibling is Paragraph) && ((this.paragraph_0.PreviousSibling as Paragraph).Format.Borders.Bottom.BorderType != BorderStyle.Cleared)) && (((this.paragraph_0.PreviousSibling as Paragraph).Format.Borders.Bottom.BorderType != BorderStyle.None) && ((this.paragraph_0.PreviousSibling as Paragraph).Format.Borders.Bottom.LineWidth > 0f))) { Class372 class4 = base.Interface22.imethod_0(); class4.method_5(class4.method_4() + (this.paragraph_0.PreviousSibling as Paragraph).Format.Borders.Bottom.LineWidth); } if (!borders.NoBorder) { if (borders.Bottom.BorderType != BorderStyle.None) { base.Interface22.imethod_0().method_15(borders.Bottom.Space); } if (borders.Top.BorderType != BorderStyle.None) { base.Interface22.imethod_0().method_7(borders.Top.Space); } IDocumentObject previousSibling = this.paragraph_0.PreviousSibling; if ((previousSibling == null) && (borders.Top.BorderType != BorderStyle.None)) { base.method_50(true); } else { if ((!(previousSibling is Paragraph) && (this.paragraph_0.Owner is SDTContent)) && (this.paragraph_0.Owner.Owner is StructureDocumentTag)) { ICompositeObject owner = this.paragraph_0.Owner.Owner.Owner as ICompositeObject; int index = owner.ChildObjects.IndexOf(this.paragraph_0.Owner.Owner); if ((index >= 1) && (index <= (owner.ChildObjects.Count - 1))) { previousSibling = owner.ChildObjects[index - 1]; } else { previousSibling = null; } } if (previousSibling is StructureDocumentTag) { previousSibling = (previousSibling as StructureDocumentTag).ChildObjects.LastItem; } if (previousSibling is Paragraph) { Paragraph paragraph2 = previousSibling as Paragraph; ParagraphFormat format = this.paragraph_0.method_93(); ParagraphFormat format2 = paragraph2.method_93(); Borders borders2 = !paragraph2.Format.Borders.NoBorder ? paragraph2.Format.Borders : ((((paragraph2.ParaStyle == null) || (paragraph2.ParaStyle.ParagraphFormat == null)) || paragraph2.ParaStyle.ParagraphFormat.Borders.NoBorder) ? null : paragraph2.ParaStyle.ParagraphFormat.Borders); if (borders2 != null) { if (borders2.NoBorder && (borders.Top.BorderType != BorderStyle.None)) { base.method_50(true); } else if (!borders2.NoBorder && ((!format.method_68(format2) || !format.method_69(format2)) || (((borders2.Bottom.BorderType == BorderStyle.None) || !borders2.Bottom.method_57(borders.Top)) && (!borders2.Bottom.method_57(borders.Bottom) || !borders2.Top.method_57(borders.Top))))) { base.method_50(true); } } else if ((borders2 == null) && (borders.Top.BorderType != BorderStyle.None)) { base.method_50(true); } } } IDocumentObject nextSibling = this.paragraph_0.NextSibling; if ((nextSibling == null) && (borders.Bottom.BorderType != BorderStyle.None)) { base.method_48(true); } else { if ((!(nextSibling is Paragraph) && (this.paragraph_0.Owner is SDTContent)) && (this.paragraph_0.Owner.Owner is StructureDocumentTag)) { ICompositeObject obj2 = this.paragraph_0.Owner.Owner.Owner as ICompositeObject; int num = obj2.ChildObjects.IndexOf(this.paragraph_0.Owner.Owner); if ((num >= 0) && (num <= (obj2.ChildObjects.Count - 2))) { nextSibling = obj2.ChildObjects[num + 1]; } else { nextSibling = null; } } if (nextSibling is StructureDocumentTag) { nextSibling = (nextSibling as StructureDocumentTag).ChildObjects.FirstItem; } if (nextSibling is Paragraph) { Paragraph paragraph = nextSibling as Paragraph; ParagraphFormat format3 = this.paragraph_0.method_93(); ParagraphFormat format4 = paragraph.method_93(); Borders borders3 = !paragraph.Format.Borders.NoBorder ? paragraph.Format.Borders : ((((paragraph.ParaStyle == null) || (paragraph.ParaStyle.ParagraphFormat == null)) || paragraph.ParaStyle.ParagraphFormat.Borders.NoBorder) ? null : paragraph.ParaStyle.ParagraphFormat.Borders); if (borders3 != null) { if (borders3.NoBorder && (borders.Bottom.BorderType != BorderStyle.None)) { base.method_48(true); } else if (!borders3.NoBorder && ((!format3.method_68(format4) || !format3.method_69(format4)) || (((borders3.Top.BorderType == BorderStyle.None) || !borders3.Top.method_57(borders.Bottom)) && (!borders3.Bottom.method_57(borders.Bottom) || !borders3.Top.method_57(borders.Top))))) { base.method_48(true); } } else if ((borders3 == null) && (borders.Bottom.BorderType != BorderStyle.None)) { base.method_48(true); } } } } if (!base.method_49()) { base.Interface22.imethod_0().method_5(0.0); base.Interface22.imethod_0().method_7(0f); } if (!base.method_47()) { base.Interface22.imethod_0().method_13(0.0); base.Interface22.imethod_0().method_15(0f); } }