SetText() private method

The 'real' TaggingChild sets this in MakeVc()
private SetText ( IStText txt ) : void
txt IStText
return void
        /// <summary>
        /// non-undoable task
        /// </summary>
        private void DoSetupFixture()
        {
            // setup default vernacular ws.
            m_wsXkal = Cache.ServiceLocator.WritingSystemManager.Set("qaa-x-kal");
            m_wsXkal.DefaultFontName = "Times New Roman";
            Cache.ServiceLocator.WritingSystems.VernacularWritingSystems.Add(m_wsXkal);
            Cache.ServiceLocator.WritingSystems.CurrentVernacularWritingSystems.Insert(0, m_wsXkal);
            m_textsDefn = new XmlDocument();
            m_tagRepo   = Cache.ServiceLocator.GetInstance <ITextTagRepository>();
            ConfigurationFilePath("Language Explorer/Configuration/Words/AreaConfiguration.xml");
            m_text1 = LoadTestText("FDO/FDOTests/TestData/ParagraphParserTestTexts.xml", 1, m_textsDefn);
            m_para1 = m_text1.ContentsOA.ParagraphsOS[0] as IStTxtPara;
            ParseTestText();

            m_tagChild = new TestTaggingChild(Cache);
            m_tagChild.SetText(m_text1.ContentsOA);

            // This could change, but at least it gives a reasonably stable list to test from.
            m_textMarkupTags = Cache.LangProject.GetDefaultTextTagList();
            LoadTagListPossibilities();
        }
Example #2
0
        /// <summary>
        /// non-undoable task
        /// </summary>
        private void DoSetupFixture()
        {
            // setup default vernacular ws.
            m_wsXkal             = Cache.ServiceLocator.WritingSystemManager.Set("qaa-x-kal");
            m_wsXkal.DefaultFont = new FontDefinition("Times New Roman");
            Cache.ServiceLocator.WritingSystems.VernacularWritingSystems.Add(m_wsXkal);
            Cache.ServiceLocator.WritingSystems.CurrentVernacularWritingSystems.Insert(0, m_wsXkal);
            m_textsDefn = new XmlDocument();
            m_tagRepo   = Cache.ServiceLocator.GetInstance <ITextTagRepository>();
            string textDefinitionsPath = Path.Combine(FwDirectoryFinder.SourceDirectory, "LexText", "Interlinear", "ITextDllTests",
                                                      "ParagraphParserTestTexts.xml");

            m_text1 = LoadTestText(textDefinitionsPath, 1, m_textsDefn);
            m_para1 = m_text1.ContentsOA.ParagraphsOS[0] as IStTxtPara;
            ParseTestText();

            m_tagChild = new TestTaggingChild(Cache);
            m_tagChild.SetText(m_text1.ContentsOA);

            // This could change, but at least it gives a reasonably stable list to test from.
            m_textMarkupTags = Cache.LangProject.GetDefaultTextTagList();
            LoadTagListPossibilities();
        }
		/// <summary>
		/// non-undoable task
		/// </summary>
		private void DoSetupFixture()
		{
			// setup default vernacular ws.
			m_wsXkal = Cache.ServiceLocator.WritingSystemManager.Set("qaa-x-kal");
			m_wsXkal.DefaultFontName = "Times New Roman";
			Cache.ServiceLocator.WritingSystems.VernacularWritingSystems.Add(m_wsXkal);
			Cache.ServiceLocator.WritingSystems.CurrentVernacularWritingSystems.Insert(0, m_wsXkal);
			m_textsDefn = new XmlDocument();
			m_tagRepo = Cache.ServiceLocator.GetInstance<ITextTagRepository>();
			ConfigurationFilePath("Language Explorer/Configuration/Words/AreaConfiguration.xml");
			m_text1 = LoadTestText("FDO/FDOTests/TestData/ParagraphParserTestTexts.xml", 1, m_textsDefn);
			m_para1 = m_text1.ContentsOA.ParagraphsOS[0] as IStTxtPara;
			ParseTestText();

			m_tagChild = new TestTaggingChild(Cache);
			m_tagChild.SetText(m_text1.ContentsOA);

			// This could change, but at least it gives a reasonably stable list to test from.
			m_textMarkupTags = Cache.LangProject.GetDefaultTextTagList();
			LoadTagListPossibilities();
		}