Lines Matching refs:rUDEvt
210 void ColorListBox::UserDraw( const UserDrawEvent& rUDEvt ) in UserDraw() argument
212 ImplColorListData* pData = pColorList->GetObject( rUDEvt.GetItemId() ); in UserDraw()
217 Point aPos( rUDEvt.GetRect().TopLeft() ); in UserDraw()
220 aPos.Y() += ( rUDEvt.GetRect().GetHeight() - aImageSize.Height() ) / 2; in UserDraw()
224 rUDEvt.GetDevice()->Push(); in UserDraw()
225 rUDEvt.GetDevice()->SetFillColor( pData->aColor ); in UserDraw()
226 rUDEvt.GetDevice()->SetLineColor( rUDEvt.GetDevice()->GetTextColor() ); in UserDraw()
227 rUDEvt.GetDevice()->DrawRect(aRect); in UserDraw()
228 rUDEvt.GetDevice()->Pop(); in UserDraw()
242 rUDEvt.GetDevice()->DrawBitmapEx(aRect.TopLeft(), aBlendFrame); in UserDraw()
246 ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_False ); in UserDraw()
249 ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_True ); in UserDraw()
252 ListBox::DrawEntry( rUDEvt, sal_True, sal_True, sal_False ); in UserDraw()
791 void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt ) in UserDraw() argument
793 ImplFontNameListData* pData = mpFontList->GetObject( rUDEvt.GetItemId() ); in UserDraw()
796 Point aTopLeft = rUDEvt.GetRect().TopLeft(); in UserDraw()
798 long nH = rUDEvt.GetRect().GetHeight(); in UserDraw()
814 rUDEvt.GetDevice()->DrawImage( aPos, *pImg ); in UserDraw()
835 Point aPos( nX, aTopLeft.Y() + (nH-rUDEvt.GetDevice()->GetTextHeight())/2 ); in UserDraw()
836 rUDEvt.GetDevice()->DrawText( aPos, aText ); in UserDraw()
837 nX += rUDEvt.GetDevice()->GetTextWidth( aText ); in UserDraw()
840 Color aTextColor = rUDEvt.GetDevice()->GetTextColor(); in UserDraw()
841 Font aOldFont( rUDEvt.GetDevice()->GetFont() ); in UserDraw()
846 rUDEvt.GetDevice()->SetFont( aFont ); in UserDraw()
847 rUDEvt.GetDevice()->SetTextColor( aTextColor ); in UserDraw()
850 bool bHasCharMap = rUDEvt.GetDevice()->GetFontCharMap( aFontCharMap ); in UserDraw()
859 if( STRING_LEN != rUDEvt.GetDevice()->HasGlyphs( aFont, aString ) ) in UserDraw()
860 rUDEvt.GetDevice()->SetFont( aOldFont ); in UserDraw()
902 long nTextHeight = rUDEvt.GetDevice()->GetTextHeight(); in UserDraw()
904 rUDEvt.GetDevice()->DrawText( aPos, aString ); in UserDraw()
906 rUDEvt.GetDevice()->SetFont( aOldFont ); in UserDraw()
907 DrawEntry( rUDEvt, sal_False, sal_False); // draw seperator in UserDraw()
911 DrawEntry( rUDEvt, sal_True, sal_True ); in UserDraw()