Lines Matching refs:nColumnCount
290 int nColumnCount = (GetItemCount() + nRowCount-1) / nRowCount; in GetPreferredWidth() local
291 nPreferredWidth = nColumnCount * aItemSize.Width(); in GetPreferredWidth()
312 int nColumnCount = nWidth / aItemSize.Width(); in GetHeightForWidth() local
313 if (nColumnCount <= 0) in GetHeightForWidth()
314 nColumnCount = 1; in GetHeightForWidth()
315 else if (nColumnCount > 4) in GetHeightForWidth()
316 nColumnCount = 4; in GetHeightForWidth()
317 int nRowCount = (GetItemCount() + nColumnCount-1) / nColumnCount; in GetHeightForWidth()
368 int nColumnCount = aWindowSize.Width() / aItemSize.Width(); in Resize() local
369 if (nColumnCount < 1) in Resize()
370 nColumnCount = 1; in Resize()
371 else if (nColumnCount > 4) in Resize()
372 nColumnCount = 4; in Resize()
374 int nRowCount = CalculateRowCount (aItemSize, nColumnCount); in Resize()
376 SetColCount ((sal_uInt16)nColumnCount); in Resize()
448 int LayoutMenu::CalculateRowCount (const Size&, int nColumnCount) in CalculateRowCount() argument
452 if (GetItemCount() > 0 && nColumnCount > 0) in CalculateRowCount()
454 nRowCount = (GetItemCount() + nColumnCount - 1) / nColumnCount; in CalculateRowCount()