/// <summary> /// updates NewStText /// </summary> protected void CreateNewTextWithEmptyParagraph(int wsText) { var newText = Cache.ServiceLocator.GetInstance <ITextFactory>().Create(); NewStText = Cache.ServiceLocator.GetInstance <IStTextFactory>().Create(); newText.ContentsOA = NewStText; Clerk.CreateFirstParagraph(NewStText, wsText); InterlinMaster.LoadParagraphAnnotationsAndGenerateEntryGuessesIfNeeded(NewStText, false); }
/// <summary> /// updates NewStText /// </summary> protected void CreateNewTextWithEmptyParagraph(int wsText) { var newText = Cache.ServiceLocator.GetInstance <ITextFactory>().Create(); NewStText = Cache.ServiceLocator.GetInstance <IStTextFactory>().Create(); newText.ContentsOA = NewStText; Clerk.CreateFirstParagraph(NewStText, wsText); InterlinMaster.LoadParagraphAnnotationsAndGenerateEntryGuessesIfNeeded(NewStText, false); if (Cache.LangProject.DiscourseDataOA == null) { Cache.LangProject.DiscourseDataOA = Cache.ServiceLocator.GetInstance <IDsDiscourseDataFactory>().Create(); } Cache.ServiceLocator.GetInstance <IDsConstChartFactory>().Create(Cache.LangProject.DiscourseDataOA, newText.ContentsOA, Cache.LangProject.GetDefaultChartTemplate()); }