/// <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);
            }
Exemplo n.º 2
0
            /// <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());
            }