Beispiel #1
0
        public virtual void expandLeftHead(int mergeInc)
        {
            if (mergeInc < 0)
            {
                throw new SystemException();
            }
            CellExt ext  = prevCell;
            CellExt ext2 = this;

            while (ext != null)
            {
                for (int i = 0; i < ext.SubCells.Count; i++)
                {
                    CellExt ext3 = (CellExt)ext.SubCells[i];
                    if ((ext3 != ext2) && ext3.containRow(this))
                    {
                        ext3.expand(mergeInc, 0);
                    }
                }
                if (ext.containRow(this))
                {
                    ext.expand(mergeInc, 0);
                }
                ext2 = ext;
                ext  = ext.prevCell;
            }
        }
Beispiel #2
0
        public virtual void expandTopHead(int mergeInc)
        {
            if (mergeInc < 0)
            {
                throw new SystemException();
            }
            CellExt ext  = nextCell;
            CellExt ext2 = this;

            while (ext != null)
            {
                for (int i = 0; i < ext.SubCells.Count; i++)
                {
                    CellExt other = (CellExt)ext.SubCells[i];
                    if (((other != ext2) && other.containCol(this)) && sameRowTypeAs(other))
                    {
                        other.expand(0, mergeInc);
                    }
                }
                if (ext.containCol(this))
                {
                    ext.expand(0, mergeInc);
                }
                ext2 = ext;
                ext  = ext.nextCell;
            }
        }
Beispiel #3
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);
            }
        }