Lines Matching refs:pDev
364 void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos, in ImplDrawAlignedImage() argument
404 DrawControlText( *pDev, aOutRect, aText, nTextStyle, pVector, pDisplayText ); in ImplDrawAlignedImage()
426 if ( pBitmapEx && ( pDev->GetOutDevType() == OUTDEV_PRINTER ) ) in ImplDrawAlignedImage()
432 aImageSize = pDev->LogicToPixel( aImageSize, aMap100thMM ); in ImplDrawAlignedImage()
456 nSymbolHeight = pDev->GetTextHeight(); in ImplDrawAlignedImage()
496 aRect = pDev->GetTextRect( aRect, aText, nTextStyle ); in ImplDrawAlignedImage()
639 if ( pBitmapEx && ( pDev->GetOutDevType() == OUTDEV_PRINTER ) ) in ImplDrawAlignedImage()
643 pBitmapEx->Draw( pDev, aImagePos, aImageSize /*, nStyle*/ ); in ImplDrawAlignedImage()
648 pDev->DrawImage( aImagePos, aImageSize, *pImage, nStyle ); in ImplDrawAlignedImage()
650 pDev->DrawImage( aImagePos, *pImage, nStyle ); in ImplDrawAlignedImage()
656 … pDev->DrawText( Rectangle( aTextPos, aTextSize ), aText, nTextStyle, pVector, pDisplayText ); in ImplDrawAlignedImage()
863 void PushButton::ImplDrawPushButtonFrame( Window* pDev, in ImplDrawPushButtonFrame() argument
866 if ( !(pDev->GetStyle() & (WB_RECTSTYLE | WB_SMALLSTYLE)) ) in ImplDrawPushButtonFrame()
868 StyleSettings aStyleSettings = pDev->GetSettings().GetStyleSettings(); in ImplDrawPushButtonFrame()
869 if ( pDev->IsControlBackground() ) in ImplDrawPushButtonFrame()
870 aStyleSettings.Set3DColors( pDev->GetControlBackground() ); in ImplDrawPushButtonFrame()
873 DecorationView aDecoView( pDev ); in ImplDrawPushButtonFrame()
874 if ( pDev->IsControlBackground() ) in ImplDrawPushButtonFrame()
876 AllSettings aSettings = pDev->GetSettings(); in ImplDrawPushButtonFrame()
879 aStyleSettings.Set3DColors( pDev->GetControlBackground() ); in ImplDrawPushButtonFrame()
881 pDev->OutputDevice::SetSettings( aSettings ); in ImplDrawPushButtonFrame()
883 pDev->OutputDevice::SetSettings( aOldSettings ); in ImplDrawPushButtonFrame()
891 sal_Bool PushButton::ImplHitTestPushButton( Window* pDev, in ImplHitTestPushButton() argument
895 Rectangle aTestRect( aTempPoint, pDev->GetOutputSizePixel() ); in ImplHitTestPushButton()
939 static void ImplDrawBtnDropDownArrow( OutputDevice* pDev, in ImplDrawBtnDropDownArrow() argument
943 Color aOldLineColor = pDev->GetLineColor(); in ImplDrawBtnDropDownArrow()
944 Color aOldFillColor = pDev->GetFillColor(); in ImplDrawBtnDropDownArrow()
946 pDev->SetLineColor(); in ImplDrawBtnDropDownArrow()
948 pDev->SetFillColor( Color( COL_BLACK ) ); in ImplDrawBtnDropDownArrow()
950 pDev->SetFillColor( rColor ); in ImplDrawBtnDropDownArrow()
951 pDev->DrawRect( Rectangle( nX+0, nY+0, nX+6, nY+0 ) ); in ImplDrawBtnDropDownArrow()
952 pDev->DrawRect( Rectangle( nX+1, nY+1, nX+5, nY+1 ) ); in ImplDrawBtnDropDownArrow()
953 pDev->DrawRect( Rectangle( nX+2, nY+2, nX+4, nY+2 ) ); in ImplDrawBtnDropDownArrow()
954 pDev->DrawRect( Rectangle( nX+3, nY+3, nX+3, nY+3 ) ); in ImplDrawBtnDropDownArrow()
957 pDev->SetFillColor( rColor ); in ImplDrawBtnDropDownArrow()
958 pDev->DrawRect( Rectangle( nX+2, nY+1, nX+4, nY+1 ) ); in ImplDrawBtnDropDownArrow()
959 pDev->DrawRect( Rectangle( nX+3, nY+2, nX+3, nY+2 ) ); in ImplDrawBtnDropDownArrow()
961 pDev->SetLineColor( aOldLineColor ); in ImplDrawBtnDropDownArrow()
962 pDev->SetFillColor( aOldFillColor ); in ImplDrawBtnDropDownArrow()
967 void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawFlags, in ImplDrawPushButtonContent() argument
983 pDev->Push( PUSH_CLIPREGION ); in ImplDrawPushButtonContent()
984 pDev->IntersectClipRegion( aInRect ); in ImplDrawPushButtonContent()
995 pDev->SetTextColor( aColor ); in ImplDrawPushButtonContent()
1005 sal_uLong nImageSep = 1 + (pDev->GetTextHeight()-10)/2; in ImplDrawPushButtonContent()
1013 long nSymbolSize = pDev->GetTextHeight() / 2 + 1; in ImplDrawPushButtonContent()
1018 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, nImageSep, in ImplDrawPushButtonContent()
1027 DecorationView aDecoView( pDev ); in ImplDrawPushButtonContent()
1045 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, nImageSep, nDrawFlags, in ImplDrawPushButtonContent()
1050 DecorationView aDecoView( pDev ); in ImplDrawPushButtonContent()
1071 ImplDrawBtnDropDownArrow( pDev, aInRect.Right()-6, aInRect.Top()+1, in ImplDrawPushButtonContent()
1079 pDev->Pop(); // restore clipregion in ImplDrawPushButtonContent()
1538 void PushButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, in Draw() argument
1541 Point aPos = pDev->LogicToPixel( rPos ); in Draw()
1542 Size aSize = pDev->LogicToPixel( rSize ); in Draw()
1545 Font aFont = GetDrawPixelFont( pDev ); in Draw()
1547 pDev->Push(); in Draw()
1548 pDev->SetMapMode(); in Draw()
1549 pDev->SetFont( aFont ); in Draw()
1552 pDev->SetTextColor( Color( COL_BLACK ) ); in Draw()
1556 pDev->SetTextColor( GetTextColor() ); in Draw()
1559 AllSettings aSettings = pDev->GetSettings(); in Draw()
1566 pDev->SetSettings( aSettings ); in Draw()
1568 pDev->SetTextFillColor(); in Draw()
1570 DecorationView aDecoView( pDev ); in Draw()
1578 ImplDrawPushButtonContent( pDev, nFlags, aRect, false, true ); in Draw()
1579 pDev->Pop(); in Draw()
2286 void RadioButton::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags, in ImplDraw() argument
2297 pDev->Push( PUSH_CLIPREGION ); in ImplDraw()
2298 pDev->IntersectClipRegion( Rectangle( rPos, rSize ) ); in ImplDraw()
2308 const long nImageSep = GetDrawPixel( pDev, ImplGetImageToTextDistance() ); in ImplDraw()
2324 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, 1, in ImplDraw()
2383 long nTextHeight = pDev->GetTextHeight(); in ImplDraw()
2384 long nTextWidth = pDev->GetCtrlTextWidth( aText ); in ImplDraw()
2413 … pDev->DrawCtrlText( aTxtPos, aText, 0, STRING_LEN, TEXT_DRAW_MNEMONIC, pVector, pDisplayText ); in ImplDraw()
2420 pDev->Pop(); in ImplDraw()
2729 void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, in Draw() argument
2735 Point aPos = pDev->LogicToPixel( rPos ); in Draw()
2736 Size aSize = pDev->LogicToPixel( rSize ); in Draw()
2737 Size aImageSize = pDev->LogicToPixel( Size( 300, 300 ), aResMapMode ); in Draw()
2738 Size aBrd1Size = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ); in Draw()
2739 Size aBrd2Size = pDev->LogicToPixel( Size( 60, 60 ), aResMapMode ); in Draw()
2740 Font aFont = GetDrawPixelFont( pDev ); in Draw()
2761 pDev->Push(); in Draw()
2762 pDev->SetMapMode(); in Draw()
2763 pDev->SetFont( aFont ); in Draw()
2765 pDev->SetTextColor( Color( COL_BLACK ) ); in Draw()
2767 pDev->SetTextColor( GetTextColor() ); in Draw()
2768 pDev->SetTextFillColor(); in Draw()
2770 ImplDraw( pDev, nFlags, aPos, aSize, in Draw()
2777 pDev->SetLineColor(); in Draw()
2778 pDev->SetFillColor( Color( COL_BLACK ) ); in Draw()
2779 pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); in Draw()
2782 pDev->SetFillColor( Color( COL_WHITE ) ); in Draw()
2783 pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); in Draw()
2792 pDev->SetFillColor( Color( COL_BLACK ) ); in Draw()
2793 pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); in Draw()
2796 pDev->Pop(); in Draw()
3387 void CheckBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags, in ImplDraw() argument
3395 pDev->Push( PUSH_CLIPREGION | PUSH_LINECOLOR ); in ImplDraw()
3396 pDev->IntersectClipRegion( Rectangle( rPos, rSize ) ); in ImplDraw()
3404 const long nImageSep = GetDrawPixel( pDev, ImplGetImageToTextDistance() ); in ImplDraw()
3420 ImplDrawAlignedImage( pDev, aPos, aSize, bLayout, 1, in ImplDraw()
3487 pDev->Pop(); in ImplDraw()
3675 void CheckBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, in Draw() argument
3679 Point aPos = pDev->LogicToPixel( rPos ); in Draw()
3680 Size aSize = pDev->LogicToPixel( rSize ); in Draw()
3681 Size aImageSize = pDev->LogicToPixel( Size( 300, 300 ), aResMapMode ); in Draw()
3682 Size aBrd1Size = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ); in Draw()
3683 Size aBrd2Size = pDev->LogicToPixel( Size( 30, 30 ), aResMapMode ); in Draw()
3684 long nCheckWidth = pDev->LogicToPixel( Size( 20, 20 ), aResMapMode ).Width(); in Draw()
3685 Font aFont = GetDrawPixelFont( pDev ); in Draw()
3707 pDev->Push(); in Draw()
3708 pDev->SetMapMode(); in Draw()
3709 pDev->SetFont( aFont ); in Draw()
3711 pDev->SetTextColor( Color( COL_BLACK ) ); in Draw()
3713 pDev->SetTextColor( GetTextColor() ); in Draw()
3714 pDev->SetTextFillColor(); in Draw()
3716 ImplDraw( pDev, nFlags, aPos, aSize, in Draw()
3719 pDev->SetLineColor(); in Draw()
3720 pDev->SetFillColor( Color( COL_BLACK ) ); in Draw()
3721 pDev->DrawRect( aStateRect ); in Draw()
3727 pDev->SetFillColor( Color( COL_LIGHTGRAY ) ); in Draw()
3729 pDev->SetFillColor( Color( COL_WHITE ) ); in Draw()
3730 pDev->DrawRect( aStateRect ); in Draw()
3746 pDev->SetLineColor( Color( COL_BLACK ) ); in Draw()
3765 pDev->DrawLine( aTempPos11, aTempPos12 ); in Draw()
3766 pDev->DrawLine( aTempPos21, aTempPos22 ); in Draw()
3770 pDev->Pop(); in Draw()