Lines Matching refs:nNum

79 SwTwips SwTableFUNC::GetColWidth(sal_uInt16 nNum) const  in GetColWidth()
87 nWidth = (SwTwips)((nNum == aCols.Count()) ? in GetColWidth()
88 aCols.GetRight() - aCols[nNum-1] : in GetColWidth()
89 nNum == 0 ? aCols[nNum] - aCols.GetLeft() : in GetColWidth()
90 aCols[nNum] - aCols[nNum-1]); in GetColWidth()
94 SwTwips nRValid = nNum < GetColCount() ? in GetColWidth()
95 aCols[(sal_uInt16)GetRightSeparator((int)nNum)]: in GetColWidth()
97 SwTwips nLValid = nNum ? in GetColWidth()
98 aCols[(sal_uInt16)GetRightSeparator((int)nNum - 1)]: in GetColWidth()
111 SwTwips SwTableFUNC::GetMaxColWidth( sal_uInt16 nNum ) const in GetMaxColWidth()
113 ASSERT(nNum <= aCols.Count(), "Index out of Area"); in GetMaxColWidth()
119 SwTwips nMax = nNum == 0 ? in GetMaxColWidth()
121 nNum == GetColCount() ? in GetMaxColWidth()
122 GetColWidth( nNum-1 ) - MINLAY : in GetMaxColWidth()
123 GetColWidth(nNum - 1) + GetColWidth( nNum + 1 ) - 2 * MINLAY; in GetMaxColWidth()
125 return nMax + GetColWidth(nNum) ; in GetMaxColWidth()
128 return GetColWidth(nNum); in GetMaxColWidth()
133 void SwTableFUNC::SetColWidth(sal_uInt16 nNum, SwTwips nNewWidth ) in SetColWidth() argument
144 nWidth = GetColWidth(nNum); in SetColWidth()
147 if( !nNum ) in SetColWidth()
149 else if( nNum < GetColCount() ) in SetColWidth()
151 if(nDiff < GetColWidth(nNum + 1) - MINLAY) in SetColWidth()
152 aCols[ static_cast< sal_uInt16 >(GetRightSeparator(nNum)) ] += nDiff; in SetColWidth()
155 int nDiffLeft = nDiff - (int)GetColWidth(nNum + 1) + (int)MINLAY; in SetColWidth()
156 aCols[ static_cast< sal_uInt16 >(GetRightSeparator(nNum)) ] += (nDiff - nDiffLeft); in SetColWidth()
157 aCols[ static_cast< sal_uInt16 >(GetRightSeparator(nNum - 1)) ] -= nDiffLeft; in SetColWidth()
161 aCols[ static_cast< sal_uInt16 >(GetRightSeparator(nNum-1)) ] -= nDiff; in SetColWidth()
368 int SwTableFUNC::GetRightSeparator(int nNum) const in GetRightSeparator()
370 DBG_ASSERT( nNum < (int)GetColCount() ,"Index out of range"); in GetRightSeparator()
372 while( nNum >= 0 ) in GetRightSeparator()
375 nNum--; in GetRightSeparator()