Beispiel #1
0
        private void method_10(CellExt cellExt_2)
        {
            int    num6;
            int    row     = cellExt_2.Row;
            int    col     = cellExt_2.Col;
            int    colSize = ColSize;
            int    endCol  = cellExt_2.EndCol;
            object obj2    = cellExt_2.getPropValue(308);

            if ((obj2 == null) || ((bool)obj2))
            {
                num6 = 0;
                for (int i = endCol + 1; i < colSize; i++)
                {
                    if (getCell(row, i) != null)
                    {
                        break;
                    }
                    num6++;
                }
            }
            else
            {
                int num7 = colSize;
                while (num7 >= col)
                {
                    if (getCell(row, num7) != null)
                    {
                        endCol = getCell(row, num7).EndCol;
                        break;
                    }
                    num7--;
                }
                int colInc = (colSize - endCol) - 1;
                if (colInc > 0)
                {
                    for (num7 = endCol; num7 >= col; num7--)
                    {
                        CellExt ext = getCell(row, num7);
                        if (ext != null)
                        {
                            method_8(ext);
                            ext.move(0, colInc);
                            method_9(ext);
                        }
                    }
                }
                if ((col > 1) && (getCell(row, col - 1) != null))
                {
                    method_10(getCell(row, col - 1));
                }
                return;
            }
            if (num6 > 0)
            {
                method_8(cellExt_2);
                cellExt_2.expand(0, num6);
                method_9(cellExt_2);
            }
        }
Beispiel #2
0
 internal virtual void vmethod_7(int int_3)
 {
     if (int_3 > 0)
     {
         for (int i = 1; i < ColSize; i++)
         {
             CellExt ext2 = getCell(int_3, i);
             if (ext2 != null)
             {
                 int rowMerge = ext2.RowMerge;
                 if (rowMerge > 1)
                 {
                     ext2.setMerge(rowMerge - 1, ext2.ColMerge);
                 }
             }
         }
         for (int j = int_3 + 1; j < RowSize; j++)
         {
             for (int k = 0; k < ColSize; k++)
             {
                 if (!isMerged(j, k))
                 {
                     CellExt ext = getCell(j, k);
                     if (ext != null)
                     {
                         ext.move(-1, 0);
                     }
                 }
             }
         }
         matrix.deleteRow(int_3);
     }
 }
Beispiel #3
0
 internal virtual void vmethod_8(int int_3)
 {
     if (int_3 > 0)
     {
         for (int i = 1; i < RowSize; i++)
         {
             CellExt ext2 = getCell(i, int_3);
             if (ext2 != null)
             {
                 int colMerge = ext2.ColMerge;
                 if (colMerge > 1)
                 {
                     ext2.setMerge(ext2.RowMerge, colMerge - 1);
                 }
             }
         }
         for (int j = int_3 + 1; j < ColSize; j++)
         {
             for (int k = 0; k < RowSize; k++)
             {
                 if (!isMerged(k, j))
                 {
                     CellExt ext = getCell(k, j);
                     if (ext != null)
                     {
                         ext.move(0, -1);
                     }
                 }
             }
         }
         matrix.deleteCol(int_3);
     }
 }
Beispiel #4
0
 internal virtual void vmethod_0(int int_3, int int_4)
 {
     matrix.addRows(int_3, int_4);
     for (int i = int_3 + int_4; i < RowSize; i++)
     {
         for (int j = 0; j < ColSize; j++)
         {
             CellExt ext = getCell(i, j);
             if (ext != null)
             {
                 ext.move(int_4, 0);
             }
         }
     }
 }
Beispiel #5
0
 internal virtual void vmethod_2(int int_3, int int_4, int int_5, int int_6, bool bool_2)
 {
     if (int_5 > 0)
     {
         matrix.addCols(int_3, int_4, int_5, int_6, bool_2);
     }
     for (int i = int_3 + int_4; i < ColSize; i++)
     {
         for (int j = 0; j <= RowSize; j++)
         {
             if ((bool_2 && (j == 0)) || ((j >= int_5) && (j <= int_6)))
             {
                 CellExt ext = getCell(j, i);
                 if (ext != null)
                 {
                     ext.move(0, int_4);
                 }
             }
         }
     }
 }