internal void NewOuterCells()
 {
     if (0 < m_currentCellInnerIndex || m_cells.Count == 0)
     {
         if (((CustomReportItem)m_reportItemDef).ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
         {
             CustomReportItemCellInstanceList value = new CustomReportItemCellInstanceList();
             m_cells.Add(value);
         }
         if (0 < m_currentCellInnerIndex)
         {
             m_currentCellOuterIndex++;
             m_currentCellInnerIndex = 0;
         }
     }
 }
        internal CustomReportItemCellInstance AddCell(ReportProcessing.ProcessingContext pc)
        {
            CustomReportItem customReportItem = (CustomReportItem)m_reportItemDef;
            bool             num = customReportItem.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column;
            int rowIndex;
            int colIndex;

            if (num)
            {
                rowIndex = m_currentOuterStaticIndex;
                colIndex = m_currentInnerStaticIndex;
            }
            else
            {
                colIndex = m_currentOuterStaticIndex;
                rowIndex = m_currentInnerStaticIndex;
            }
            CustomReportItemCellInstance customReportItemCellInstance = new CustomReportItemCellInstance(rowIndex, colIndex, customReportItem, pc);

            if (num)
            {
                m_cells[m_currentCellOuterIndex].Add(customReportItemCellInstance);
            }
            else
            {
                if (m_currentCellOuterIndex == 0)
                {
                    Global.Tracer.Assert(m_cells.Count == m_currentCellInnerIndex);
                    CustomReportItemCellInstanceList value = new CustomReportItemCellInstanceList();
                    m_cells.Add(value);
                }
                m_cells[m_currentCellInnerIndex].Add(customReportItemCellInstance);
            }
            m_currentCellInnerIndex++;
            return(customReportItemCellInstance);
        }