Lines Matching refs:pDev

366 void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,  in ImplDrawAlignedImage()  argument
406 DrawControlText( *pDev, aOutRect, aText, nTextStyle, pVector, pDisplayText ); in ImplDrawAlignedImage()
428 if ( pBitmapEx && ( pDev->GetOutDevType() == OUTDEV_PRINTER ) ) in ImplDrawAlignedImage()
434 aImageSize = pDev->LogicToPixel( aImageSize, aMap100thMM ); in ImplDrawAlignedImage()
458 nSymbolHeight = pDev->GetTextHeight(); in ImplDrawAlignedImage()
498 aRect = pDev->GetTextRect( aRect, aText, nTextStyle ); in ImplDrawAlignedImage()
641 if ( pBitmapEx && ( pDev->GetOutDevType() == OUTDEV_PRINTER ) ) in ImplDrawAlignedImage()
645 pBitmapEx->Draw( pDev, aImagePos, aImageSize /*, nStyle*/ ); in ImplDrawAlignedImage()
650 pDev->DrawImage( aImagePos, aImageSize, *pImage, nStyle ); in ImplDrawAlignedImage()
652 pDev->DrawImage( aImagePos, *pImage, nStyle ); in ImplDrawAlignedImage()
658pDev->DrawText( Rectangle( aTextPos, aTextSize ), aText, nTextStyle, pVector, pDisplayText ); in ImplDrawAlignedImage()
865 void PushButton::ImplDrawPushButtonFrame( Window* pDev, in ImplDrawPushButtonFrame() argument
868 if ( !(pDev->GetStyle() & (WB_RECTSTYLE | WB_SMALLSTYLE)) ) in ImplDrawPushButtonFrame()
870 StyleSettings aStyleSettings = pDev->GetSettings().GetStyleSettings(); in ImplDrawPushButtonFrame()
871 if ( pDev->IsControlBackground() ) in ImplDrawPushButtonFrame()
872 aStyleSettings.Set3DColors( pDev->GetControlBackground() ); in ImplDrawPushButtonFrame()
875 DecorationView aDecoView( pDev ); in ImplDrawPushButtonFrame()
876 if ( pDev->IsControlBackground() ) in ImplDrawPushButtonFrame()
878 AllSettings aSettings = pDev->GetSettings(); in ImplDrawPushButtonFrame()
881 aStyleSettings.Set3DColors( pDev->GetControlBackground() ); in ImplDrawPushButtonFrame()
883 pDev->OutputDevice::SetSettings( aSettings ); in ImplDrawPushButtonFrame()
885 pDev->OutputDevice::SetSettings( aOldSettings ); in ImplDrawPushButtonFrame()
893 sal_Bool PushButton::ImplHitTestPushButton( Window* pDev, in ImplHitTestPushButton() argument
897 Rectangle aTestRect( aTempPoint, pDev->GetOutputSizePixel() ); in ImplHitTestPushButton()
941 static void ImplDrawBtnDropDownArrow( OutputDevice* pDev, in ImplDrawBtnDropDownArrow() argument
945 Color aOldLineColor = pDev->GetLineColor(); in ImplDrawBtnDropDownArrow()
946 Color aOldFillColor = pDev->GetFillColor(); in ImplDrawBtnDropDownArrow()
948 pDev->SetLineColor(); in ImplDrawBtnDropDownArrow()
950 pDev->SetFillColor( Color( COL_BLACK ) ); in ImplDrawBtnDropDownArrow()
952 pDev->SetFillColor( rColor ); in ImplDrawBtnDropDownArrow()
953 pDev->DrawRect( Rectangle( nX+0, nY+0, nX+6, nY+0 ) ); in ImplDrawBtnDropDownArrow()
954 pDev->DrawRect( Rectangle( nX+1, nY+1, nX+5, nY+1 ) ); in ImplDrawBtnDropDownArrow()
955 pDev->DrawRect( Rectangle( nX+2, nY+2, nX+4, nY+2 ) ); in ImplDrawBtnDropDownArrow()
956 pDev->DrawRect( Rectangle( nX+3, nY+3, nX+3, nY+3 ) ); in ImplDrawBtnDropDownArrow()
959 pDev->SetFillColor( rColor ); in ImplDrawBtnDropDownArrow()
960 pDev->DrawRect( Rectangle( nX+2, nY+1, nX+4, nY+1 ) ); in ImplDrawBtnDropDownArrow()
961 pDev->DrawRect( Rectangle( nX+3, nY+2, nX+3, nY+2 ) ); in ImplDrawBtnDropDownArrow()
963 pDev->SetLineColor( aOldLineColor ); in ImplDrawBtnDropDownArrow()
964 pDev->SetFillColor( aOldFillColor ); in ImplDrawBtnDropDownArrow()
969 void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawFlags, in ImplDrawPushButtonContent() argument
985 pDev->Push( PUSH_CLIPREGION ); in ImplDrawPushButtonContent()
986 pDev->IntersectClipRegion( aInRect ); in ImplDrawPushButtonContent()
997 pDev->SetTextColor( aColor ); in ImplDrawPushButtonContent()
1007 sal_uLong nImageSep = 1 + (pDev->GetTextHeight()-10)/2; in ImplDrawPushButtonContent()
1015 long nSymbolSize = pDev->GetTextHeight() / 2 + 1; in ImplDrawPushButtonContent()
1020 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, nImageSep, in ImplDrawPushButtonContent()
1029 DecorationView aDecoView( pDev ); in ImplDrawPushButtonContent()
1047 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, nImageSep, nDrawFlags, in ImplDrawPushButtonContent()
1052 DecorationView aDecoView( pDev ); in ImplDrawPushButtonContent()
1073 ImplDrawBtnDropDownArrow( pDev, aInRect.Right()-6, aInRect.Top()+1, in ImplDrawPushButtonContent()
1081 pDev->Pop(); // restore clipregion in ImplDrawPushButtonContent()
1540 void PushButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, in Draw() argument
1543 Point aPos = pDev->LogicToPixel( rPos ); in Draw()
1544 Size aSize = pDev->LogicToPixel( rSize ); in Draw()
1547 Font aFont = GetDrawPixelFont( pDev ); in Draw()
1549 pDev->Push(); in Draw()
1550 pDev->SetMapMode(); in Draw()
1551 pDev->SetFont( aFont ); in Draw()
1554 pDev->SetTextColor( Color( COL_BLACK ) ); in Draw()
1558 pDev->SetTextColor( GetTextColor() ); in Draw()
1561 AllSettings aSettings = pDev->GetSettings(); in Draw()
1568 pDev->SetSettings( aSettings ); in Draw()
1570 pDev->SetTextFillColor(); in Draw()
1572 DecorationView aDecoView( pDev ); in Draw()
1580 ImplDrawPushButtonContent( pDev, nFlags, aRect, false, true ); in Draw()
1581 pDev->Pop(); in Draw()
2289 void RadioButton::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags, in ImplDraw() argument
2300 pDev->Push( PUSH_CLIPREGION ); in ImplDraw()
2301 pDev->IntersectClipRegion( Rectangle( rPos, rSize ) ); in ImplDraw()
2311 const long nImageSep = GetDrawPixel( pDev, ImplGetImageToTextDistance() ); in ImplDraw()
2327 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, 1, in ImplDraw()
2386 long nTextHeight = pDev->GetTextHeight(); in ImplDraw()
2387 long nTextWidth = pDev->GetCtrlTextWidth( aText ); in ImplDraw()
2416pDev->DrawCtrlText( aTxtPos, aText, 0, STRING_LEN, TEXT_DRAW_MNEMONIC, pVector, pDisplayText ); in ImplDraw()
2423 pDev->Pop(); in ImplDraw()
2732 void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, in Draw() argument
2738 Point aPos = pDev->LogicToPixel( rPos ); in Draw()
2739 Size aSize = pDev->LogicToPixel( rSize ); in Draw()
2740 Size aImageSize = pDev->LogicToPixel( Size( 300, 300 ), aResMapMode ); in Draw()
2741 Size aBrd1Size = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ); in Draw()
2742 Size aBrd2Size = pDev->LogicToPixel( Size( 60, 60 ), aResMapMode ); in Draw()
2743 Font aFont = GetDrawPixelFont( pDev ); in Draw()
2764 pDev->Push(); in Draw()
2765 pDev->SetMapMode(); in Draw()
2766 pDev->SetFont( aFont ); in Draw()
2768 pDev->SetTextColor( Color( COL_BLACK ) ); in Draw()
2770 pDev->SetTextColor( GetTextColor() ); in Draw()
2771 pDev->SetTextFillColor(); in Draw()
2773 ImplDraw( pDev, nFlags, aPos, aSize, in Draw()
2780 pDev->SetLineColor(); in Draw()
2781 pDev->SetFillColor( Color( COL_BLACK ) ); in Draw()
2782 pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); in Draw()
2785 pDev->SetFillColor( Color( COL_WHITE ) ); in Draw()
2786 pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); in Draw()
2795 pDev->SetFillColor( Color( COL_BLACK ) ); in Draw()
2796 pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); in Draw()
2799 pDev->Pop(); in Draw()
3390 void CheckBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags, in ImplDraw() argument
3398 pDev->Push( PUSH_CLIPREGION | PUSH_LINECOLOR ); in ImplDraw()
3399 pDev->IntersectClipRegion( Rectangle( rPos, rSize ) ); in ImplDraw()
3407 const long nImageSep = GetDrawPixel( pDev, ImplGetImageToTextDistance() ); in ImplDraw()
3423 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, 1, in ImplDraw()
3490 pDev->Pop(); in ImplDraw()
3678 void CheckBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, in Draw() argument
3682 Point aPos = pDev->LogicToPixel( rPos ); in Draw()
3683 Size aSize = pDev->LogicToPixel( rSize ); in Draw()
3684 Size aImageSize = pDev->LogicToPixel( Size( 300, 300 ), aResMapMode ); in Draw()
3685 Size aBrd1Size = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ); in Draw()
3686 Size aBrd2Size = pDev->LogicToPixel( Size( 30, 30 ), aResMapMode ); in Draw()
3687 long nCheckWidth = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ).Width(); in Draw()
3688 Font aFont = GetDrawPixelFont( pDev ); in Draw()
3710 pDev->Push(); in Draw()
3711 pDev->SetMapMode(); in Draw()
3712 pDev->SetFont( aFont ); in Draw()
3714 pDev->SetTextColor( Color( COL_BLACK ) ); in Draw()
3716 pDev->SetTextColor( GetTextColor() ); in Draw()
3717 pDev->SetTextFillColor(); in Draw()
3719 ImplDraw( pDev, nFlags, aPos, aSize, in Draw()
3722 pDev->SetLineColor(); in Draw()
3723 pDev->SetFillColor( Color( COL_BLACK ) ); in Draw()
3724 pDev->DrawRect( aStateRect ); in Draw()
3730 pDev->SetFillColor( Color( COL_LIGHTGRAY ) ); in Draw()
3732 pDev->SetFillColor( Color( COL_WHITE ) ); in Draw()
3733 pDev->DrawRect( aStateRect ); in Draw()
3749 pDev->SetLineColor( Color( COL_BLACK ) ); in Draw()
3768 pDev->DrawLine( aTempPos11, aTempPos12 ); in Draw()
3769 pDev->DrawLine( aTempPos21, aTempPos22 ); in Draw()
3773 pDev->Pop(); in Draw()