Lines Matching refs:sal_uInt16

121 	for ( sal_uInt16 n = GetEntryCount(); n; )  in Clear()
131 void ImplEntryList::SelectEntry( sal_uInt16 nPos, sal_Bool bSelect ) in SelectEntry()
157 sal_uInt16 ImplEntryList::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewEntry, sal_Bool bSort ) in InsertEntry()
176 ImplEntryType* pTemp = GetEntry( (sal_uInt16)(nHigh-1) ); in InsertEntry()
194 pTemp = (ImplEntryType*)GetEntry( (sal_uInt16)nLow ); in InsertEntry()
242 return (sal_uInt16)GetPos( pNewEntry ); in InsertEntry()
247 void ImplEntryList::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry()
261 sal_uInt16 ImplEntryList::FindEntry( const XubString& rString, sal_Bool bSearchMRUArea ) const in FindEntry()
263 sal_uInt16 nEntries = GetEntryCount(); in FindEntry()
264 for ( sal_uInt16 n = bSearchMRUArea ? 0 : GetMRUCount(); n < nEntries; n++ ) in FindEntry()
276 sal_uInt16 ImplEntryList::FindMatchingEntry( const XubString& rStr, sal_uInt16 nStart, sal_Bool bFo… in FindMatchingEntry()
278 sal_uInt16 nPos = LISTBOX_ENTRY_NOTFOUND; in FindMatchingEntry()
279 sal_uInt16 nEntryCount = GetEntryCount(); in FindMatchingEntry()
284 for ( sal_uInt16 n = nStart; bForward ? ( n < nEntryCount ) : n; ) in FindMatchingEntry()
306 sal_uInt16 ImplEntryList::FindEntry( const void* pData ) const in FindEntry()
308 sal_uInt16 nPos = LISTBOX_ENTRY_NOTFOUND; in FindEntry()
309 for ( sal_uInt16 n = GetEntryCount(); n; ) in FindEntry()
323 long ImplEntryList::GetAddedHeight( sal_uInt16 i_nEndIndex, sal_uInt16 i_nBeginIndex, long i_nBegin… in GetAddedHeight()
326 sal_uInt16 nStart = i_nEndIndex > i_nBeginIndex ? i_nBeginIndex : i_nEndIndex; in GetAddedHeight()
327 sal_uInt16 nStop = i_nEndIndex > i_nBeginIndex ? i_nEndIndex : i_nBeginIndex; in GetAddedHeight()
328 sal_uInt16 nEntryCount = GetEntryCount(); in GetAddedHeight()
337 sal_uInt16 nIndex = nStart; in GetAddedHeight()
351 long ImplEntryList::GetEntryHeight( sal_uInt16 nPos ) const in GetEntryHeight()
359 XubString ImplEntryList::GetEntryText( sal_uInt16 nPos ) const in GetEntryText()
370 sal_Bool ImplEntryList::HasEntryImage( sal_uInt16 nPos ) const in HasEntryImage()
381 Image ImplEntryList::GetEntryImage( sal_uInt16 nPos ) const in GetEntryImage()
392 void ImplEntryList::SetEntryData( sal_uInt16 nPos, void* pNewData ) in SetEntryData()
401 void* ImplEntryList::GetEntryData( sal_uInt16 nPos ) const in GetEntryData()
409 void ImplEntryList::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags()
418 long ImplEntryList::GetEntryFlags( sal_uInt16 nPos ) const in GetEntryFlags()
426 sal_uInt16 ImplEntryList::GetSelectEntryCount() const in GetSelectEntryCount()
428 sal_uInt16 nSelCount = 0; in GetSelectEntryCount()
429 for ( sal_uInt16 n = GetEntryCount(); n; ) in GetSelectEntryCount()
440 XubString ImplEntryList::GetSelectEntry( sal_uInt16 nIndex ) const in GetSelectEntry()
447 sal_uInt16 ImplEntryList::GetSelectEntryPos( sal_uInt16 nIndex ) const in GetSelectEntryPos()
449 sal_uInt16 nSelEntryPos = LISTBOX_ENTRY_NOTFOUND; in GetSelectEntryPos()
450 sal_uInt16 nSel = 0; in GetSelectEntryPos()
451 sal_uInt16 nEntryCount = GetEntryCount(); in GetSelectEntryPos()
453 for ( sal_uInt16 n = 0; n < nEntryCount; n++ ) in GetSelectEntryPos()
479 sal_Bool ImplEntryList::IsEntryPosSelected( sal_uInt16 nIndex ) const in IsEntryPosSelected()
487 bool ImplEntryList::IsEntrySelectable( sal_uInt16 nPos ) const in IsEntrySelectable()
495 sal_uInt16 ImplEntryList::FindFirstSelectable( sal_uInt16 nPos, bool bForward /* = true */ ) in FindFirstSelectable()
593 mnTextHeight = (sal_uInt16)GetTextHeight(); in ImplCalcMetrics()
598 mnMaxHeight = (sal_uInt16) maUserItemSize.Height(); in ImplCalcMetrics()
600 mnMaxWidth= (sal_uInt16) maUserItemSize.Width(); in ImplCalcMetrics()
602 for ( sal_uInt16 n = mpEntryList->GetEntryCount(); n; ) in ImplCalcMetrics()
691 aMetrics.nTextWidth = (sal_uInt16)GetTextWidth( rEntry.maStr ); in ImplUpdateEntryMetrics()
701 aMetrics.nImgWidth = (sal_uInt16) CalcZoom( aImgSz.Width() ); in ImplUpdateEntryMetrics()
702 aMetrics.nImgHeight = (sal_uInt16) CalcZoom( aImgSz.Height() ); in ImplUpdateEntryMetrics()
749 sal_uInt16 nSelected = GetEntryList()->GetSelectEntryPos( 0 ); in ImplCallSelect()
750 sal_uInt16 nMRUCount = GetEntryList()->GetMRUCount(); in ImplCallSelect()
752 sal_uInt16 nFirstMatchingEntryPos = GetEntryList()->FindEntry( aSelected, sal_True ); in ImplCallSelect()
787 sal_uInt16 ImplListBoxWindow::InsertEntry( sal_uInt16 nPos, ImplEntryType* pNewEntry ) in InsertEntry()
790 sal_uInt16 nNewPos = mpEntryList->InsertEntry( nPos, pNewEntry, mbSort ); in InsertEntry()
801 void ImplListBoxWindow::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry()
812 void ImplListBoxWindow::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags()
844 sal_uInt16 ImplListBoxWindow::GetEntryPosForPoint( const Point& rPoint ) const in GetEntryPosForPoint()
848 sal_uInt16 nSelect = mnTop; in GetEntryPosForPoint()
863 sal_Bool ImplListBoxWindow::IsVisible( sal_uInt16 i_nEntry ) const in IsVisible()
881 sal_uInt16 ImplListBoxWindow::GetLastVisibleEntry() const in GetLastVisibleEntry()
883 sal_uInt16 nPos = mnTop; in GetLastVisibleEntry()
885 sal_uInt16 nCount = mpEntryList->GetEntryCount(); in GetLastVisibleEntry()
910 sal_uInt16 nSelect = GetEntryPosForPoint( rMEvt.GetPosPixel() ); in MouseButtonDown()
973 sal_uInt16 nSelect = GetEntryPosForPoint( rMEvt.GetPosPixel() ); in MouseMove()
977 nSelect = Min( nSelect, (sal_uInt16) ( mpEntryList->GetEntryCount() - 1 ) ); in MouseMove()
1028 sal_uInt16 nS = GetEntryList()->GetSelectEntryPos( 0 ); in DeselectAll()
1035 void ImplListBoxWindow::SelectEntry( sal_uInt16 nPos, sal_Bool bSelect ) in SelectEntry()
1045 sal_uInt16 nDeselect = GetEntryList()->GetSelectEntryPos( 0 ); in SelectEntry()
1062 sal_uInt16 nVisibleEntries = GetLastVisibleEntry()-mnTop; in SelectEntry()
1086 sal_Bool ImplListBoxWindow::SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, sal_Bool bShift,… in SelectEntries()
1096 sal_uInt16 nDeselect = mpEntryList->GetSelectEntryPos( 0 ); in SelectEntries()
1108 sal_uInt16 nEntryCount = mpEntryList->GetEntryCount(); in SelectEntries()
1109 for ( sal_uInt16 nPos = 0; nPos < nEntryCount; nPos++ ) in SelectEntries()
1131 sal_uInt16 n; in SelectEntries()
1158 sal_uInt16 nAnchor = mpEntryList->GetSelectionAnchor(); in SelectEntries()
1166 sal_uInt16 nStart = Min( nSelect, nAnchor ); in SelectEntries()
1167 sal_uInt16 nEnd = Max( nSelect, nAnchor ); in SelectEntries()
1168 for ( sal_uInt16 n = nStart; n <= nEnd; n++ ) in SelectEntries()
1178 sal_uInt16 nLast = mpEntryList->GetLastSelected(); in SelectEntries()
1183 for ( sal_uInt16 n = nSelect+1; n <= nLast; n++ ) in SelectEntries()
1194 for ( sal_uInt16 n = nLast; n < nSelect; n++ ) in SelectEntries()
1303 sal_uInt16 nSelect = LISTBOX_ENTRY_NOTFOUND; in Tracking()
1317 nSelect = Min( (sal_uInt16)(mnCurrentPos+1), (sal_uInt16)(mpEntryList->GetEntryCount()-1) ); in Tracking()
1324 nSelect = (sal_uInt16) ( ( aPt.Y() + mnBorder ) / mnMaxHeight ) + (sal_uInt16) mnTop; in Tracking()
1326 nSelect = Min( nSelect, (sal_uInt16) ( mpEntryList->GetEntryCount() - 1 ) ); in Tracking()
1427 sal_uInt16 nSelect = LISTBOX_ENTRY_NOTFOUND; in ProcessKeyInput()
1498 sal_uInt16 nCurVis = GetLastVisibleEntry() - mnTop +1; in ProcessKeyInput()
1512 sal_uInt16 nCurVis = GetLastVisibleEntry() - mnTop +1; in ProcessKeyInput()
1539 sal_uInt16 nCount = mpEntryList->GetEntryCount(); in ProcessKeyInput()
1540 sal_uInt16 nCurVis = GetLastVisibleEntry() - mnTop; in ProcessKeyInput()
1541 sal_uInt16 nTmp = Min( nCurVis, nCount ); in ProcessKeyInput()
1547 nTmp = (sal_uInt16)(nTmp2+(nCurVis-1) ); in ProcessKeyInput()
1548 SetTopEntry( (sal_uInt16)nTmp2 ); in ProcessKeyInput()
1594 sal_uInt16 nCount = mpEntryList->GetEntryCount(); in ProcessKeyInput()
1596 sal_uInt16 nCurVis = GetLastVisibleEntry() - mnTop + 1; in ProcessKeyInput()
1663 sal_uInt16 nEntryCount = mpEntryList->GetEntryCount(); in ProcessKeyInput()
1664 for( sal_uInt16 i = 0; i < nEntryCount; i++ ) in ProcessKeyInput()
1715 …static ::vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rList, sal_uInt16 _nPos, S… in lcl_getEntry()
1718 sal_uInt16 nEntryCount( _rList.GetEntryCount() ); in lcl_getEntry()
1728 static sal_uInt16 lcl_getEntryPos( ::vcl::StringEntryIdentifier _entry ) in lcl_getEntryPos()
1731 return static_cast< sal_uInt16 >( reinterpret_cast< sal_Int64 >( _entry ) ) - 1; in lcl_getEntryPos()
1744 sal_uInt16 nNextPos = lcl_getEntryPos( _currentEntry ) + 1; in NextEntry()
1751 sal_uInt16 nSelect = lcl_getEntryPos( _entry ); in SelectEntry()
1780 void ImplListBoxWindow::ImplPaint( sal_uInt16 nPos, sal_Bool bErase, bool bLayout ) in ImplPaint()
1819 nPos = sal::static_int_cast<sal_uInt16>(nPos - GetEntryList()->GetMRUCount()); in ImplPaint()
1832 void ImplListBoxWindow::DrawEntry( sal_uInt16 nPos, sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bo… in DrawEntry()
1871 … const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0); in DrawEntry()
1922 sal_uInt16 nDrawStyle = ImplGetTextStyle(); in DrawEntry()
1963 sal_uInt16 nCount = mpEntryList->GetEntryCount(); in ImplDoPaint()
1972 for( sal_uInt16 i = (sal_uInt16)mnTop; i < nCount && nY < nHeight + mnMaxHeight; i++ ) in ImplDoPaint()
2000 sal_uInt16 ImplListBoxWindow::GetDisplayLineCount() const in GetDisplayLineCount()
2004 sal_uInt16 nCount = mpEntryList->GetEntryCount(); in GetDisplayLineCount()
2006 sal_uInt16 nEntries = static_cast< sal_uInt16 >( ( nHeight + mnMaxHeight - 1 ) / mnMaxHeight ); in GetDisplayLineCount()
2039 sal_uInt16 nPos = mnCurrentPos; in GetFocus()
2072 void ImplListBoxWindow::SetTopEntry( sal_uInt16 nTop ) in SetTopEntry()
2079 sal_uInt16 nLastEntry = mpEntryList->GetEntryCount()-1; in SetTopEntry()
2103 void ImplListBoxWindow::ShowProminentEntry( sal_uInt16 nEntryPos ) in ShowProminentEntry()
2107 sal_uInt16 nPos = nEntryPos; in ShowProminentEntry()
2145 mnLeft = sal::static_int_cast<sal_uInt16>(mnLeft + nDiff); in ScrollHorz()
2158 Size ImplListBoxWindow::CalcSize( sal_uInt16 nMaxLines ) const in CalcSize()
2171 Rectangle ImplListBoxWindow::GetBoundingRectangle( sal_uInt16 nItem ) const in GetBoundingRectangle()
2238 sal_uInt16 ImplListBoxWindow::ImplGetTextStyle() const in ImplGetTextStyle()
2240 sal_uInt16 nTextStyle = TEXT_DRAW_VCENTER; in ImplGetTextStyle()
2308 sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const XubString& rStr ) in InsertEntry()
2311 sal_uInt16 nNewPos = maLBWindow.InsertEntry( nPos, pNewEntry ); in InsertEntry()
2318 sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const Image& rImage ) in InsertEntry()
2321 sal_uInt16 nNewPos = maLBWindow.InsertEntry( nPos, pNewEntry ); in InsertEntry()
2328 sal_uInt16 ImplListBox::InsertEntry( sal_uInt16 nPos, const XubString& rStr, const Image& rImage ) in InsertEntry()
2331 sal_uInt16 nNewPos = maLBWindow.InsertEntry( nPos, pNewEntry ); in InsertEntry()
2338 void ImplListBox::RemoveEntry( sal_uInt16 nPos ) in RemoveEntry()
2346 void ImplListBox::SetEntryFlags( sal_uInt16 nPos, long nFlags ) in SetEntryFlags()
2353 long ImplListBox::GetEntryFlags( sal_uInt16 nPos ) const in GetEntryFlags()
2360 void ImplListBox::SelectEntry( sal_uInt16 nPos, sal_Bool bSelect ) in SelectEntry()
2424 sal_uInt16 nPos = (sal_uInt16) pSB->GetThumbPos(); in IMPL_LINK()
2440 sal_uInt16 nEntries = GetEntryList()->GetEntryCount(); in ImplCheckScrollBars()
2441 sal_uInt16 nMaxVisEntries = (sal_uInt16) (aOutSz.Height() / GetEntryHeight()); in ImplCheckScrollBars()
2468 long nWidth = (sal_uInt16) aOutSz.Width(); in ImplCheckScrollBars()
2481 …nMaxVisEntries = (sal_uInt16) ( ( aOutSz.Height() - mpHScrollBar->GetSizePixel().Height() ) / GetE… in ImplCheckScrollBars()
2497 sal_uInt16 nMaxLI = (sal_uInt16) (nMaxWidth - nWidth); in ImplCheckScrollBars()
2524 sal_uInt16 nEntries = GetEntryList()->GetEntryCount(); in ImplInitScrollBars()
2525 sal_uInt16 nVisEntries = (sal_uInt16) (aOutSz.Height() / GetEntryHeight()); in ImplInitScrollBars()
2534 mpHScrollBar->SetVisibleSize( (sal_uInt16)aOutSz.Width() ); in ImplInitScrollBars()
2708 sal_uInt16 nKey = ( pData->GetDelta() < 0 ) ? KEY_DOWN : KEY_UP; in HandleWheelAsCursorTravel()
2723 for ( sal_uInt16 n = GetEntryList()->GetMRUCount();n; ) in SetMRUEntries()
2726 sal_uInt16 nMRUCount = 0; in SetMRUEntries()
2727 sal_uInt16 nEntries = rEntries.GetTokenCount( cSep ); in SetMRUEntries()
2728 for ( sal_uInt16 nEntry = 0; nEntry < nEntries; nEntry++ ) in SetMRUEntries()
2753 for ( sal_uInt16 n = 0; n < GetEntryList()->GetMRUCount(); n++ ) in GetMRUEntries()
2982 sal_uInt16 nStyle = 0; in DrawEntry()
3007 … const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0); in DrawEntry()
3025 sal_uInt16 nTextStyle = TEXT_DRAW_VCENTER; in DrawEntry()
3169 …oxFloatingWindow::SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags ) in SetPosSizePixel()
3186 sal_uInt16 nIndex; in SetPosSizePixel()
3221 sal_uInt16 nLines = mpImplLB->GetEntryList()->GetEntryCount(); in CalcFloatSize()
3284 sal_uInt16 nPos = mpImplLB->GetEntryList()->GetSelectEntryPos( 0 ); in StartFloat()