Lines Matching refs:nCol
365 sal_Int32 nRow, nCol; in findMergeOrigin() local
373 nCol = nMergedX; in findMergeOrigin()
374 for( i = 0; (i <= nStep) && (nCol >= nMinCol); i++, nCol-- ) in findMergeOrigin()
376 if( checkMergeOrigin( xTable, nMergedX, nMergedY, nCol, nRow, bCheckVert ) ) in findMergeOrigin()
378 rOriginX = nCol; rOriginY = nRow; in findMergeOrigin()
384 if( nCol == nMergedX ) in findMergeOrigin()
404 nCol = nMergedX - nStep; in findMergeOrigin()
405 if( nCol >= nMinCol ) in findMergeOrigin()
410 if( checkMergeOrigin( xTable, nMergedX, nMergedY, nCol, nRow, bCheckHorz ) ) in findMergeOrigin()
412 rOriginX = nCol; rOriginY = nRow; in findMergeOrigin()
420 nMinCol = nCol+1; in findMergeOrigin()
559 sal_Int32 nCol = 0, nRow = 0; in LayoutTableWidth() local
560 for( nCol = 0; nCol < nColCount; nCol++ ) in LayoutTableWidth()
568 CellRef xCell( getCell( CellPos( nCol, nRow ) ) ); in LayoutTableWidth()
577 aMergedCells[nCol+nColSpan-1].push_back( xCell ); in LayoutTableWidth()
586 maColumns[nCol].mnMinSize = nMinWidth; in LayoutTableWidth()
590 maColumns[nCol].mnSize = 0; in LayoutTableWidth()
595 Reference< XPropertySet > xColSet( xCols->getByIndex( nCol ), UNO_QUERY_THROW ); in LayoutTableWidth()
600 aOptimalColumns.push_back(nCol); in LayoutTableWidth()
607 maColumns[nCol].mnSize = nColWidth; in LayoutTableWidth()
609 if( maColumns[nCol].mnSize < nMinWidth ) in LayoutTableWidth()
610 maColumns[nCol].mnSize = nMinWidth; in LayoutTableWidth()
612 nCurrentWidth += maColumns[nCol].mnSize; in LayoutTableWidth()
637 for( nCol = 1; nCol < nColCount; ++nCol ) in LayoutTableWidth()
640 MergeableCellVector::iterator iter( aMergedCells[nCol].begin() ); in LayoutTableWidth()
642 const sal_Int32 nOldSize = maColumns[nCol].mnSize; in LayoutTableWidth()
644 while( iter != aMergedCells[nCol].end() ) in LayoutTableWidth()
649 … for( sal_Int32 nMCol = nCol - xCell->getColumnSpan() + 1; (nMCol > 0) && (nMCol < nCol); ++nMCol ) in LayoutTableWidth()
652 if( nMinWidth > maColumns[nCol].mnMinSize ) in LayoutTableWidth()
653 maColumns[nCol].mnMinSize = nMinWidth; in LayoutTableWidth()
655 if( nMinWidth > maColumns[nCol].mnSize ) in LayoutTableWidth()
657 maColumns[nCol].mnSize = nMinWidth; in LayoutTableWidth()
663 nCurrentWidth += maColumns[nCol].mnSize - nOldSize; in LayoutTableWidth()
675 while( coliter.next(nCol ) ) in LayoutTableWidth()
677 maColumns[nCol].mnPos = nNewWidth; in LayoutTableWidth()
678 nNewWidth += maColumns[nCol].mnSize; in LayoutTableWidth()
681 Reference< XPropertySet > xColSet( xCols->getByIndex(nCol), UNO_QUERY_THROW ); in LayoutTableWidth()
682 xColSet->setPropertyValue( msSize, Any( maColumns[nCol].mnSize ) ); in LayoutTableWidth()
709 sal_Int32 nCol, nRow; in LayoutTableHeight() local
716 for( nCol = 0; nCol < nColCount; ++nCol ) in LayoutTableHeight()
718 CellRef xCell( getCell( CellPos( nCol, nRow ) ) ); in LayoutTableHeight()
862 for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) in LayoutTable() local
863 maColumns[nCol].clear(); in LayoutTable()
955 void TableLayouter::SetBorder( sal_Int32 nCol, sal_Int32 nRow, bool bHorizontal, const SvxBorderLin… in SetBorder() argument
960 …SvxBorderLine *pOld = bHorizontal ? maHorizontalBorders[nCol][nRow] : maVerticalBorders[nCol][nRow… in SetBorder()
970 maHorizontalBorders[nCol][nRow] = pNew; in SetBorder()
972 maVerticalBorders[nCol][nRow] = pNew; in SetBorder()
990 for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) in ClearBorderLayout() local
992 const sal_Int32 nRowCount = rMap[nCol].size(); in ClearBorderLayout()
995 SvxBorderLine* pLine = rMap[nCol][nRow]; in ClearBorderLayout()
1001 rMap[nCol][nRow] = 0; in ClearBorderLayout()
1026 for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) in ResizeBorderLayout() local
1028 if( sal::static_int_cast<sal_Int32>(rMap[nCol].size()) != nRowCount ) in ResizeBorderLayout()
1029 rMap[nCol].resize( nRowCount ); in ResizeBorderLayout()
1067 for( sal_Int32 nCol = aPos.mnCol; nCol < nLastCol; nCol++ ) in UpdateBorderLayout() local
1069 SetBorder( nCol, aPos.mnRow, true, pThisAttr->GetTop() ); in UpdateBorderLayout()
1070 SetBorder( nCol, nLastRow, true, pThisAttr->GetBottom() ); in UpdateBorderLayout()
1122 for( sal_Int32 nCol = nFirstCol; nCol <= nLastCol; ++nCol ) in DistributeColumns() local
1123 nAllWidth += getColumnWidth(nCol); in DistributeColumns()
1129 for( sal_Int32 nCol = nFirstCol; nCol <= nLastCol; ++nCol ) in DistributeColumns() local
1131 if( nCol == nLastCol ) in DistributeColumns()
1134 Reference< XPropertySet > xColSet( xCols->getByIndex( nCol ), UNO_QUERY_THROW ); in DistributeColumns()