Lines Matching refs:tableMap

256 FCKTableHandler._ReplaceCellsByMarker = function( tableMap, marker, substitute )  argument
258 for ( var i = 0 ; i < tableMap.length ; i++ )
260 for ( var j = 0 ; j < tableMap[i].length ; j++ )
262 if ( tableMap[i][j][marker] )
263 tableMap[i][j] = substitute ;
268 FCKTableHandler._GetMarkerGeometry = function( tableMap, rowIdx, colIdx, markerName ) argument
274 for ( var i = colIdx ; tableMap[rowIdx][i] && tableMap[rowIdx][i][markerName] ; i++ )
276 for ( var i = colIdx - 1 ; tableMap[rowIdx][i] && tableMap[rowIdx][i][markerName] ; i-- )
281 …for ( var i = rowIdx ; tableMap[i] && tableMap[i][colIdx] && tableMap[i][colIdx][markerName] ; i++…
283 …for ( var i = rowIdx - 1 ; tableMap[i] && tableMap[i][colIdx] && tableMap[i][colIdx][markerName] ;…
301 var tableMap = this._CreateTableMap( cells[0].parentNode.parentNode ) ;
303 var colIdx = this._GetCellIndexSpan( tableMap, rowIdx, cells[0] ) ;
305 var geometry = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_CellSelected' ) ;
314 if ( ! tableMap[rowIdx] || ! tableMap[rowIdx][colIdx] )
319 var g = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_CellSelected' ) ;
332 if ( ! tableMap[rowIdx] || ! tableMap[rowIdx][colIdx] )
337 var g = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_CellSelected' ) ;
360 var tableMap = this._CreateTableMap( refCell.parentNode.parentNode ) ;
362 var colIdx = this._GetCellIndexSpan( tableMap, rowIdx, refCell ) ;
365 var selectionGeometry = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_SelectedCells' ) ;
375 var currentCell = tableMap[baseRowIdx + i][baseColIdx + j] ;
391 this._ReplaceCellsByMarker( tableMap, '_SelectedCells', refCell ) ;
393 this._InstallTableMap( tableMap, refCell.parentNode.parentNode ) ;
408 var tableMap = target.tableMap ;
418 this._ReplaceCellsByMarker( tableMap, '_Replace', refCell ) ;
419 this._InstallTableMap( tableMap, refCell.parentNode.parentNode ) ;
430 var tableMap = target.tableMap ;
440 this._ReplaceCellsByMarker( tableMap, '_Replace', refCell ) ;
441 this._InstallTableMap( tableMap, refCell.parentNode.parentNode ) ;
453 var tableMap = this._CreateTableMap( refCell.parentNode.parentNode ) ;
455 var colIdx = FCKTableHandler._GetCellIndexSpan( tableMap, rowIdx, refCell ) ;
472 tableMap[r][i] = newCell ;
480 for ( var i = 0 ; i < tableMap.length ; i++ )
482 var newRow = tableMap[i].slice( 0, colIdx ) ;
483 if ( tableMap[i].length <= colIdx )
488 if ( tableMap[i][colIdx] == refCell )
497 newRow.push( tableMap[i][colIdx] ) ;
498 newRow.push( tableMap[i][colIdx] ) ;
500 for ( var j = colIdx + 1 ; j < tableMap[i].length ; j++ )
501 newRow.push( tableMap[i][j] ) ;
504 tableMap = newTableMap ;
507 this._InstallTableMap( tableMap, refCell.parentNode.parentNode ) ;
517 var tableMap = this._CreateTableMap( currentCell.parentNode.parentNode ) ;
518 …var cellIndex = FCKTableHandler._GetCellIndexSpan( tableMap, currentCell.parentNode.rowIndex, curr…
532 for ( var i = cellIndex+1 ; i < tableMap[newCellRowIndex].length ; i++ )
534 if ( tableMap[newCellRowIndex][i].parentNode.rowIndex == newCellRowIndex )
536 insertMarker = tableMap[newCellRowIndex][i] ;
556 for ( var i = 0 ; i < tableMap[currentRowIndex].length ; )
558 var colSpan = tableMap[currentRowIndex][i].colSpan ;
566 var rowSpan = tableMap[currentRowIndex][i].rowSpan ;
569 tableMap[currentRowIndex][i].rowSpan = rowSpan + 1 ;
582 FCKTableHandler._GetCellIndexSpan = function( tableMap, rowIndex, cell ) argument
584 if ( tableMap.length < rowIndex + 1 )
587 var oRow = tableMap[ rowIndex ] ;
599 FCKTableHandler._GetCellLocation = function( tableMap, cell ) argument
601 for ( var i = 0 ; i < tableMap.length; i++ )
603 for ( var c = 0 ; c < tableMap[i].length ; c++ )
605 if ( tableMap[i][c] == cell ) return [i,c];
612 FCKTableHandler._GetColumnCells = function( tableMap, columnIndex ) argument
616 for ( var r = 0 ; r < tableMap.length ; r++ )
618 var oCell = tableMap[r][columnIndex] ;
678 FCKTableHandler._InstallTableMap = function( tableMap, table ) argument
688 for ( var i = 0 ; i < tableMap.length ; i++ )
690 for ( var j = 0 ; j < tableMap[i].length ; j++ )
692 var cell = tableMap[i][j] ;
701 for ( var i = 0 ; i < tableMap.length ; i++ )
703 for ( var j = 0 ; j < tableMap[i].length ; j++ )
705 var cell = tableMap[i][j] ;
712 if ( tableMap[i][j-1] == cell )
714 if ( tableMap[i][j+1] != cell )
722 for ( var j = 0 ; j < tableMap.length ; j++ )
724 if ( ! tableMap[j] )
726 var cell = tableMap[j][i] ;
729 if ( tableMap[j-1] && tableMap[j-1][i] == cell )
731 if ( ! tableMap[j+1] || tableMap[j+1][i] != cell )
737 for ( var i = 0 ; i < tableMap.length ; i++ )
739 for ( var j = 0 ; j < tableMap[i].length ; j++)
741 var cell = tableMap[i][j] ;
756 for ( var i = 0 ; i < tableMap.length ; i++ )
759 for ( var j = 0 ; j < tableMap[i].length ; )
761 var cell = tableMap[i][j] ;
762 if ( tableMap[i-1] && tableMap[i-1][j] == cell )
808 var tableMap = this._CreateTableMap( refCell.parentNode.parentNode ) ;
810 var colIdx = this._GetCellIndexSpan( tableMap, rowIdx, refCell ) ;
812 var nextCell = tableMap[rowIdx][nextColIdx] ;
819 var refGeometry = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_SizeTest' ) ;
820 var nextGeometry = this._GetMarkerGeometry( tableMap, rowIdx, nextColIdx, '_SizeTest' ) ;
826 return { 'refCell' : refCell, 'nextCell' : nextCell, 'tableMap' : tableMap } ;
836 var tableMap = this._CreateTableMap( refCell.parentNode.parentNode ) ;
838 var colIdx = this._GetCellIndexSpan( tableMap, rowIdx, refCell ) ;
840 if ( ! tableMap[newRowIdx] )
843 var nextCell = tableMap[newRowIdx][colIdx] ;
850 var refGeometry = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_SizeTest' ) ;
851 var nextGeometry = this._GetMarkerGeometry( tableMap, newRowIdx, colIdx, '_SizeTest' ) ;
857 return { 'refCell' : refCell, 'nextCell' : nextCell, 'tableMap' : tableMap } ;