/// ------------------------------------------------------------------------------------
        /// <summary>
        /// Override to start an undoable UOW.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public override void TestSetup()
        {
            base.TestSetup();

            FwStyleSheet styleSheet = new FwStyleSheet();

            styleSheet.Init(Cache, m_scr.Hvo, ScriptureTags.kflidStyles);

            Debug.Assert(m_draftView == null);
            m_draftView            = new TeDummyBasicView();
            m_draftView.Cache      = Cache;
            m_draftView.Visible    = false;
            m_draftView.StyleSheet = styleSheet;

            m_draftView.Width  = 300;
            m_draftView.Height = 290;
            m_draftView.CallLayout();

            var exod = CreateExodusData();
            var levi = CreateLeviticusData();

            ((TeEditingHelper)m_draftView.EditingHelper).BookFilter.Add(new IScrBook[] { exod, levi });

            m_actionHandler.EndUndoTask();             // This should cause a PropChanged to update the view
            m_actionHandler.BeginUndoTask("Test", "Test");
        }
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Override to end the undoable UOW, Undo everything, and 'commit',
        /// which will essentially clear out the Redo stack.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public override void TestTearDown()
        {
            m_draftView.CloseRootBox();
            m_draftView.Dispose();
            m_draftView = null;

            base.TestTearDown();
        }
Exemplo n.º 3
0
        public override void Exit()
        {
            CheckDisposed();

            m_draftView.CloseRootBox();
            m_draftView.Dispose();
            m_draftView = null;

            base.Exit();
        }
Exemplo n.º 4
0
        public override void Initialize()
        {
            CheckDisposed();
            base.Initialize();

            FwStyleSheet styleSheet = new FwStyleSheet();

            styleSheet.Init(Cache, m_scr.Hvo, (int)Scripture.ScriptureTags.kflidStyles);

            Debug.Assert(m_draftView == null);
            m_draftView            = new TeDummyBasicView();
            m_draftView.Cache      = Cache;
            m_draftView.Visible    = false;
            m_draftView.StyleSheet = styleSheet;

            m_draftView.Width  = 300;
            m_draftView.Height = 290;
            m_draftView.CallLayout();
        }
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Override to end the undoable UOW, Undo everything, and 'commit',
		/// which will essentially clear out the Redo stack.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void TestTearDown()
		{
			m_draftView.CloseRootBox();
			m_draftView.Dispose();
			m_draftView = null;

			base.TestTearDown();
		}
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Override to start an undoable UOW.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void TestSetup()
		{
			base.TestSetup();

			FwStyleSheet styleSheet = new FwStyleSheet();
			styleSheet.Init(Cache, m_scr.Hvo, ScriptureTags.kflidStyles);

			Debug.Assert(m_draftView == null);
			m_draftView = new TeDummyBasicView();
			m_draftView.Cache = Cache;
			m_draftView.Visible = false;
			m_draftView.StyleSheet = styleSheet;

			m_draftView.Width = 300;
			m_draftView.Height = 290;
			m_draftView.CallLayout();

			var exod = CreateExodusData();
			var levi = CreateLeviticusData();
			((TeEditingHelper)m_draftView.EditingHelper).BookFilter.Add(new IScrBook[] { exod, levi });

			m_actionHandler.EndUndoTask(); // This should cause a PropChanged to update the view
			m_actionHandler.BeginUndoTask("Test", "Test");
		}
		public override void Exit()
		{
			CheckDisposed();

			m_draftView.CloseRootBox();
			m_draftView.Dispose();
			m_draftView = null;

			base.Exit();
		}
		public override void Initialize()
		{
			CheckDisposed();
			base.Initialize();

			FwStyleSheet styleSheet = new FwStyleSheet();
			styleSheet.Init(Cache, m_scr.Hvo, (int)Scripture.ScriptureTags.kflidStyles);

			Debug.Assert(m_draftView == null);
			m_draftView = new TeDummyBasicView();
			m_draftView.Cache = Cache;
			m_draftView.Visible = false;
			m_draftView.StyleSheet = styleSheet;

			m_draftView.Width = 300;
			m_draftView.Height = 290;
			m_draftView.CallLayout();
		}