Lines Matching refs:sal_Int32

84 	sal_Int32 width = 0;  in getCellSize()
85 sal_Int32 height = 0; in getCellSize()
94 sal_Int32 nRowCount = getRowCount(); in getCellSize()
95 sal_Int32 nRowSpan = std::max( xCell->getRowSpan(), (sal_Int32)1 ); in getCellSize()
98 if( ((sal_Int32)maRows.size()) <= aPos.mnRow ) in getCellSize()
105 sal_Int32 nColCount = getColumnCount(); in getCellSize()
106 sal_Int32 nColSpan = std::max( xCell->getColumnSpan(), (sal_Int32)1 ); in getCellSize()
109 if( ((sal_Int32)maColumns.size()) <= aPos.mnCol ) in getCellSize()
136 … if( (rPos.mnCol < ((sal_Int32)maColumns.size()) && (rPos.mnRow < ((sal_Int32)maRows.size()) ) ) ) in getCellArea()
138 const sal_Int32 x = maColumns[rPos.mnCol].mnPos; in getCellArea()
139 const sal_Int32 y = maRows[rPos.mnRow].mnPos; in getCellArea()
155 sal_Int32 TableLayouter::getRowHeight( sal_Int32 nRow ) in getRowHeight()
165 void TableLayouter::setRowHeight( sal_Int32 nRow, sal_Int32 nHeight ) in setRowHeight()
179 sal_Int32 TableLayouter::getColumnWidth( sal_Int32 nColumn ) in getColumnWidth()
189 void TableLayouter::setColumnWidth( sal_Int32 nColumn, sal_Int32 nWidth ) in setColumnWidth()
199 bool TableLayouter::isEdgeVisible( sal_Int32 nEdgeX, sal_Int32 nEdgeY, bool bHorizontal ) const in isEdgeVisible()
203 if( (nEdgeX >= 0) && (nEdgeX < sal::static_int_cast<sal_Int32>(rMap.size())) && in isEdgeVisible()
204 (nEdgeY >= 0) && (nEdgeY < sal::static_int_cast<sal_Int32>(rMap[nEdgeX].size())) ) in isEdgeVisible()
219 SvxBorderLine* TableLayouter::getBorderLine( sal_Int32 nEdgeX, sal_Int32 nEdgeY, bool bHorizontal )… in getBorderLine()
225 if( (nEdgeX >= 0) && (nEdgeX < sal::static_int_cast<sal_Int32>(rMap.size())) && in getBorderLine()
226 (nEdgeY >= 0) && (nEdgeY < sal::static_int_cast<sal_Int32>(rMap[nEdgeX].size())) ) in getBorderLine()
242 sal_Int32 TableLayouter::getHorizontalEdge( int nEdgeY, sal_Int32* pnMin /*= 0*/, sal_Int32* pnMax … in getHorizontalEdge()
244 sal_Int32 nRet = 0; in getHorizontalEdge()
246 nRet = maRows[std::min((sal_Int32)nEdgeY,getRowCount()-1)].mnPos; in getHorizontalEdge()
272 sal_Int32 TableLayouter::getVerticalEdge( int nEdgeX, sal_Int32* pnMin /*= 0*/, sal_Int32* pnMax /*… in getVerticalEdge()
274 sal_Int32 nRet = 0; in getVerticalEdge()
276 const sal_Int32 nColCount = getColumnCount(); in getVerticalEdge()
278 nRet = maColumns[std::min((sal_Int32)nEdgeX,nColCount-1)].mnPos; in getVerticalEdge()
327 …kMergeOrigin( const TableModelRef& xTable, sal_Int32 nMergedX, sal_Int32 nMergedY, sal_Int32 nCell… in checkMergeOrigin()
332 const sal_Int32 nRight = xCell->getColumnSpan() + nCellX; in checkMergeOrigin()
333 const sal_Int32 nBottom = xCell->getRowSpan() + nCellY; in checkMergeOrigin()
345 …ergeOrigin( const TableModelRef& xTable, sal_Int32 nMergedX, sal_Int32 nMergedY, sal_Int32& rOrigi… in findMergeOrigin()
360 sal_Int32 nMinCol = 0; in findMergeOrigin()
361 sal_Int32 nMinRow = 0; in findMergeOrigin()
363 sal_Int32 nStep = 1, i; in findMergeOrigin()
365 sal_Int32 nRow, nCol; in findMergeOrigin()
448 sal_Int32 TableLayouter::getMinimumColumnWidth( sal_Int32 nColumn ) in getMinimumColumnWidth()
463 sal_Int32 TableLayouter::distribute( LayoutVector& rLayouts, sal_Int32 nDistribute ) in distribute()
466 sal_Int32 nSafe = 100; in distribute()
489 sal_Int32 nCurrentWidth = 0; in distribute()
502 sal_Int32 nDistributed = nDistribute; in distribute()
508 sal_Int32 n; in distribute()
524 sal_Int32 nSize = 0; in distribute()
535 typedef std::vector< sal_Int32 > Int32Vector;
541 const sal_Int32 nColCount = getColumnCount(); in LayoutTableWidth()
542 const sal_Int32 nRowCount = getRowCount(); in LayoutTableWidth()
551 if( sal::static_int_cast< sal_Int32 >( maColumns.size() ) != nColCount ) in LayoutTableWidth()
558 sal_Int32 nCurrentWidth = 0; in LayoutTableWidth()
559 sal_Int32 nCol = 0, nRow = 0; in LayoutTableWidth()
562 sal_Int32 nMinWidth = 0; in LayoutTableWidth()
573 sal_Int32 nColSpan = xCell->getColumnSpan(); in LayoutTableWidth()
594 sal_Int32 nColWidth = 0; in LayoutTableWidth()
619 sal_Int32 nLeft = rArea.getWidth() - nCurrentWidth; in LayoutTableWidth()
620 sal_Int32 nDistribute = nLeft / aOptimalColumns.size(); in LayoutTableWidth()
625 sal_Int32 nOptCol = (*iter++); in LayoutTableWidth()
642 const sal_Int32 nOldSize = maColumns[nCol].mnSize; in LayoutTableWidth()
647 sal_Int32 nMinWidth = xCell->getMinimumSize().Width; in LayoutTableWidth()
649 … for( sal_Int32 nMCol = nCol - xCell->getColumnSpan() + 1; (nMCol > 0) && (nMCol < nCol); ++nMCol ) in LayoutTableWidth()
671 sal_Int32 nNewWidth = 0; in LayoutTableWidth()
674 RangeIterator<sal_Int32> coliter( 0, nColCount, !bRTL ); in LayoutTableWidth()
694 const sal_Int32 nColCount = getColumnCount(); in LayoutTableHeight()
695 const sal_Int32 nRowCount = getRowCount(); in LayoutTableHeight()
708 sal_Int32 nCurrentHeight = 0; in LayoutTableHeight()
709 sal_Int32 nCol, nRow; in LayoutTableHeight()
712 sal_Int32 nMinHeight = 0; in LayoutTableHeight()
723 sal_Int32 nRowSpan = xCell->getRowSpan(); in LayoutTableHeight()
744 sal_Int32 nRowHeight = 0; in LayoutTableHeight()
770 sal_Int32 nLeft = rArea.getHeight() - nCurrentHeight; in LayoutTableHeight()
771 sal_Int32 nDistribute = nLeft / aOptimalRows.size(); in LayoutTableHeight()
776 sal_Int32 nOptRow = (*iter++); in LayoutTableHeight()
792 sal_Int32 nOldSize = maRows[nRow].mnSize; in LayoutTableHeight()
798 sal_Int32 nMinHeight = xCell->getMinimumSize().Height; in LayoutTableHeight()
800 for( sal_Int32 nMRow = nRow - xCell->getRowSpan() + 1; (nMRow > 0) && (nMRow < nRow); ++nMRow ) in LayoutTableHeight()
821 sal_Int32 nNewHeight = 0; in LayoutTableHeight()
847 const sal_Int32 nRowCount = mxTable->getRowCount(); in LayoutTable()
848 const sal_Int32 nColCount = mxTable->getColumnCount(); in LayoutTable()
852 if( static_cast< sal_Int32 >( maRows.size() ) != nRowCount ) in LayoutTable()
856 for( sal_Int32 nRow = 0; nRow < nRowCount; nRow++ ) in LayoutTable()
859 if( static_cast< sal_Int32 >( maColumns.size() ) != nColCount ) in LayoutTable()
862 for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) in LayoutTable()
875 const sal_Int32 nColCount = getColumnCount(); in updateCells()
876 const sal_Int32 nRowCount = getRowCount(); in updateCells()
955 void TableLayouter::SetBorder( sal_Int32 nCol, sal_Int32 nRow, bool bHorizontal, const SvxBorderLin… in SetBorder()
988 const sal_Int32 nColCount = rMap.size(); in ClearBorderLayout()
990 for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) in ClearBorderLayout()
992 const sal_Int32 nRowCount = rMap[nCol].size(); in ClearBorderLayout()
993 for( sal_Int32 nRow = 0; nRow < nRowCount; nRow++ ) in ClearBorderLayout()
1020 const sal_Int32 nColCount = getColumnCount() + 1; in ResizeBorderLayout()
1021 const sal_Int32 nRowCount = getRowCount() + 1; in ResizeBorderLayout()
1023 if( sal::static_int_cast<sal_Int32>(rMap.size()) != nColCount ) in ResizeBorderLayout()
1026 for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) in ResizeBorderLayout()
1028 if( sal::static_int_cast<sal_Int32>(rMap[nCol].size()) != nRowCount ) in ResizeBorderLayout()
1040 const sal_Int32 nColCount = getColumnCount(); in UpdateBorderLayout()
1041 const sal_Int32 nRowCount = getRowCount(); in UpdateBorderLayout()
1058 const sal_Int32 nLastRow = xCell->getRowSpan() + aPos.mnRow; in UpdateBorderLayout()
1059 const sal_Int32 nLastCol = xCell->getColumnSpan() + aPos.mnCol; in UpdateBorderLayout()
1061 for( sal_Int32 nRow = aPos.mnRow; nRow < nLastRow; nRow++ ) in UpdateBorderLayout()
1067 for( sal_Int32 nCol = aPos.mnCol; nCol < nLastCol; nCol++ ) in UpdateBorderLayout()
1112 void TableLayouter::DistributeColumns( ::Rectangle& rArea, sal_Int32 nFirstCol, sal_Int32 nLastCol ) in DistributeColumns()
1116 const sal_Int32 nColCount = getColumnCount(); in DistributeColumns()
1121 sal_Int32 nAllWidth = 0; in DistributeColumns()
1122 for( sal_Int32 nCol = nFirstCol; nCol <= nLastCol; ++nCol ) in DistributeColumns()
1125 sal_Int32 nWidth = nAllWidth / (nLastCol-nFirstCol+1); in DistributeColumns()
1129 for( sal_Int32 nCol = nFirstCol; nCol <= nLastCol; ++nCol ) in DistributeColumns()
1151 void TableLayouter::DistributeRows( ::Rectangle& rArea, sal_Int32 nFirstRow, sal_Int32 nLastRow ) in DistributeRows()
1155 const sal_Int32 nRowCount = mxTable->getRowCount(); in DistributeRows()
1160 sal_Int32 nAllHeight = 0; in DistributeRows()
1161 sal_Int32 nMinHeight = 0; in DistributeRows()
1163 for( sal_Int32 nRow = nFirstRow; nRow <= nLastRow; ++nRow ) in DistributeRows()
1169 const sal_Int32 nRows = (nLastRow-nFirstRow+1); in DistributeRows()
1170 sal_Int32 nHeight = nAllHeight / nRows; in DistributeRows()
1174 sal_Int32 nNeededHeight = nRows * nMinHeight; in DistributeRows()
1181 for( sal_Int32 nRow = nFirstRow; nRow <= nLastRow; ++nRow ) in DistributeRows()
1210 sal_Int32 TableLayouter::getColumnStart( sal_Int32 nColumn ) const in getColumnStart()
1220 sal_Int32 TableLayouter::getRowStart( sal_Int32 nRow ) const in getRowStart()