private void method_76(IParagraph A_0, Paragraph A_1) { Paragraph paragraph = A_0 as Paragraph; ListFormat listFormat = null; ParagraphStyle paraStyle = paragraph.ParaStyle; if (paragraph.ListFormat.ListType != ListType.NoList) { listFormat = paragraph.ListFormat; } else if (paraStyle.ListFormat.ListType != ListType.NoList) { listFormat = paraStyle.ListFormat; } if ((listFormat != null) && (listFormat.CurrentListStyle != null)) { ListStyle currentListStyle = listFormat.CurrentListStyle; int levelNumber = 0; if (paragraph.ListFormat.HasKey(0)) { levelNumber = paragraph.ListFormat.ListLevelNumber; } else if (paraStyle.ListFormat.HasKey(0)) { levelNumber = paraStyle.ListFormat.ListLevelNumber; } ListLevel nearLevel = currentListStyle.GetNearLevel(levelNumber); Class12 class2 = null; if ((listFormat.LFOStyleName != null) && (listFormat.LFOStyleName.Length > 0)) { class2 = base.Document.ListOverrides.method_35(listFormat.LFOStyleName); } if (((class2 != null) && class2.method_23().method_11(levelNumber)) && class2.method_23().method_5(levelNumber).OverrideFormatting) { nearLevel = class2.method_23().method_5(levelNumber).OverrideListLevel; } string str = base.Document.method_132(paragraph, listFormat, nearLevel); if (str != string.Empty) { this.method_77(A_0, A_1, str); } } }
private bool method_91(Class615 A_0) { Paragraph paragraph = A_0.method_8() as Paragraph; if (paragraph != null) { ParagraphStyle style = paragraph.GetStyle(); ListFormat listFormat = null; if (((paragraph.ListFormat.CurrentListLevel == null) && (style != null)) && ((style.ListFormat.CurrentListLevel != null) && style.ListFormat.HasKey(0))) { listFormat = style.ListFormat; } else { listFormat = paragraph.ListFormat; } if (((listFormat != null) && (listFormat.ListType != ListType.NoList)) && (listFormat.CurrentListLevel != null)) { int listLevelNumber; ListStyle style2 = null; ListStyleCollection listStyles = paragraph.Document.ListStyles; if (((paragraph.ListFormat.CurrentListLevel == null) && (style != null)) && (style.ListFormat.CurrentListLevel != null)) { listLevelNumber = style.ListFormat.ListLevelNumber; style2 = listStyles.FindByName(style.ListFormat.CustomStyleName); } else { listLevelNumber = paragraph.ListFormat.ListLevelNumber; style2 = listStyles.FindByName(paragraph.ListFormat.CustomStyleName); } if (style2.GetNearLevel(listLevelNumber).NumberPosition == 0f) { return(!(paragraph.Format.FirstLineIndent == 0f)); } return(true); } } return(false); }
private void method_110() { if (!this.paragraph_0.ListFormat.IsEmptyList && (!this.paragraph_0.SectionEndMark || !string.IsNullOrEmpty(this.paragraph_0.Text))) { ListFormat listFormatForApplyStyle = this.paragraph_0.GetListFormatForApplyStyle(); ParagraphStyle paraStyle = this.paragraph_0.ParaStyle; if ((listFormatForApplyStyle != null) && (listFormatForApplyStyle.CurrentListStyle != null)) { ListStyle currentListStyle = listFormatForApplyStyle.CurrentListStyle; base.method_14(0); if (listFormatForApplyStyle.HasKey(0)) { base.method_14(listFormatForApplyStyle.ListLevelNumber); } ListLevel overrideListLevel = (currentListStyle.Levels.Count > 0) ? currentListStyle.GetNearLevel(base.method_13()) : null; if (overrideListLevel != null) { Class12 class2 = null; if ((listFormatForApplyStyle.LFOStyleName != null) && (listFormatForApplyStyle.LFOStyleName.Length > 0)) { class2 = (this.method_108() as Document).ListOverrides.method_35(listFormatForApplyStyle.LFOStyleName); } if (((class2 != null) && class2.method_23().method_11(base.method_13())) && class2.method_23().method_5(base.method_13()).OverrideFormatting) { overrideListLevel = class2.method_23().method_5(base.method_13()).OverrideListLevel; } if ((currentListStyle.ListType == ListType.Numbered) || (currentListStyle.ListType == ListType.Bulleted)) { if (overrideListLevel.ParagraphFormat.HasKey(0x488)) { base.Interface22.imethod_1().method_1((double)overrideListLevel.ParagraphFormat.LeftIndent); } if (((this.paragraph_0.ListFormat.ListType == ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x488) || ((paraStyle.ParagraphFormat.LeftIndent != 0f) && (paraStyle.ParagraphFormat.LeftIndent != overrideListLevel.ParagraphFormat.LeftIndent)))) { base.Interface22.imethod_1().method_1((double)paraStyle.ParagraphFormat.LeftIndent); } else if ((((this.paragraph_0.ListFormat.ListType != ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && paraStyle.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x488) || !overrideListLevel.ParagraphFormat.HasKey(0x488))) { base.Interface22.imethod_1().method_1((double)paraStyle.ParagraphFormat.LeftIndent); } if (this.paragraph_0.Format.HasKey(0x488)) { base.Interface22.imethod_1().method_1((double)this.paragraph_0.Format.LeftIndent); } if (overrideListLevel.ParagraphFormat.HasKey(0x492)) { base.method_20(overrideListLevel.ParagraphFormat.FirstLineIndent); } if (((this.paragraph_0.ListFormat.ListType == ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x492) || ((paraStyle.ParagraphFormat.FirstLineIndent != 0f) && (paraStyle.ParagraphFormat.FirstLineIndent != overrideListLevel.ParagraphFormat.FirstLineIndent)))) { base.method_20(paraStyle.ParagraphFormat.FirstLineIndent); } else if ((((this.paragraph_0.ListFormat.ListType != ListType.NoList) && !this.paragraph_0.ListFormat.HasKey(1)) && paraStyle.ListFormat.HasKey(1)) && (paraStyle.ParagraphFormat.HasKey(0x492) || !overrideListLevel.ParagraphFormat.HasKey(0x492))) { base.method_20(paraStyle.ParagraphFormat.FirstLineIndent); } if (this.paragraph_0.Format.HasKey(0x492)) { base.method_20(this.paragraph_0.Format.FirstLineIndent); } if (((base.method_19() < 0f) && (base.Interface22.imethod_1().method_0() == 0.0)) && (!this.paragraph_0.Format.HasValue(0x488) && !paraStyle.ParagraphFormat.HasValue(0x488))) { base.Interface22.imethod_1().method_1((double)Math.Abs(base.method_19())); } } base.method_72(new CharacterFormat(this.method_108())); this.method_114(overrideListLevel.CharacterFormat, base.method_71()); base.method_71().ApplyBase(this.paragraph_0.BreakCharacterFormat); base.method_66((this.method_108() as Document).method_133(this.paragraph_0, listFormatForApplyStyle, overrideListLevel, (LocaleIDs)base.method_71().LocaleIdASCII)); this.paragraph_0.ListText = base.method_65(); base.method_68(Class57.smethod_9(base.method_65())); if (!overrideListLevel.IsEmptyPicture && (overrideListLevel.PicBullet != null)) { base.method_46(true); base.method_80(overrideListLevel.PicBullet); } if (overrideListLevel.FollowCharacter == FollowCharacterType.Tab) { this.method_112(overrideListLevel); } else { this.method_111(overrideListLevel); } base.method_76(overrideListLevel.NumberAlignment); } if ((((overrideListLevel.StartAt == 0) && (currentListStyle.ListType == ListType.Numbered)) && (string.IsNullOrEmpty(overrideListLevel.LevelText) && string.IsNullOrEmpty(overrideListLevel.NumberPrefix))) && (string.IsNullOrEmpty(overrideListLevel.NumberPrefix) && string.IsNullOrEmpty(overrideListLevel.BulletCharacter))) { base.method_66(string.Empty); } listFormatForApplyStyle.Close(); } } }