MakeRoot() public method

Makes the rootbox for the view.
public MakeRoot ( ) : void
return void
Ejemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Refreshes the display of the preview
        /// </summary>
        /// ------------------------------------------------------------------------------------
        private void UpdatePreView()
        {
            IPubHFSet hfset = CurrentHFSet;

            // description
            m_txtBoxDescription.Text = hfset.Description.Text;

            UpdateFirstPagePreview();

            UpdateEvenPagePreview();

            // odd page
            if (m_hfsvOddTop != null)
            {
                m_hfsvOddTop.Header = hfset.DefaultHeaderOA.Hvo;
                m_hfsvOddTop.MakeRoot();
                m_hfsvOddTop.PerformLayout();
            }
            if (m_hfsvOddBottom != null)
            {
                m_hfsvOddBottom.Header = hfset.DefaultFooterOA.Hvo;
                m_hfsvOddBottom.MakeRoot();
                m_hfsvOddBottom.PerformLayout();
            }
        }
Ejemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Refreshes the display of the even page preview
        /// </summary>
        /// ------------------------------------------------------------------------------------
        private void UpdateEvenPagePreview()
        {
            IPubHFSet hfset = CurrentHFSet;

            if (m_hfsvEvenTop != null)
            {
                m_hfsvEvenTop.Header = (m_chkEvenSameAsOdd.Checked ?
                                        hfset.DefaultHeaderOA.Hvo :
                                        hfset.EvenHeaderOA.Hvo);
                m_hfsvEvenTop.MakeRoot();
                m_hfsvEvenTop.PerformLayout();
            }
            if (m_hfsvEvenBottom != null)
            {
                m_hfsvEvenBottom.Header = (m_chkEvenSameAsOdd.Checked ?
                                           hfset.DefaultFooterOA.Hvo :
                                           hfset.EvenFooterOA.Hvo);
                m_hfsvEvenBottom.MakeRoot();
                m_hfsvEvenBottom.PerformLayout();
            }
        }
Ejemplo n.º 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Refreshes the display of the first page preview
        /// </summary>
        /// ------------------------------------------------------------------------------------
        private void UpdateFirstPagePreview()
        {
            IPubHFSet hfset = CurrentHFSet;

            if (m_hfsvFirstTop != null)
            {
                m_hfsvFirstTop.Header = (m_chkFirstSameAsOdd.Checked ?
                                         hfset.DefaultHeaderOA.Hvo :
                                         hfset.FirstHeaderOA.Hvo);
                m_hfsvFirstTop.MakeRoot();
                m_hfsvFirstTop.PerformLayout();
            }
            if (m_hfsvFirstBottom != null)
            {
                m_hfsvFirstBottom.Header = (m_chkFirstSameAsOdd.Checked ?
                                            hfset.DefaultFooterOA.Hvo :
                                            hfset.FirstFooterOA.Hvo);
                m_hfsvFirstBottom.MakeRoot();
                m_hfsvFirstBottom.PerformLayout();
            }
        }
Ejemplo n.º 4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Changes a header/footer panel to be a HFSetView with the correct info
		/// </summary>
		/// <param name="pan"></param>
		/// <param name="hvoToDisplay"></param>
		/// ------------------------------------------------------------------------------------
		private HFSetView ChangePanelToView(Panel pan, int hvoToDisplay)
		{
			HFDialogsPageInfo info = new HFDialogsPageInfo(m_pub.IsLeftBound);
			info.PageNumber = 1;
			HFModifyDlgVC vc = new HFModifyDlgVC(info,
				m_caches.MainCache.DefaultVernWs,
				DateTime.Now, m_caches.MainCache);
			HFSetView view = new HFSetView(m_caches.DataAccess, vc, hvoToDisplay);
			view.MakeRoot();
			view.Dock = DockStyle.Fill;
			view.LostFocus += new EventHandler(view_LostFocus);
			pan.Controls.Add(view);
			return view;
		}