Ejemplo n.º 1
0
 bool IPageBreakItem.IgnorePageBreaks()
 {
     if (m_pagebreakState == PageBreakStates.Unknown)
     {
         m_pagebreakState = PageBreakStates.CanIgnore;
         if (SharedHiddenState.Never == Visibility.GetSharedHidden(m_visibility))
         {
             if (m_tableColumns != null)
             {
                 int i;
                 for (i = 0; i < m_tableColumns.Count && SharedHiddenState.Never != Visibility.GetSharedHidden(m_tableColumns[i].Visibility); i++)
                 {
                 }
                 if (i < m_tableColumns.Count)
                 {
                     m_pagebreakState = PageBreakStates.CannotIgnore;
                 }
             }
             if (PageBreakStates.CannotIgnore == m_pagebreakState)
             {
                 if (m_tableGroups == null)
                 {
                     if (m_tableDetail != null)
                     {
                         if (SharedHiddenState.Never != Visibility.GetSharedHidden(m_tableDetail.Visibility))
                         {
                             m_pagebreakState = PageBreakStates.CanIgnore;
                         }
                         for (int j = 0; j < m_tableDetail.DetailRows.Count; j++)
                         {
                             if (SharedHiddenState.Never != Visibility.GetSharedHidden(m_tableDetail.DetailRows[j].Visibility))
                             {
                                 m_pagebreakState = PageBreakStates.CanIgnore;
                             }
                         }
                     }
                 }
                 else if (SharedHiddenState.Never != Visibility.GetSharedHidden(m_tableGroups.Visibility))
                 {
                     m_pagebreakState = PageBreakStates.CanIgnore;
                 }
             }
         }
     }
     if (PageBreakStates.CanIgnore == m_pagebreakState)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 private TextBox FindNotAlwaysHiddenTextBox(ReportItem reportItem)
 {
     if (reportItem is TextBox)
     {
         if (Visibility.GetSharedHidden(reportItem.Visibility) != 0)
         {
             return((TextBox)reportItem);
         }
     }
     else if (reportItem is Rectangle)
     {
         return(FindNotAlwaysHiddenTextBox(((Rectangle)reportItem).ReportItems));
     }
     return(null);
 }
Ejemplo n.º 3
0
 protected bool IgnorePageBreaks(Visibility visibility)
 {
     if (m_pagebreakState == PageBreakStates.Unknown)
     {
         if (SharedHiddenState.Never != Visibility.GetSharedHidden(visibility))
         {
             m_pagebreakState = PageBreakStates.CanIgnore;
         }
         else
         {
             m_pagebreakState = PageBreakStates.CannotIgnore;
         }
     }
     if (PageBreakStates.CanIgnore == m_pagebreakState)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 4
0
 bool IPageBreakItem.IgnorePageBreaks()
 {
     if (m_pagebreakState == PageBreakStates.Unknown)
     {
         if (m_repeatedSibling || SharedHiddenState.Never != Visibility.GetSharedHidden(m_visibility))
         {
             m_pagebreakState = PageBreakStates.CanIgnore;
         }
         else
         {
             m_pagebreakState = PageBreakStates.CannotIgnore;
         }
     }
     if (PageBreakStates.CanIgnore == m_pagebreakState)
     {
         return(true);
     }
     return(false);
 }