internal Spire.Doc.CharacterCategory method_38(string A_0) { if (!string.IsNullOrEmpty(A_0)) { return(Class57.smethod_9(this.Text)); } return(Spire.Doc.CharacterCategory.Ascii); }
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(); } } }