Beispiel #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();
            }
        }
Beispiel #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();
            }
        }
Beispiel #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();
            }
        }