Lines Matching refs:nColumnCount
115 int nColumnCount = 0; in CalculateColumnCount() local
118 nColumnCount = nWidth / (maPreviewSize.Width() + 2*mnBorderWidth); in CalculateColumnCount()
119 if (nColumnCount < 1) in CalculateColumnCount()
120 nColumnCount = 1; in CalculateColumnCount()
121 else if (mnMaxColumnCount>0 && nColumnCount>mnMaxColumnCount) in CalculateColumnCount()
122 nColumnCount = mnMaxColumnCount; in CalculateColumnCount()
124 return (sal_uInt16)nColumnCount; in CalculateColumnCount()
130 sal_uInt16 PreviewValueSet::CalculateRowCount (sal_uInt16 nColumnCount) const in CalculateRowCount()
134 if (nColumnCount > 0) in CalculateRowCount()
136 nRowCount = (nItemCount+nColumnCount-1) / nColumnCount; in CalculateRowCount()
159 int nColumnCount = (GetItemCount()+nRowCount-1) / nRowCount; in GetPreferredWidth() local
160 if (nColumnCount > 0) in GetPreferredWidth()
162 * nColumnCount; in GetPreferredWidth()