Lines Matching refs:nColumnCount
69 int nColumnCount = nWidth / aItemSize.Width(); in GetPreferredHeight() local
70 if (nColumnCount <= 0) in GetPreferredHeight()
71 nColumnCount = 1; in GetPreferredHeight()
72 else if (nColumnCount > 4) in GetPreferredHeight()
73 nColumnCount = 4; in GetPreferredHeight()
74 int nRowCount = (GetItemCount() + nColumnCount-1) in GetPreferredHeight()
75 / nColumnCount; in GetPreferredHeight()
98 int nColumnCount = aWindowSize.Width() / 30; in Resize() local
99 if (nColumnCount < 1) in Resize()
100 nColumnCount = 1; in Resize()
101 else if (nColumnCount > 4) in Resize()
102 nColumnCount = 4; in Resize()
104 sal_uInt16 nRowCount = (sal_uInt16)CalculateRowCount(aItemSize, nColumnCount); in Resize()
106 SetColCount((sal_uInt16)nColumnCount); in Resize()
116 int ColorPanel::CalculateRowCount (const Size&, int nColumnCount) in CalculateRowCount() argument
120 if (GetItemCount()>0 && nColumnCount>0) in CalculateRowCount()