/// ------------------------------------------------------------------------------------ /// <summary> /// Insert the specified paragraphs and show the dialog /// </summary> /// ------------------------------------------------------------------------------------ protected void ShowForm() { m_basicView.DisplayType = DummyBasicViewVc.DisplayType.kBookTitle; // m_basicView.MakeEnglishParagraphs(); // We don't actually want to show it, but we need to force the view to create the root // box and lay it out so that various test stuff can happen properly. m_basicView.Width = 300; m_basicView.Height = 307 - 25; m_basicView.MakeRoot(m_scr.ScriptureBooksOS[0].Hvo, ScrBookTags.kflidTitle); m_basicView.CallLayout(); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Insert the specified paragraphs and show the dialog /// </summary> /// ------------------------------------------------------------------------------------ protected void ShowForm() { m_basicView.DisplayType = DummyBasicViewVc.DisplayType.kAll; m_basicView.MakeEnglishParagraphs(); // We don't actually want to show it, but we need to force the view to create the root // box and lay it out so that various test stuff can happen properly. m_basicView.Width = 300; m_basicView.Height = 307 - 25; m_basicView.MakeRoot(); m_basicView.CallLayout(); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Set up the test form. /// </summary> /// <param name="display"></param> /// ------------------------------------------------------------------------------------ protected virtual void ShowForm(DummyBasicViewVc.DisplayType display) { Assert.IsTrue(m_flidContainingTexts != 0, "Need to initialize m_flidContainingTexts"); m_basicView.DisplayType = display; // We don't actually want to show it, but we need to force the view to create the root // box and lay it out so that various test stuff can happen properly. m_basicView.Width = 300; m_basicView.Height = 307 - 25; m_basicView.MakeRoot(m_hvoRoot, m_flidContainingTexts, m_frag); m_basicView.CallLayout(); }
public override void TestSetup() { base.TestSetup(); IWritingSystemManager wsManager = Cache.ServiceLocator.WritingSystemManager; m_genesis = AddBookToMockedScripture(1, "Genesis"); m_text = AddTitleToMockedBook(m_genesis, m_kTitleText, wsManager.GetWsFromStr("en-fonipa-x-etic")); m_vwPattern = VwPatternClass.Create(); m_Stylesheet = new TestFwStylesheet(); m_vwRootsite = new DummyBasicView(); m_vwRootsite.StyleSheet = m_Stylesheet; m_vwRootsite.Cache = Cache; m_vwRootsite.DisplayType = DummyBasicViewVc.DisplayType.kMappedPara; // Needed for some footnote tests m_vwRootsite.MakeRoot(m_text.Hvo, ScrBookTags.kflidTitle, 3); m_dlg = new DummyFwFindReplaceDlg(); IWritingSystemContainer wsContainer = Cache.ServiceLocator.WritingSystems; wsContainer.AnalysisWritingSystems.Add(wsManager.Get("en-fonipa-x-etic")); wsContainer.AnalysisWritingSystems.Add(wsManager.Get("fr")); wsContainer.AnalysisWritingSystems.Add(wsManager.Get("de")); wsContainer.AnalysisWritingSystems.Add(wsManager.Get("es")); wsContainer.AnalysisWritingSystems.Add(wsManager.Get("ur")); }
public override void TestSetup() { base.TestSetup(); m_vwPattern = VwPatternClass.Create(); m_Stylesheet = new TestFwStylesheet(); m_vwRootsite = new DummyBasicView(); m_vwRootsite.StyleSheet = m_Stylesheet; m_vwRootsite.Cache = Cache; m_vwRootsite.DisplayType = DummyBasicViewVc.DisplayType.kNormal | DummyBasicViewVc.DisplayType.kDuplicateParagraphs; m_vwRootsite.MakeRoot(m_text.Hvo, ScrBookTags.kflidTitle, 3); m_dlg = new DummyFwFindReplaceDlg(); }
public override void Initialize() { CheckDisposed(); base.Initialize(); m_vwPattern = VwPatternClass.Create(); m_Stylesheet = new TestFwStylesheet(); m_vwRootsite = new DummyBasicView(); m_vwRootsite.StyleSheet = m_Stylesheet; m_vwRootsite.Cache = Cache; m_vwRootsite.DisplayType = DummyBasicViewVc.DisplayType.kMappedPara; // Needed for some footnote tests m_vwRootsite.MakeRoot(m_text.Hvo, (int)ScrBook.ScrBookTags.kflidTitle, 3); m_dlg = new DummyFwFindReplaceDlg(); Cache.LanguageWritingSystemFactoryAccessor.BypassInstall = true; m_inMemoryCache.InitializeWritingSystemEncodings(); }